All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH V2] au1xmmc: dev_pm_ops conversion
@ 2009-08-03 16:33 Albin Tonnerre
  2009-08-03 19:23 ` Rafael J. Wysocki
  2009-08-03 19:23 ` Rafael J. Wysocki
  0 siblings, 2 replies; 27+ messages in thread
From: Albin Tonnerre @ 2009-08-03 16:33 UTC (permalink / raw)
  To: Frans Pop, Rafael J. Wysocki; +Cc: linux-kernel, Dmitry Torokhov

On Sat, Jul 25, 2009, Frans Pop wrote:
> Yes, I see that in drivers/base/platform.c (legacy) .suspend resp. .resume
> also got called for those cases?
> Ouch :-(

This really looks like it's error-prone (I made this mistake for atmel_serial
and wouldn't have noticed if Frans hadn't told me), and AFAICS, for a number of
drivers we'll have suspend = freeze = poweroff and resume = thaw = restore.
Maybe putting something like this in pm.h would help ?

#define PM_OPS(name, suspend, resume) \
struct dev_pm_ops name = { \
	.suspend = suspend, \
	.resume = resume, \
	.freeze = suspend, \
	.thaw = resume, \
	.poweroff = suspend, \
	.restore = resume, \
};

Cheers,
-- 
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH V2] au1xmmc: dev_pm_ops conversion
  2009-08-03 16:33 [PATCH V2] au1xmmc: dev_pm_ops conversion Albin Tonnerre
  2009-08-03 19:23 ` Rafael J. Wysocki
@ 2009-08-03 19:23 ` Rafael J. Wysocki
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone Albin Tonnerre
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: " Albin Tonnerre
  1 sibling, 2 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-03 19:23 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Frans Pop, linux-kernel, Dmitry Torokhov, Linux PM List

On Monday 03 August 2009, Albin Tonnerre wrote:
> On Sat, Jul 25, 2009, Frans Pop wrote:
> > Yes, I see that in drivers/base/platform.c (legacy) .suspend resp. .resume
> > also got called for those cases?
> > Ouch :-(
> 
> This really looks like it's error-prone (I made this mistake for atmel_serial
> and wouldn't have noticed if Frans hadn't told me), and AFAICS, for a number of
> drivers we'll have suspend = freeze = poweroff and resume = thaw = restore.
> Maybe putting something like this in pm.h would help ?
> 
> #define PM_OPS(name, suspend, resume) \
> struct dev_pm_ops name = { \
> 	.suspend = suspend, \
> 	.resume = resume, \
> 	.freeze = suspend, \
> 	.thaw = resume, \
> 	.poweroff = suspend, \
> 	.restore = resume, \
> };

That looks like a good idea, but please call that macro SIMPLE_PM_OPS (or
something similar) and submit a patch.

Best,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH V2] au1xmmc: dev_pm_ops conversion
  2009-08-03 16:33 [PATCH V2] au1xmmc: dev_pm_ops conversion Albin Tonnerre
@ 2009-08-03 19:23 ` Rafael J. Wysocki
  2009-08-03 19:23 ` Rafael J. Wysocki
  1 sibling, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-03 19:23 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Frans Pop, Dmitry Torokhov, linux-kernel, Linux PM List

On Monday 03 August 2009, Albin Tonnerre wrote:
> On Sat, Jul 25, 2009, Frans Pop wrote:
> > Yes, I see that in drivers/base/platform.c (legacy) .suspend resp. .resume
> > also got called for those cases?
> > Ouch :-(
> 
> This really looks like it's error-prone (I made this mistake for atmel_serial
> and wouldn't have noticed if Frans hadn't told me), and AFAICS, for a number of
> drivers we'll have suspend = freeze = poweroff and resume = thaw = restore.
> Maybe putting something like this in pm.h would help ?
> 
> #define PM_OPS(name, suspend, resume) \
> struct dev_pm_ops name = { \
> 	.suspend = suspend, \
> 	.resume = resume, \
> 	.freeze = suspend, \
> 	.thaw = resume, \
> 	.poweroff = suspend, \
> 	.restore = resume, \
> };

That looks like a good idea, but please call that macro SIMPLE_PM_OPS (or
something similar) and submit a patch.

Best,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-03 19:23 ` Rafael J. Wysocki
@ 2009-08-04  9:36   ` Albin Tonnerre
  2009-08-05  4:55     ` Dmitry Torokhov
  2009-08-05  4:55     ` Dmitry Torokhov
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: " Albin Tonnerre
  1 sibling, 2 replies; 27+ messages in thread
From: Albin Tonnerre @ 2009-08-04  9:36 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Frans Pop, linux-kernel, Dmitry Torokhov, Linux PM List

In a number of cases, the .suspend, .freeze, .poweroff and .resume,
.thaw, .restore functions are identical. However, they all need to be
assigned to avoid regressionsm as the previous code called .suspend
resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
this case.

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
---
 include/linux/pm.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/include/linux/pm.h b/include/linux/pm.h
