Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-10-01 Thread Mika Westerberg
On Mon, Sep 30, 2013 at 05:43:48PM +0300, Mika Westerberg wrote: > +static void acpi_i2c_device_pm_get(struct i2c_client *client) > +{ > + struct i2c_adapter *adap = client->adapter; > + > + /* Make sure the adapter is active */ > + if (ACPI_HANDLE(adap->dev.parent)) > +

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-10-01 Thread Mika Westerberg
On Mon, Sep 30, 2013 at 05:43:48PM +0300, Mika Westerberg wrote: +static void acpi_i2c_device_pm_get(struct i2c_client *client) +{ + struct i2c_adapter *adap = client-adapter; + + /* Make sure the adapter is active */ + if (ACPI_HANDLE(adap-dev.parent)) +

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Mika Westerberg
On Mon, Sep 30, 2013 at 07:20:59PM +0200, Rafael J. Wysocki wrote: > > +static void acpi_i2c_device_pm_get(struct i2c_client *client) > > +{ > > + struct i2c_adapter *adap = client->adapter; > > + > > + /* Make sure the adapter is active */ > > + if (ACPI_HANDLE(adap->dev.parent)) > > +

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Rafael J. Wysocki
On Monday, September 30, 2013 07:20:59 PM Rafael J. Wysocki wrote: > On Monday, September 30, 2013 05:43:48 PM Mika Westerberg wrote: > > The ACPI specification requires the parent device to be powered on before > > any of its children. It can be only powered off when all the children are > >

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Rafael J. Wysocki
On Monday, September 30, 2013 05:43:48 PM Mika Westerberg wrote: > The ACPI specification requires the parent device to be powered on before > any of its children. It can be only powered off when all the children are > already off. > > Currently whenever there is no I2C traffic going on, the I2C

[PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Mika Westerberg
The ACPI specification requires the parent device to be powered on before any of its children. It can be only powered off when all the children are already off. Currently whenever there is no I2C traffic going on, the I2C controller driver can put the device into low power state transparently to

[PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Mika Westerberg
The ACPI specification requires the parent device to be powered on before any of its children. It can be only powered off when all the children are already off. Currently whenever there is no I2C traffic going on, the I2C controller driver can put the device into low power state transparently to

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Rafael J. Wysocki
On Monday, September 30, 2013 05:43:48 PM Mika Westerberg wrote: The ACPI specification requires the parent device to be powered on before any of its children. It can be only powered off when all the children are already off. Currently whenever there is no I2C traffic going on, the I2C

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Rafael J. Wysocki
On Monday, September 30, 2013 07:20:59 PM Rafael J. Wysocki wrote: On Monday, September 30, 2013 05:43:48 PM Mika Westerberg wrote: The ACPI specification requires the parent device to be powered on before any of its children. It can be only powered off when all the children are already

Re: [PATCH v3] i2c: enable runtime PM for I2C adapter devices enumerated from ACPI

2013-09-30 Thread Mika Westerberg
On Mon, Sep 30, 2013 at 07:20:59PM +0200, Rafael J. Wysocki wrote: +static void acpi_i2c_device_pm_get(struct i2c_client *client) +{ + struct i2c_adapter *adap = client-adapter; + + /* Make sure the adapter is active */ + if (ACPI_HANDLE(adap-dev.parent)) +