]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Disable pins when CAN interface is down
authorRoger Quadros <rogerq@ti.com>
Fri, 14 Nov 2014 15:40:13 +0000 (17:40 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 17 Nov 2014 11:19:27 +0000 (12:19 +0100)
commitdc3d7a53ffae59700f2211ba9ec7f5698ee59ed4
treeebb282eb389d9b6b0a16a3d8fb517ff3701c2b07
parent75fb4c3688354b45b2753ba18e1959b8b74a2190
can: c_can: Disable pins when CAN interface is down

DRA7 CAN IP suffers from a problem which causes it to be prevented
from fully turning OFF (i.e. stuck in transition) if the module was
disabled while there was traffic on the CAN_RX line.

To work around this issue we select the SLEEP pin state by default
on probe and use the DEFAULT pin state on CAN up and back to the
SLEEP pin state on CAN down.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c