index b3f7476..994a62f 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -184,6 +184,16 @@ struct dev_pm_ops {
 	int (*restore_noirq)(struct device *dev);
 };
 
+#define SIMPLE_PM_OPS(name, suspend_fn, resume_fn) \
+struct dev_pm_ops name = { \
+	.suspend = suspend_fn, \
+	.resume = resume_fn, \
+	.freeze = suspend_fn, \
+	.thaw = resume_fn, \
+	.poweroff = suspend_fn, \
+	.resume = resume_fn, \
+}
+
 /**
  * PM_EVENT_ messages
  *
-- 
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-03 19:23 ` Rafael J. Wysocki
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone Albin Tonnerre
@ 2009-08-04  9:36   ` Albin Tonnerre
  1 sibling, 0 replies; 27+ messages in thread
From: Albin Tonnerre @ 2009-08-04  9:36 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Frans Pop, Dmitry Torokhov, linux-kernel, Linux PM List

In a number of cases, the .suspend, .freeze, .poweroff and .resume,
.thaw, .restore functions are identical. However, they all need to be
assigned to avoid regressionsm as the previous code called .suspend
resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
this case.

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
---
 include/linux/pm.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/include/linux/pm.h b/include/linux/pm.h
index b3f7476..994a62f 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -184,6 +184,16 @@ struct dev_pm_ops {
 	int (*restore_noirq)(struct device *dev);
 };
 
+#define SIMPLE_PM_OPS(name, suspend_fn, resume_fn) \
+struct dev_pm_ops name = { \
+	.suspend = suspend_fn, \
+	.resume = resume_fn, \
+	.freeze = suspend_fn, \
+	.thaw = resume_fn, \
+	.poweroff = suspend_fn, \
+	.resume = resume_fn, \
+}
+
 /**
  * PM_EVENT_ messages
  *
-- 
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone Albin Tonnerre
  2009-08-05  4:55     ` Dmitry Torokhov
@ 2009-08-05  4:55     ` Dmitry Torokhov
  2009-08-05  9:37         ` Albin Tonnerre
  1 sibling, 1 reply; 27+ messages in thread
From: Dmitry Torokhov @ 2009-08-05  4:55 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Rafael J. Wysocki, Frans Pop, linux-kernel, Linux PM List

On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> .thaw, .restore functions are identical. However, they all need to be
> assigned to avoid regressionsm as the previous code called .suspend
> resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> this case.
> 

I'd much rather have conversions done with a bit more analysis now that
our framework is more flexible and we can have specialized routines for
hibernation and suspend.

Maybe we should try changing from run-time to build time warning so that
users are not overly concerned with it?

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone Albin Tonnerre
@ 2009-08-05  4:55     ` Dmitry Torokhov
  2009-08-05  4:55     ` Dmitry Torokhov
  1 sibling, 0 replies; 27+ messages in thread
From: Dmitry Torokhov @ 2009-08-05  4:55 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Frans Pop, linux-kernel, Linux PM List

On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> .thaw, .restore functions are identical. However, they all need to be
> assigned to avoid regressionsm as the previous code called .suspend
> resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> this case.
> 

I'd much rather have conversions done with a bit more analysis now that
our framework is more flexible and we can have specialized routines for
hibernation and suspend.

Maybe we should try changing from run-time to build time warning so that
users are not overly concerned with it?

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-05  4:55     ` Dmitry Torokhov
@ 2009-08-05  9:37         ` Albin Tonnerre
  0 siblings, 0 replies; 27+ messages in thread
From: Albin Tonnerre @ 2009-08-05  9:37 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Rafael J. Wysocki, Frans Pop, linux-kernel, Linux PM List

On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > .thaw, .restore functions are identical. However, they all need to be
> > assigned to avoid regressionsm as the previous code called .suspend
> > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > this case.


> I'd much rather have conversions done with a bit more analysis now that
> our framework is more flexible and we can have specialized routines for
> hibernation and suspend.

I still think that even though they can, quite a number of drivers won't
/need/ to have different functions for this, but maybe I'm mistaken.

> Maybe we should try changing from run-time to build time warning so that
> users are not overly concerned with it?

I'm not sure that solves the problem. The fact is that even for developers, it's
easy to overlook that assiging only the .suspend and .resume fields is probably
a mistake.

Regards,
-- 
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
@ 2009-08-05  9:37         ` Albin Tonnerre
  0 siblings, 0 replies; 27+ messages in thread
From: Albin Tonnerre @ 2009-08-05  9:37 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Frans Pop, linux-kernel, Linux PM List

On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > .thaw, .restore functions are identical. However, they all need to be
> > assigned to avoid regressionsm as the previous code called .suspend
> > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > this case.


> I'd much rather have conversions done with a bit more analysis now that
> our framework is more flexible and we can have specialized routines for
> hibernation and suspend.

I still think that even though they can, quite a number of drivers won't
/need/ to have different functions for this, but maybe I'm mistaken.

> Maybe we should try changing from run-time to build time warning so that
> users are not overly concerned with it?

I'm not sure that solves the problem. The fact is that even for developers, it's
easy to overlook that assiging only the .suspend and .resume fields is probably
a mistake.

Regards,
-- 
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-05  9:37         ` Albin Tonnerre
  (?)
  (?)
@ 2009-08-05 18:47         ` Rafael J. Wysocki
  2009-08-05 20:05           ` [PATCH] PM: Add convenience macro to " Rafael J. Wysocki
  2009-08-05 20:05           ` Rafael J. Wysocki
  -1 siblings, 2 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 18:47 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Dmitry Torokhov, Frans Pop, linux-kernel, Linux PM List

On Wednesday 05 August 2009, Albin Tonnerre wrote:
> On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > > .thaw, .restore functions are identical. However, they all need to be
> > > assigned to avoid regressionsm as the previous code called .suspend
> > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > > this case.
> 
> 
> > I'd much rather have conversions done with a bit more analysis now that
> > our framework is more flexible and we can have specialized routines for
> > hibernation and suspend.
> 
> I still think that even though they can, quite a number of drivers won't
> /need/ to have different functions for this, but maybe I'm mistaken.
> 
> > Maybe we should try changing from run-time to build time warning so that
> > users are not overly concerned with it?
> 
> I'm not sure that solves the problem. The fact is that even for developers, it's
> easy to overlook that assiging only the .suspend and .resume fields is probably
> a mistake.

I agree, so I'm going to take the patch.

I'll add a comment describing what the macro is for, though.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone
  2009-08-05  9:37         ` Albin Tonnerre
  (?)
@ 2009-08-05 18:47         ` Rafael J. Wysocki
  -1 siblings, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 18:47 UTC (permalink / raw)
  To: Albin Tonnerre; +Cc: Frans Pop, Dmitry Torokhov, linux-kernel, Linux PM List

On Wednesday 05 August 2009, Albin Tonnerre wrote:
> On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > > .thaw, .restore functions are identical. However, they all need to be
> > > assigned to avoid regressionsm as the previous code called .suspend
> > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > > this case.
> 
> 
> > I'd much rather have conversions done with a bit more analysis now that
> > our framework is more flexible and we can have specialized routines for
> > hibernation and suspend.
> 
> I still think that even though they can, quite a number of drivers won't
> /need/ to have different functions for this, but maybe I'm mistaken.
> 
> > Maybe we should try changing from run-time to build time warning so that
> > users are not overly concerned with it?
> 
> I'm not sure that solves the problem. The fact is that even for developers, it's
> easy to overlook that assiging only the .suspend and .resume fields is probably
> a mistake.

I agree, so I'm going to take the patch.

I'll add a comment describing what the macro is for, though.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 18:47         ` Rafael J. Wysocki
  2009-08-05 20:05           ` [PATCH] PM: Add convenience macro to " Rafael J. Wysocki
@ 2009-08-05 20:05           ` Rafael J. Wysocki
  2009-08-05 20:17             ` pHilipp Zabel
                               ` (3 more replies)
  1 sibling, 4 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 20:05 UTC (permalink / raw)
  To: Albin Tonnerre
  Cc: Dmitry Torokhov, Frans Pop, linux-kernel, Linux PM List, Daniel Mack

On Wednesday 05 August 2009, Rafael J. Wysocki wrote:
> On Wednesday 05 August 2009, Albin Tonnerre wrote:
> > On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> > > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > > > .thaw, .restore functions are identical. However, they all need to be
> > > > assigned to avoid regressionsm as the previous code called .suspend
> > > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > > > this case.
> > 
> > 
> > > I'd much rather have conversions done with a bit more analysis now that
> > > our framework is more flexible and we can have specialized routines for
> > > hibernation and suspend.
> > 
> > I still think that even though they can, quite a number of drivers won't
> > /need/ to have different functions for this, but maybe I'm mistaken.
> > 
> > > Maybe we should try changing from run-time to build time warning so that
> > > users are not overly concerned with it?
> > 
> > I'm not sure that solves the problem. The fact is that even for developers, it's
> > easy to overlook that assiging only the .suspend and .resume fields is probably
> > a mistake.
> 
> I agree, so I'm going to take the patch.
> 
> I'll add a comment describing what the macro is for, though.

Strictly speaking, I'm going to add the appended patch to the linux-next
branch of the suspend-2.6 tree.

Thanks,
Rafael

---
From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Subject: PM: Add convenience macro to make switching to dev_pm_ops less error-prone

In a number of cases, the .suspend, .freeze, .poweroff and .resume,
.thaw, .restore functions are identical. However, they all need to be
assigned to avoid regressionsm as the previous code called .suspend
resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal
with this case.

[rjw: Changed the name of the macro and added the comment explaining its
 purpose.]

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 include/linux/pm.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

Index: linux-2.6/include/linux/pm.h
===================================================================
--- linux-2.6.orig/include/linux/pm.h
+++ linux-2.6/include/linux/pm.h
@@ -184,6 +184,20 @@ struct dev_pm_ops {
 	int (*restore_noirq)(struct device *dev);
 };
 
+/*
+ * Use this if you want to use the same suspend and resume callbacks for suspend
+ * to RAM and hibernation.
+ */
+#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
+struct dev_pm_ops name = { \
+	.suspend = suspend_fn, \
+	.resume = resume_fn, \
+	.freeze = suspend_fn, \
+	.thaw = resume_fn, \
+	.poweroff = suspend_fn, \
+	.resume = resume_fn, \
+}
+
 /**
  * PM_EVENT_ messages
  *

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 18:47         ` Rafael J. Wysocki
@ 2009-08-05 20:05           ` Rafael J. Wysocki
  2009-08-05 20:05           ` Rafael J. Wysocki
  1 sibling, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 20:05 UTC (permalink / raw)
  To: Albin Tonnerre
  Cc: Frans Pop, Dmitry Torokhov, linux-kernel, Daniel Mack, Linux PM List

On Wednesday 05 August 2009, Rafael J. Wysocki wrote:
> On Wednesday 05 August 2009, Albin Tonnerre wrote:
> > On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
> > > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> > > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> > > > .thaw, .restore functions are identical. However, they all need to be
> > > > assigned to avoid regressionsm as the previous code called .suspend
> > > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> > > > this case.
> > 
> > 
> > > I'd much rather have conversions done with a bit more analysis now that
> > > our framework is more flexible and we can have specialized routines for
> > > hibernation and suspend.
> > 
> > I still think that even though they can, quite a number of drivers won't
> > /need/ to have different functions for this, but maybe I'm mistaken.
> > 
> > > Maybe we should try changing from run-time to build time warning so that
> > > users are not overly concerned with it?
> > 
> > I'm not sure that solves the problem. The fact is that even for developers, it's
> > easy to overlook that assiging only the .suspend and .resume fields is probably
> > a mistake.
> 
> I agree, so I'm going to take the patch.
> 
> I'll add a comment describing what the macro is for, though.

Strictly speaking, I'm going to add the appended patch to the linux-next
branch of the suspend-2.6 tree.

Thanks,
Rafael

---
From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Subject: PM: Add convenience macro to make switching to dev_pm_ops less error-prone

In a number of cases, the .suspend, .freeze, .poweroff and .resume,
.thaw, .restore functions are identical. However, they all need to be
assigned to avoid regressionsm as the previous code called .suspend
resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal
with this case.

[rjw: Changed the name of the macro and added the comment explaining its
 purpose.]

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 include/linux/pm.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

Index: linux-2.6/include/linux/pm.h
===================================================================
--- linux-2.6.orig/include/linux/pm.h
+++ linux-2.6/include/linux/pm.h
@@ -184,6 +184,20 @@ struct dev_pm_ops {
 	int (*restore_noirq)(struct device *dev);
 };
 
+/*
+ * Use this if you want to use the same suspend and resume callbacks for suspend
+ * to RAM and hibernation.
+ */
+#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
+struct dev_pm_ops name = { \
+	.suspend = suspend_fn, \
+	.resume = resume_fn, \
+	.freeze = suspend_fn, \
+	.thaw = resume_fn, \
+	.poweroff = suspend_fn, \
+	.resume = resume_fn, \
+}
+
 /**
  * PM_EVENT_ messages
  *

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops  less error-prone
  2009-08-05 20:05           ` Rafael J. Wysocki
@ 2009-08-05 20:17             ` pHilipp Zabel
  2009-08-05 20:17             ` pHilipp Zabel
                               ` (2 subsequent siblings)
  3 siblings, 0 replies; 27+ messages in thread
From: pHilipp Zabel @ 2009-08-05 20:17 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Albin Tonnerre, Dmitry Torokhov, Frans Pop, linux-kernel,
	Linux PM List, Daniel Mack

On Wed, Aug 5, 2009 at 10:05 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> On Wednesday 05 August 2009, Rafael J. Wysocki wrote:
>> On Wednesday 05 August 2009, Albin Tonnerre wrote:
>> > On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
>> > > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
>> > > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
>> > > > .thaw, .restore functions are identical. However, they all need to be
>> > > > assigned to avoid regressionsm as the previous code called .suspend
>> > > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
>> > > > this case.
>> >
>> >
>> > > I'd much rather have conversions done with a bit more analysis now that
>> > > our framework is more flexible and we can have specialized routines for
>> > > hibernation and suspend.
>> >
>> > I still think that even though they can, quite a number of drivers won't
>> > /need/ to have different functions for this, but maybe I'm mistaken.
>> >
>> > > Maybe we should try changing from run-time to build time warning so that
>> > > users are not overly concerned with it?
>> >
>> > I'm not sure that solves the problem. The fact is that even for developers, it's
>> > easy to overlook that assiging only the .suspend and .resume fields is probably
>> > a mistake.
>>
>> I agree, so I'm going to take the patch.
>>
>> I'll add a comment describing what the macro is for, though.
>
> Strictly speaking, I'm going to add the appended patch to the linux-next
> branch of the suspend-2.6 tree.
>
> Thanks,
> Rafael
>
> ---
> From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
> Subject: PM: Add convenience macro to make switching to dev_pm_ops less error-prone
>
> In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> .thaw, .restore functions are identical. However, they all need to be
> assigned to avoid regressionsm as the previous code called .suspend
> resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal
> with this case.
>
> [rjw: Changed the name of the macro and added the comment explaining its
>  purpose.]
>
> Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
>  include/linux/pm.h |   14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> Index: linux-2.6/include/linux/pm.h
> ===================================================================
> --- linux-2.6.orig/include/linux/pm.h
> +++ linux-2.6/include/linux/pm.h
> @@ -184,6 +184,20 @@ struct dev_pm_ops {
>        int (*restore_noirq)(struct device *dev);
>  };
>
> +/*
> + * Use this if you want to use the same suspend and resume callbacks for suspend
> + * to RAM and hibernation.
> + */
> +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> +struct dev_pm_ops name = { \
> +       .suspend = suspend_fn, \
> +       .resume = resume_fn, \
> +       .freeze = suspend_fn, \
> +       .thaw = resume_fn, \
> +       .poweroff = suspend_fn, \
> +       .resume = resume_fn, \

I think that second .resume was intended to be .restore instead.

regards
Philipp

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 20:05           ` Rafael J. Wysocki
  2009-08-05 20:17             ` pHilipp Zabel
@ 2009-08-05 20:17             ` pHilipp Zabel
  2009-08-05 20:22             ` Frans Pop
  2009-08-05 20:22             ` Frans Pop
  3 siblings, 0 replies; 27+ messages in thread
From: pHilipp Zabel @ 2009-08-05 20:17 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Frans Pop, Dmitry Torokhov, linux-kernel, Daniel Mack,
	Linux PM List, Albin Tonnerre

On Wed, Aug 5, 2009 at 10:05 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> On Wednesday 05 August 2009, Rafael J. Wysocki wrote:
>> On Wednesday 05 August 2009, Albin Tonnerre wrote:
>> > On Tue, Aug 04, 2009 at 09:55:33PM -0700, Dmitry Torokhov wrote :
>> > > On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
>> > > > In a number of cases, the .suspend, .freeze, .poweroff and .resume,
>> > > > .thaw, .restore functions are identical. However, they all need to be
>> > > > assigned to avoid regressionsm as the previous code called .suspend
>> > > > resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
>> > > > this case.
>> >
>> >
>> > > I'd much rather have conversions done with a bit more analysis now that
>> > > our framework is more flexible and we can have specialized routines for
>> > > hibernation and suspend.
>> >
>> > I still think that even though they can, quite a number of drivers won't
>> > /need/ to have different functions for this, but maybe I'm mistaken.
>> >
>> > > Maybe we should try changing from run-time to build time warning so that
>> > > users are not overly concerned with it?
>> >
>> > I'm not sure that solves the problem. The fact is that even for developers, it's
>> > easy to overlook that assiging only the .suspend and .resume fields is probably
>> > a mistake.
>>
>> I agree, so I'm going to take the patch.
>>
>> I'll add a comment describing what the macro is for, though.
>
> Strictly speaking, I'm going to add the appended patch to the linux-next
> branch of the suspend-2.6 tree.
>
> Thanks,
> Rafael
>
> ---
> From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
> Subject: PM: Add convenience macro to make switching to dev_pm_ops less error-prone
>
> In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> .thaw, .restore functions are identical. However, they all need to be
> assigned to avoid regressionsm as the previous code called .suspend
> resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal
> with this case.
>
> [rjw: Changed the name of the macro and added the comment explaining its
>  purpose.]
>
> Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
>  include/linux/pm.h |   14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> Index: linux-2.6/include/linux/pm.h
> ===================================================================
> --- linux-2.6.orig/include/linux/pm.h
> +++ linux-2.6/include/linux/pm.h
> @@ -184,6 +184,20 @@ struct dev_pm_ops {
>        int (*restore_noirq)(struct device *dev);
>  };
>
> +/*
> + * Use this if you want to use the same suspend and resume callbacks for suspend
> + * to RAM and hibernation.
> + */
> +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> +struct dev_pm_ops name = { \
> +       .suspend = suspend_fn, \
> +       .resume = resume_fn, \
> +       .freeze = suspend_fn, \
> +       .thaw = resume_fn, \
> +       .poweroff = suspend_fn, \
> +       .resume = resume_fn, \

I think that second .resume was intended to be .restore instead.

regards
Philipp

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 20:05           ` Rafael J. Wysocki
  2009-08-05 20:17             ` pHilipp Zabel
  2009-08-05 20:17             ` pHilipp Zabel
@ 2009-08-05 20:22             ` Frans Pop
  2009-08-05 21:30               ` Rafael J. Wysocki
  2009-08-05 21:30               ` Rafael J. Wysocki
  2009-08-05 20:22             ` Frans Pop
  3 siblings, 2 replies; 27+ messages in thread
From: Frans Pop @ 2009-08-05 20:22 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: albin.tonnerre, dmitry.torokhov, elendil, linux-kernel, linux-pm, daniel

Rafael J. Wysocki wrote:

> +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> +struct dev_pm_ops name = { \
> +       .suspend = suspend_fn, \
> +       .resume = resume_fn, \
> +       .freeze = suspend_fn, \
> +       .thaw = resume_fn, \
> +       .poweroff = suspend_fn, \
> +       .resume = resume_fn, \

That defines .resume twice. Guess the last should be restore.

Cheers,
FJP

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 20:05           ` Rafael J. Wysocki
                               ` (2 preceding siblings ...)
  2009-08-05 20:22             ` Frans Pop
@ 2009-08-05 20:22             ` Frans Pop
  3 siblings, 0 replies; 27+ messages in thread
From: Frans Pop @ 2009-08-05 20:22 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: elendil, dmitry.torokhov, linux-kernel, daniel, linux-pm, albin.tonnerre

Rafael J. Wysocki wrote:

> +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> +struct dev_pm_ops name = { \
> +       .suspend = suspend_fn, \
> +       .resume = resume_fn, \
> +       .freeze = suspend_fn, \
> +       .thaw = resume_fn, \
> +       .poweroff = suspend_fn, \
> +       .resume = resume_fn, \

That defines .resume twice. Guess the last should be restore.

Cheers,
FJP

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 20:22             ` Frans Pop
  2009-08-05 21:30               ` Rafael J. Wysocki
@ 2009-08-05 21:30               ` Rafael J. Wysocki
  2009-08-06  8:51                 ` Daniel Mack
  2009-08-06  8:51                 ` Daniel Mack
  1 sibling, 2 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 21:30 UTC (permalink / raw)
  To: Frans Pop, pHilipp Zabel
  Cc: albin.tonnerre, dmitry.torokhov, linux-kernel, linux-pm, daniel

On Wednesday 05 August 2009, Frans Pop wrote:
> Rafael J. Wysocki wrote:
> 
> > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > +struct dev_pm_ops name = { \
> > +       .suspend = suspend_fn, \
> > +       .resume = resume_fn, \
> > +       .freeze = suspend_fn, \
> > +       .thaw = resume_fn, \
> > +       .poweroff = suspend_fn, \
> > +       .resume = resume_fn, \
> 
> That defines .resume twice. Guess the last should be restore.

Yes, thanks to you and Philipp for noticing that and sorry for the mistake.

Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 20:22             ` Frans Pop
@ 2009-08-05 21:30               ` Rafael J. Wysocki
  2009-08-05 21:30               ` Rafael J. Wysocki
  1 sibling, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-05 21:30 UTC (permalink / raw)
  To: Frans Pop, pHilipp Zabel
  Cc: linux-pm, albin.tonnerre, dmitry.torokhov, linux-kernel, daniel

On Wednesday 05 August 2009, Frans Pop wrote:
> Rafael J. Wysocki wrote:
> 
> > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > +struct dev_pm_ops name = { \
> > +       .suspend = suspend_fn, \
> > +       .resume = resume_fn, \
> > +       .freeze = suspend_fn, \
> > +       .thaw = resume_fn, \
> > +       .poweroff = suspend_fn, \
> > +       .resume = resume_fn, \
> 
> That defines .resume twice. Guess the last should be restore.

Yes, thanks to you and Philipp for noticing that and sorry for the mistake.

Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 21:30               ` Rafael J. Wysocki
  2009-08-06  8:51                 ` Daniel Mack
@ 2009-08-06  8:51                 ` Daniel Mack
  2009-08-06 12:16                   ` Rafael J. Wysocki
  2009-08-06 12:16                   ` Rafael J. Wysocki
  1 sibling, 2 replies; 27+ messages in thread
From: Daniel Mack @ 2009-08-06  8:51 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Frans Pop, pHilipp Zabel, albin.tonnerre, dmitry.torokhov,
	linux-kernel, linux-pm

On Wed, Aug 05, 2009 at 11:30:07PM +0200, Rafael J. Wysocki wrote:
> On Wednesday 05 August 2009, Frans Pop wrote:
> > Rafael J. Wysocki wrote:
> > 
> > > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > > +struct dev_pm_ops name = { \
> > > +       .suspend = suspend_fn, \
> > > +       .resume = resume_fn, \
> > > +       .freeze = suspend_fn, \
> > > +       .thaw = resume_fn, \
> > > +       .poweroff = suspend_fn, \
> > > +       .resume = resume_fn, \
> > 
> > That defines .resume twice. Guess the last should be restore.
> 
> Yes, thanks to you and Philipp for noticing that and sorry for the mistake.

When is a good point to resend patches that use this macro? I guess they
won't make it to .31 anyway, right? So I just wait for the next merge
window?

Daniel


^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-05 21:30               ` Rafael J. Wysocki
@ 2009-08-06  8:51                 ` Daniel Mack
  2009-08-06  8:51                 ` Daniel Mack
  1 sibling, 0 replies; 27+ messages in thread
From: Daniel Mack @ 2009-08-06  8:51 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Frans Pop, dmitry.torokhov, linux-kernel, pHilipp Zabel,
	linux-pm, albin.tonnerre

On Wed, Aug 05, 2009 at 11:30:07PM +0200, Rafael J. Wysocki wrote:
> On Wednesday 05 August 2009, Frans Pop wrote:
> > Rafael J. Wysocki wrote:
> > 
> > > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > > +struct dev_pm_ops name = { \
> > > +       .suspend = suspend_fn, \
> > > +       .resume = resume_fn, \
> > > +       .freeze = suspend_fn, \
> > > +       .thaw = resume_fn, \
> > > +       .poweroff = suspend_fn, \
> > > +       .resume = resume_fn, \
> > 
> > That defines .resume twice. Guess the last should be restore.
> 
> Yes, thanks to you and Philipp for noticing that and sorry for the mistake.

When is a good point to resend patches that use this macro? I guess they
won't make it to .31 anyway, right? So I just wait for the next merge
window?

Daniel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-06  8:51                 ` Daniel Mack
@ 2009-08-06 12:16                   ` Rafael J. Wysocki
  2009-08-06 13:10                       ` Magnus Damm
  2009-08-06 12:16                   ` Rafael J. Wysocki
  1 sibling, 1 reply; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-06 12:16 UTC (permalink / raw)
  To: Daniel Mack
  Cc: Frans Pop, pHilipp Zabel, albin.tonnerre, dmitry.torokhov,
	linux-kernel, linux-pm

On Thursday 06 August 2009, Daniel Mack wrote:
> On Wed, Aug 05, 2009 at 11:30:07PM +0200, Rafael J. Wysocki wrote:
> > On Wednesday 05 August 2009, Frans Pop wrote:
> > > Rafael J. Wysocki wrote:
> > > 
> > > > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > > > +struct dev_pm_ops name = { \
> > > > +       .suspend = suspend_fn, \
> > > > +       .resume = resume_fn, \
> > > > +       .freeze = suspend_fn, \
> > > > +       .thaw = resume_fn, \
> > > > +       .poweroff = suspend_fn, \
> > > > +       .resume = resume_fn, \
> > > 
> > > That defines .resume twice. Guess the last should be restore.
> > 
> > Yes, thanks to you and Philipp for noticing that and sorry for the mistake.
> 
> When is a good point to resend patches that use this macro? I guess they
> won't make it to .31 anyway, right? So I just wait for the next merge
> window?

Yes, I think that would be the right thing to do.

Best,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-06  8:51                 ` Daniel Mack
  2009-08-06 12:16                   ` Rafael J. Wysocki
@ 2009-08-06 12:16                   ` Rafael J. Wysocki
  1 sibling, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-06 12:16 UTC (permalink / raw)
  To: Daniel Mack
  Cc: Frans Pop, dmitry.torokhov, linux-kernel, pHilipp Zabel,
	linux-pm, albin.tonnerre

On Thursday 06 August 2009, Daniel Mack wrote:
> On Wed, Aug 05, 2009 at 11:30:07PM +0200, Rafael J. Wysocki wrote:
> > On Wednesday 05 August 2009, Frans Pop wrote:
> > > Rafael J. Wysocki wrote:
> > > 
> > > > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > > > +struct dev_pm_ops name = { \
> > > > +       .suspend = suspend_fn, \
> > > > +       .resume = resume_fn, \
> > > > +       .freeze = suspend_fn, \
> > > > +       .thaw = resume_fn, \
> > > > +       .poweroff = suspend_fn, \
> > > > +       .resume = resume_fn, \
> > > 
> > > That defines .resume twice. Guess the last should be restore.
> > 
> > Yes, thanks to you and Philipp for noticing that and sorry for the mistake.
> 
> When is a good point to resend patches that use this macro? I guess they
> won't make it to .31 anyway, right? So I just wait for the next merge
> window?

Yes, I think that would be the right thing to do.

Best,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops  less error-prone
  2009-08-06 12:16                   ` Rafael J. Wysocki
@ 2009-08-06 13:10                       ` Magnus Damm
  0 siblings, 0 replies; 27+ messages in thread
From: Magnus Damm @ 2009-08-06 13:10 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Daniel Mack, Frans Pop, pHilipp Zabel, albin.tonnerre,
	dmitry.torokhov, linux-kernel, linux-pm

On Thu, Aug 6, 2009 at 9:16 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> On Thursday 06 August 2009, Daniel Mack wrote:
>> When is a good point to resend patches that use this macro? I guess they
>> won't make it to .31 anyway, right? So I just wait for the next merge
>> window?
>
> Yes, I think that would be the right thing to do.

Is it a good idea to disable the warning before the final 2.6.31 release?

Cheers,

/ magnus

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
@ 2009-08-06 13:10                       ` Magnus Damm
  0 siblings, 0 replies; 27+ messages in thread
From: Magnus Damm @ 2009-08-06 13:10 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Daniel Mack, Frans Pop, dmitry.torokhov, linux-kernel,
	pHilipp Zabel, linux-pm, albin.tonnerre

On Thu, Aug 6, 2009 at 9:16 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> On Thursday 06 August 2009, Daniel Mack wrote:
>> When is a good point to resend patches that use this macro? I guess they
>> won't make it to .31 anyway, right? So I just wait for the next merge
>> window?
>
> Yes, I think that would be the right thing to do.

Is it a good idea to disable the warning before the final 2.6.31 release?

Cheers,

/ magnus

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-06 13:10                       ` Magnus Damm
  (?)
@ 2009-08-06 15:14                       ` Rafael J. Wysocki
  -1 siblings, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-06 15:14 UTC (permalink / raw)
  To: Magnus Damm
  Cc: Daniel Mack, Frans Pop, pHilipp Zabel, albin.tonnerre,
	dmitry.torokhov, linux-kernel, linux-pm

On Thursday 06 August 2009, Magnus Damm wrote:
> On Thu, Aug 6, 2009 at 9:16 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> > On Thursday 06 August 2009, Daniel Mack wrote:
> >> When is a good point to resend patches that use this macro? I guess they
> >> won't make it to .31 anyway, right? So I just wait for the next merge
> >> window?
> >
> > Yes, I think that would be the right thing to do.
> 
> Is it a good idea to disable the warning before the final 2.6.31 release?

I guess so.  Let's disable it.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
  2009-08-06 13:10                       ` Magnus Damm
  (?)
  (?)
@ 2009-08-06 15:14                       ` Rafael J. Wysocki
  -1 siblings, 0 replies; 27+ messages in thread
From: Rafael J. Wysocki @ 2009-08-06 15:14 UTC (permalink / raw)
  To: Magnus Damm
  Cc: Daniel Mack, Frans Pop, dmitry.torokhov, linux-kernel,
	pHilipp Zabel, linux-pm, albin.tonnerre

On Thursday 06 August 2009, Magnus Damm wrote:
> On Thu, Aug 6, 2009 at 9:16 PM, Rafael J. Wysocki<rjw@sisk.pl> wrote:
> > On Thursday 06 August 2009, Daniel Mack wrote:
> >> When is a good point to resend patches that use this macro? I guess they
> >> won't make it to .31 anyway, right? So I just wait for the next merge
> >> window?
> >
> > Yes, I think that would be the right thing to do.
> 
> Is it a good idea to disable the warning before the final 2.6.31 release?

I guess so.  Let's disable it.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2009-08-06 15:14 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-03 16:33 [PATCH V2] au1xmmc: dev_pm_ops conversion Albin Tonnerre
2009-08-03 19:23 ` Rafael J. Wysocki
2009-08-03 19:23 ` Rafael J. Wysocki
2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less error-prone Albin Tonnerre
2009-08-05  4:55     ` Dmitry Torokhov
2009-08-05  4:55     ` Dmitry Torokhov
2009-08-05  9:37       ` Albin Tonnerre
2009-08-05  9:37         ` Albin Tonnerre
2009-08-05 18:47         ` Rafael J. Wysocki
2009-08-05 18:47         ` Rafael J. Wysocki
2009-08-05 20:05           ` [PATCH] PM: Add convenience macro to " Rafael J. Wysocki
2009-08-05 20:05           ` Rafael J. Wysocki
2009-08-05 20:17             ` pHilipp Zabel
2009-08-05 20:17             ` pHilipp Zabel
2009-08-05 20:22             ` Frans Pop
2009-08-05 21:30               ` Rafael J. Wysocki
2009-08-05 21:30               ` Rafael J. Wysocki
2009-08-06  8:51                 ` Daniel Mack
2009-08-06  8:51                 ` Daniel Mack
2009-08-06 12:16                   ` Rafael J. Wysocki
2009-08-06 13:10                     ` Magnus Damm
2009-08-06 13:10                       ` Magnus Damm
2009-08-06 15:14                       ` Rafael J. Wysocki
2009-08-06 15:14                       ` Rafael J. Wysocki
2009-08-06 12:16                   ` Rafael J. Wysocki
2009-08-05 20:22             ` Frans Pop
2009-08-04  9:36   ` [PATCH] Add SIMPLE_PM_OPS: " Albin Tonnerre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.