i2c: ocores: Move system PM hooks to the NOIRQ phase
authorSamuel Holland <samuel.holland@sifive.com>
Mon, 13 Nov 2023 02:32:45 +0000 (18:32 -0800)
committerWolfram Sang <wsa@kernel.org>
Mon, 13 Nov 2023 17:43:42 +0000 (12:43 -0500)
commit382561d16854a747e6df71034da08d20d6013dfe
treea4b95f256ebf37246133b46afa99a00d90d6d941
parentf726eaa787e9f9bc858c902d18a09af6bcbfcdaf
i2c: ocores: Move system PM hooks to the NOIRQ phase

When an I2C device contains a wake IRQ subordinate to a regmap-irq chip,
the regmap-irq code must be able to perform I2C transactions during
suspend_device_irqs() and resume_device_irqs(). Therefore, the bus must
be suspended/resumed during the NOIRQ phase.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-ocores.c