]> www.infradead.org Git - users/dwmw2/linux.git/commit
mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt
authorAmelie Delaunay <amelie.delaunay@st.com>
Wed, 22 Apr 2020 09:08:33 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:56 +0000 (17:48 +0200)
commit8fd0afd8bc11f841cc49dd383864cbb058b73fcb
tree08ba44f6d9b7af00945a687a9caa6d9fbbb4294a
parent7951ecb467bbdb7f612f1e175af37777b10c092c
mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt

[ Upstream commit 97eda5dcc2cde5dcc778bef7a9344db3b6bf8ef5 ]

When STMFX supply is stopped, spurious interrupt can occur. To avoid that,
disable the interrupt in suspend before disabling the regulator and
re-enable it at the end of resume.

Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/stmfx.c
include/linux/mfd/stmfx.h