]> 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:30:05 +0000 (10:30 -0700)
commitfea0071c60870fbebc605ef72d87668d72dbbd81
tree4e03b5a6c7cf27f77e4032539c3b7b331940b34a
parent48f0f14ffb6ff4852922994d11fbda418d40100e
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