OSDN Git Service

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)
commit7514dd05eaae5b8cf0b2af34f75a048ee023fe2c
tree657947d8c507e16b3c406ca8631faabccf520cce
parentdd3f2616bb99f1d2bfd0536074824722e953f6be
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