mfd: stmfx: Reset chip on resume as supply was disabled
authorAmelie Delaunay <amelie.delaunay@st.com>
Wed, 22 Apr 2020 09:08:31 +0000 (11:08 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:20 +0000 (10:51 +0100)
commite583649d87ec090444aa5347af0927cd6e8581ae
treeac6530a4749ad3f55a41aa69f8e837cc16065eae
parent7ff864e1ad343dc0960f454a58af48883c5f0f5d
mfd: stmfx: Reset chip on resume as supply was disabled

STMFX supply is disabled during suspend. To avoid a too early access to
the STMFX firmware on resume, reset the chip and wait for its firmware to
be loaded.

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