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)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:21 +0000 (10:51 +0100)
commit97eda5dcc2cde5dcc778bef7a9344db3b6bf8ef5
tree04383d6df8a3cd64f00b0e98d36407e5a50be4f5
parent60c2c4bcb9202acad4cc26af20b44b6bd7874f7b
mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt

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>
drivers/mfd/stmfx.c
include/linux/mfd/stmfx.h