* [patch] pm: include EIO from errno-base.h
@ 2007-04-30 14:34 David Rientjes
2007-04-30 14:51 ` David Brownell
0 siblings, 1 reply; 4+ messages in thread
From: David Rientjes @ 2007-04-30 14:34 UTC (permalink / raw)
To: David Brownell; +Cc: linux-kernel
call_platform_enable_wakeup() uses EIO, so it needs to be defined.
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David Rientjes <rientjes@google.com>
---
include/linux/pm.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/pm.h b/include/linux/pm.h
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -25,6 +25,7 @@
#include <linux/list.h>
#include <asm/atomic.h>
+#include <asm/errno.h>
/*
* Power management requests... these are passed to pm_send_all() and friends.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] pm: include EIO from errno-base.h
2007-04-30 14:34 [patch] pm: include EIO from errno-base.h David Rientjes
@ 2007-04-30 14:51 ` David Brownell
2007-04-30 19:15 ` David Rientjes
0 siblings, 1 reply; 4+ messages in thread
From: David Brownell @ 2007-04-30 14:51 UTC (permalink / raw)
To: David Rientjes; +Cc: linux-kernel
On Monday 30 April 2007, David Rientjes wrote:
> call_platform_enable_wakeup() uses EIO, so it needs to be defined.
>
> Cc: David Brownell <dbrownell@users.sourceforge.net>
> Signed-off-by: David Rientjes <rientjes@google.com>
Actually, in that PM-is-disabled case returning zero (success)
rather than -EIO would have been the backwards-compatible
approach ... the hook not being there shouldn't be an error.
And returning zero wouldn't require this #include either...
- Dave
> ---
> include/linux/pm.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -25,6 +25,7 @@
>
> #include <linux/list.h>
> #include <asm/atomic.h>
> +#include <asm/errno.h>
>
> /*
> * Power management requests... these are passed to pm_send_all() and friends.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] pm: include EIO from errno-base.h
2007-04-30 14:51 ` David Brownell
@ 2007-04-30 19:15 ` David Rientjes
2007-04-30 21:02 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: David Rientjes @ 2007-04-30 19:15 UTC (permalink / raw)
To: David Brownell; +Cc: linux-kernel
For backwards compatibility, call_platform_enable_wakeup() can return 0
instead of -EIO since we aren't guaranteed to have errno defined.
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: David Rientjes <rientjes@google.com>
---
include/linux/pm.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/pm.h b/include/linux/pm.h
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -328,7 +328,7 @@ static inline void dpm_runtime_resume(struct device * dev)
static inline int call_platform_enable_wakeup(struct device *dev, int is_on)
{
- return -EIO;
+ return 0;
}
#endif
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] pm: include EIO from errno-base.h
2007-04-30 19:15 ` David Rientjes
@ 2007-04-30 21:02 ` Randy Dunlap
0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2007-04-30 21:02 UTC (permalink / raw)
To: David Rientjes; +Cc: David Brownell, linux-kernel
On Mon, 30 Apr 2007 12:15:57 -0700 (PDT) David Rientjes wrote:
> For backwards compatibility, call_platform_enable_wakeup() can return 0
> instead of -EIO since we aren't guaranteed to have errno defined.
>
> Cc: David Brownell <david-b@pacbell.net>
> Signed-off-by: David Rientjes <rientjes@google.com>
> ---
> include/linux/pm.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -328,7 +328,7 @@ static inline void dpm_runtime_resume(struct device * dev)
>
> static inline int call_platform_enable_wakeup(struct device *dev, int is_on)
> {
> - return -EIO;
> + return 0;
> }
>
> #endif
Andrew,
Can you fasttrack this one? otherwise allnoconfig fails. :(
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-30 20:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 14:34 [patch] pm: include EIO from errno-base.h David Rientjes
2007-04-30 14:51 ` David Brownell
2007-04-30 19:15 ` David Rientjes
2007-04-30 21:02 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox