can: flexcan: avoid calling usleep_range from interrupt context
authorDavid Jander <david@protonic.nl>
Wed, 27 Aug 2014 10:02:16 +0000 (12:02 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 11 Sep 2014 07:29:51 +0000 (09:29 +0200)
commit8badd65e48c90d66587359d5329c2813088c0f50
tree781e7f0f720af84849ed8a66902c29ea62316f07
parent1d7efe9dfaa6025acd29a726315f6f7d30a9f1ca
can: flexcan: avoid calling usleep_range from interrupt context

Apparently can_restart() runs from a (timer-) interrupt and can call
flexcan_chip_[en|dis]able(), so avoid using usleep_range()

Signed-off-by: David Jander <david@protonic.nl>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c