]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: stm32: Disable interrupts at probe
authorPascal Paillet <p.paillet@st.com>
Fri, 10 Jan 2020 10:16:02 +0000 (11:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 14:40:12 +0000 (15:40 +0100)
commit0b42f3ef5100bcd8ab21f8a57a435b5ee436f5b5
tree3b9aca6cb83c735e122fac43b1bb0352ac35de1a
parent7853898cd90acaa4955894f2d8b8297ac6b88c7a
thermal: stm32: Disable interrupts at probe

In case of CPU reset, the interrupts could be enabled at boot time.
Disable interrupts and clear flags.

Signed-off-by: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200110101605.24984-4-p.paillet@st.com
drivers/thermal/st/stm_thermal.c