]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: rcar_thermal: Prevent hardware access during system suspend
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 12 Oct 2018 07:20:15 +0000 (09:20 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 25 Oct 2018 17:44:54 +0000 (10:44 -0700)
commitfd79bc226ebc9d2d9df4f560b1a4502229dcbb71
tree36130612a0b28bba235ff2ac21cc6463fbe5231a
parentb08d6d77c4ef48f8d0eba8739f67f0d9601db1e4
thermal: rcar_thermal: Prevent hardware access during system suspend

On r8a7791/koelsch, sometimes the following message is printed during
system suspend:

    rcar_thermal e61f0000.thermal: thermal sensor was broken

This happens if the workqueue runs while the device is already
suspended.  Fix this by using the freezable system workqueue instead,
cfr. commit 58cd80fe96d57c2e ("thermal: Prevent polling from happening
during system suspend").

Fixes: 06d64a7b1651699e ("thermal: rcar: add interrupt support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_thermal.c