[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080104163101.EDC02115203@adsl-69-226-248-13.dsl.pltn13.pacbell.net>
Date: Fri, 04 Jan 2008 08:31:01 -0800
From: David Brownell <david-b@...bell.net>
To: yi.y.yang@...el.com, pavel@....cz,
linux-pm@...ts.linux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: Re: [linux-pm][PATCH] base: Change power/wakeup output from "" to
"unsupported" if wakeup feature isn't supported by a device
> This patch changes empty output to "unsupported" in order that a user knows
> wakeup feature isn't supported by this device when he/she
> 'cat /sys/devices/.../power/wakeup', please consider to apply, thanks.
I don't much like this patch. Not just for the technical reasons
mentioned in my previous note ... but also because it doesn't update
the documention at the top, which clearly states that "\n" is
returned for "temporary or permanent inability to issue wakeup".
And then it gives the example I gave before ...
Though I suppose a patch that changes the *entire* userspace interface,
(which includes its documentation, and all out-of-tree users) would have
shown more clearly why it wasn't a good idea. ;)
> --- a/drivers/base/power/sysfs.c 2008-01-04 16:50:54.000000000 +0800
> +++ b/drivers/base/power/sysfs.c 2008-01-04 17:14:42.000000000 +0800
> @@ -49,7 +49,7 @@ wake_show(struct device * dev, struct de
> {
> return sprintf(buf, "%s\n", device_can_wakeup(dev)
> ? (device_may_wakeup(dev) ? enabled : disabled)
> - : "");
> + : "unsupported");
> }
>
> static ssize_t
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists