]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: tegra: Properly disable interrupts
authorDmitry Osipenko <digetx@gmail.com>
Wed, 1 May 2019 23:38:06 +0000 (02:38 +0300)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sat, 24 Aug 2019 11:11:12 +0000 (20:11 +0900)
commit8e85fd667fc05ef31779bd55067dd053c038a4a6
tree657947d8c507e16b3c406ca8631faabccf520cce
parent34b70f15be47a39c4dd0c20b8d4195a3d7ba3687
PM / devfreq: tegra: Properly disable interrupts

There is no guarantee that interrupt handling isn't running in parallel
with tegra_actmon_disable_interrupts(), hence it is necessary to protect
DEV_CTRL register accesses and clear IRQ status with ACTMON's IRQ being
disabled in the Interrupt Controller in order to ensure that device
interrupt is indeed being disabled.

Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/tegra-devfreq.c