]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
thermal: rcar_gen3_thermal: disable interrupt in .remove
authorJiada Wang <jiada_wang@mentor.com>
Wed, 24 Apr 2019 05:11:45 +0000 (14:11 +0900)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit96e4a37748dbecdb8588c87f041531be02bddbcb
tree7baa13a105fc16d34df050014d0f000184f9a2df
parent8e77232559083e347e9e766740b748e23cbecee9
thermal: rcar_gen3_thermal: disable interrupt in .remove

BugLink: https://bugs.launchpad.net/bugs/1838824
[ Upstream commit 63f55fcea50c25ae5ad45af92d08dae3b84534c2 ]

Currently IRQ remains enabled after .remove, later if device is probed,
IRQ is requested before .thermal_init, this may cause IRQ function be
called before device is initialized.

this patch disables interrupt in .remove, to ensure irq function
only be called after device is fully initialized.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/thermal/rcar_gen3_thermal.c