]> 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)
commite2cf4f3c306cfe6b974d68b05cf716521be8746b
treeebb282eb389d9b6b0a16a3d8fb517ff3701c2b07
parent338927f544da510996e90c846fc302e2b855df28
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