aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/bfin_can.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2014-02-28 15:30:18 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-03-03 12:41:27 +0100
commit9b00b300e7bce032c467c36ca47fe2a776887fc2 (patch)
treed66a93171f6a33c6e7000f731d7b58f368b5bcd2 /drivers/net/can/bfin_can.c
parentcan: flexcan: flexcan_open(): fix error path if flexcan_chip_start() fails (diff)
downloadlinux-dev-9b00b300e7bce032c467c36ca47fe2a776887fc2.tar.xz
linux-dev-9b00b300e7bce032c467c36ca47fe2a776887fc2.zip
can: flexcan: fix transition from and to low power mode in chip_{en,dis}able
In flexcan_chip_enable() and flexcan_chip_disable() fixed delays are used. Experiments have shown that the transition from and to low power mode may take several microseconds. This patch adds a while loop which polls the Low Power Mode ACK bit (LPM_ACK) that indicates a successfull mode change. If the function runs into a timeout a error value is returned. Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/bfin_can.c')
0 files changed, 0 insertions, 0 deletions