Skip to content

Commit 382561d

Browse files
SiFiveHollandwsakernel
authored andcommitted
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>
1 parent f726eaa commit 382561d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-ocores.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ static int ocores_i2c_resume(struct device *dev)
771771
return ocores_init(dev, i2c);
772772
}
773773

774-
static DEFINE_SIMPLE_DEV_PM_OPS(ocores_i2c_pm,
775-
ocores_i2c_suspend, ocores_i2c_resume);
774+
static DEFINE_NOIRQ_DEV_PM_OPS(ocores_i2c_pm,
775+
ocores_i2c_suspend, ocores_i2c_resume);
776776

777777
static struct platform_driver ocores_i2c_driver = {
778778
.probe = ocores_i2c_probe,

0 commit comments

Comments
 (0)