i2c: mediatek: Move suspend and resume handling to NOIRQ phase
authorQii Wang <qii.wang@mediatek.com>
Sat, 9 Jan 2021 08:29:50 +0000 (16:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:55:13 +0000 (13:55 +0100)
commit4d00f1bade7859c6b884f267441155cbf8446f6c
treeb9bcc6bf353a66da848618a818967fc998f9d8e9
parent518416a75c22c055ed3eab44883f4eb24be8eaaf
i2c: mediatek: Move suspend and resume handling to NOIRQ phase

[ Upstream commit de96c3943f591018727b862f51953c1b6c55bcc3 ]

Some i2c device driver indirectly uses I2C driver when it is now
being suspended. The i2c devices driver is suspended during the
NOIRQ phase and this cannot be changed due to other dependencies.
Therefore, we also need to move the suspend handling for the I2C
controller driver to the NOIRQ phase as well.

Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c