diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-02-28 17:08:21 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-03-03 12:41:46 +0100 |
commit | b1aa1c7a2165b44ecce66286a3095cc6c7667d1c (patch) | |
tree | 88e163d51f28e04dbdca2b931b3bc76c0497af6f /drivers/media | |
parent | f003698e23f6f56a791774f14d0ac35d04872490 (diff) | |
download | linux-stable-b1aa1c7a2165b44ecce66286a3095cc6c7667d1c.tar.gz linux-stable-b1aa1c7a2165b44ecce66286a3095cc6c7667d1c.tar.bz2 linux-stable-b1aa1c7a2165b44ecce66286a3095cc6c7667d1c.zip |
can: flexcan: fix transition from and to freeze mode in chip_{,un}freeze
This patch factors out freeze and unfreeze of the CAN core into seperate
functions. Experiments have shown that the transition from and to freeze mode
may take several microseconds, especially the time entering the freeze mode
depends on the current bitrate.
This patch adds a while loop which polls the Freeze Mode ACK bit (FRZ_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/media')
0 files changed, 0 insertions, 0 deletions