Re: [PATCH] i2c: let I2C masters ignore their children for PM

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

 



> > diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
> > index 0f2f8484e8ec..5e114342dcbc 100644
> > --- a/drivers/i2c/i2c-core.c
> > +++ b/drivers/i2c/i2c-core.c
> > @@ -1566,6 +1566,7 @@ static int i2c_register_adapter(struct i2c_adapter *adap)
> >
> >         pm_runtime_no_callbacks(&adap->dev);
> >         pm_runtime_enable(&adap->dev);
> > +       pm_suspend_ignore_children(&adap->dev, true);
> 
> I guess it doesn't matter much, but I would set this before calling
> pm_runtime_enable().

I was wondering about that, too.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux