Patch "i2c: ocores: Move system PM hooks to the NOIRQ phase" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    i2c: ocores: Move system PM hooks to the NOIRQ phase

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     i2c-ocores-move-system-pm-hooks-to-the-noirq-phase.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ca551606cf849036246d140a1e2668119af47103
Author: Samuel Holland <samuel.holland@xxxxxxxxxx>
Date:   Sun Nov 12 18:32:45 2023 -0800

    i2c: ocores: Move system PM hooks to the NOIRQ phase
    
    [ Upstream commit 382561d16854a747e6df71034da08d20d6013dfe ]
    
    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@xxxxxxxxxx>
    Acked-by: Peter Korsgaard <peter@xxxxxxxxxxxxx>
    Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxx>
    Signed-off-by: Wolfram Sang <wsa@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 041a76f71a49c..e106af83cef4d 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -771,8 +771,8 @@ static int ocores_i2c_resume(struct device *dev)
 	return ocores_init(dev, i2c);
 }
 
-static DEFINE_SIMPLE_DEV_PM_OPS(ocores_i2c_pm,
-				ocores_i2c_suspend, ocores_i2c_resume);
+static DEFINE_NOIRQ_DEV_PM_OPS(ocores_i2c_pm,
+			       ocores_i2c_suspend, ocores_i2c_resume);
 
 static struct platform_driver ocores_i2c_driver = {
 	.probe   = ocores_i2c_probe,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux