]> git.karo-electronics.de Git - karo-tx-linux.git/commit
can: mcp251x: avoid repeated frame bug
authorBenoît Locher <Benoit.Locher@skf.com>
Mon, 27 Aug 2012 13:02:45 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:12 +0000 (10:39 -0700)
commit23cffc536a2f396e1e752527460d545e816ee654
treed903679701de85a8c10d2a8191e89b4863244fc4
parent3da7f1ade823595e37e37bca09d9d9f24c945e9a
can: mcp251x: avoid repeated frame bug

commit cab32f39dcc5b35db96497dc0a026b5dea76e4e7 upstream.

The MCP2515 has a silicon bug causing repeated frame transmission, see section
5 of MCP2515 Rev. B Silicon Errata Revision G (March 2007).

Basically, setting TXBnCTRL.TXREQ in either SPI mode (00 or 11) will eventually
cause the bug. The workaround proposed by Microchip is to use mode 00 and send
a RTS command on the SPI bus to initiate the transmission.

Signed-off-by: Benoît Locher <Benoit.Locher@skf.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/mcp251x.c