aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2014-02-28 15:30:18 +0100
committerJiri Slaby <jslaby@suse.cz>2014-03-24 09:45:01 +0100
commitbd408b8c4c7f86022bd824eaf828f898e310cf12 (patch)
tree8a3aabcda6532fc6a6ef01a41a7e144f668ab160 /lib/mpi/mpiutil.c
parenta822076cdfb8162652a799e8038606e3bf3b1cd4 (diff)
can: flexcan: fix transition from and to low power mode in chip_{en,dis}able
commit 9b00b300e7bce032c467c36ca47fe2a776887fc2 upstream. 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. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions