Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2014-01-22 Thread David Cohen
On Tue, Jan 14, 2014 at 02:42:11PM -0800, David Cohen wrote: > On Fri, Dec 20, 2013 at 12:23:36PM -0800, David Cohen wrote: > > On Fri, Dec 20, 2013 at 08:55:27PM +0100, Pavel Machek wrote: > > > On Sun 2013-12-15 11:25:08, David Cohen wrote: > > > > On Sun, Dec 15, 2013 at 06:51:12PM +0100, Pavel

Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2014-01-14 Thread David Cohen
On Fri, Dec 20, 2013 at 12:23:36PM -0800, David Cohen wrote: > On Fri, Dec 20, 2013 at 08:55:27PM +0100, Pavel Machek wrote: > > On Sun 2013-12-15 11:25:08, David Cohen wrote: > > > On Sun, Dec 15, 2013 at 06:51:12PM +0100, Pavel Machek wrote: > > > > On Thu 2013-12-12 21:18:23, David Cohen wrote:

Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2013-12-20 Thread David Cohen
On Fri, Dec 20, 2013 at 08:55:27PM +0100, Pavel Machek wrote: > On Sun 2013-12-15 11:25:08, David Cohen wrote: > > On Sun, Dec 15, 2013 at 06:51:12PM +0100, Pavel Machek wrote: > > > On Thu 2013-12-12 21:18:23, David Cohen wrote: > > > > This patch makes SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM

Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2013-12-20 Thread Pavel Machek
On Sun 2013-12-15 11:25:08, David Cohen wrote: > On Sun, Dec 15, 2013 at 06:51:12PM +0100, Pavel Machek wrote: > > On Thu 2013-12-12 21:18:23, David Cohen wrote: > > > This patch makes SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() more > > > smart. > > > > > > Despite those macros check for '

Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2013-12-15 Thread David Cohen
On Sun, Dec 15, 2013 at 06:51:12PM +0100, Pavel Machek wrote: > On Thu 2013-12-12 21:18:23, David Cohen wrote: > > This patch makes SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() more > > smart. > > > > Despite those macros check for '#ifdef CONFIG_PM_SLEEP/RUNTIME' to avoid > > setting the ca

Re: [RFC/PATCH 1/3] pm: make PM macros more smart

2013-12-15 Thread Pavel Machek
On Thu 2013-12-12 21:18:23, David Cohen wrote: > This patch makes SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() more > smart. > > Despite those macros check for '#ifdef CONFIG_PM_SLEEP/RUNTIME' to avoid > setting the callbacks when such #ifdef's aren't defined, they don't > handle compiler to

[RFC/PATCH 1/3] pm: make PM macros more smart

2013-12-12 Thread David Cohen
This patch makes SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() more smart. Despite those macros check for '#ifdef CONFIG_PM_SLEEP/RUNTIME' to avoid setting the callbacks when such #ifdef's aren't defined, they don't handle compiler to avoid messages like that: drivers/usb/host/xhci-plat.c:20