]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/can/spi/mcp251x.c
can: mcp251x: avoid repeated frame bug
authorBenoît Locher <Benoit.Locher@skf.com>
Mon, 27 Aug 2012 13:02:45 +0000 (15:02 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Sep 2012 18:12:06 +0000 (20:12 +0200)
commitcab32f39dcc5b35db96497dc0a026b5dea76e4e7
tree152fdbb7d108c3e7946bf804c68f85cc204b4b2a
parent5002200599429e83fc13e0d9a2d4788b79515b0c
can: mcp251x: avoid repeated frame bug

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Benoît Locher <Benoit.Locher@skf.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c