From: Marc Kleine-Budde Date: Sun, 24 Nov 2013 22:31:24 +0000 (+0100) Subject: can: c_can: don't call pm_runtime_get_sync() from interrupt context X-Git-Tag: v3.13-rc3~28^2~30^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e35d46adc49b469fd92bdb64fea8af93640e6651;p=pandora-kernel.git can: c_can: don't call pm_runtime_get_sync() from interrupt context The c_can driver contians a callpath (c_can_poll -> c_can_state_change -> c_can_get_berr_counter) which may call pm_runtime_get_sync() from the IRQ handler, which is not allowed and results in "BUG: scheduling while atomic". This problem is fixed by introducing __c_can_get_berr_counter, which will not call pm_runtime_get_sync(). Reported-by: Andrew Glen Tested-by: Andrew Glen Signed-off-by: Andrew Glen Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed