Re: platform/i2c busses: pm runtime and system sleep

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Saturday, December 18, 2010 - 7:59 am

On Saturday, December 18, 2010, Mark Brown wrote:

First, there already are ->suspend() and ->resume() callbacks in
struct bus_type which are regarded as "legacy".  The PM core uses those as
appropriate in drivers/base/power/main.c .

Second, the situation at hand is that the bus type implements dev_pm_ops,
but the driver doesn't.  Now, pm_generic_suspend() is called with a struct
device pointer, so it would have to go back to dev->bus, find the
->legacy_suspend() callback (as opposed to ->suspend(), which also is legacy,
but is called by the PM core instead).  May I call that confusing?


Well, I don't really think so.

Thanks,
Rafael
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
platform/i2c busses: pm runtime and system sleep, Rabin Vincent, (Thu Dec 16, 11:26 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Thu Dec 16, 5:09 pm)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Fri Dec 17, 5:54 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Fri Dec 17, 6:25 am)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Fri Dec 17, 6:34 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Fri Dec 17, 6:49 am)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Fri Dec 17, 7:24 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Fri Dec 17, 4:01 pm)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Fri Dec 17, 6:04 pm)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Sat Dec 18, 5:54 am)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Sat Dec 18, 6:20 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Sat Dec 18, 7:59 am)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Mon Dec 20, 8:00 am)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Mon Dec 20, 2:13 pm)
Re: platform/i2c busses: pm runtime and system sleep, Mark Brown, (Tue Dec 21, 4:51 pm)
Re: platform/i2c busses: pm runtime and system sleep, Rafael J. Wysocki, (Tue Dec 21, 5:35 pm)