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

Wolfram Sang
2016-04-11T13:02:22Z

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

> > 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]