lkml.org 
[lkml]   [2007]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Re: NAK new drivers without proper power management?
Date
Hi,

On Saturday, 10 February 2007 04:02, Nigel Cunningham wrote:
> Hi.
>
> On Fri, 2007-02-09 at 19:50 -0600, Robert Hancock wrote:
> > It also kind of bothers me that if a driver has no suspend/resume
> > functions, and you suspend and resume the system, we don't complain
> > about it even though there's a very good chance that device is not going
> > to function properly. How about something in dmesg like:
> >
> > Warning: driver for device XXXX has no suspend or resume support.
> > Device may not function properly after resume.
> >
> > so that users know who to complain to. Maybe there are some devices that
> > truly don't need any handling for suspend, but if so I suspect the
> > number of those is small enough that adding empty functions would be a
> > good-enough solution.
>
> Here's my current version of a patch to do this, if anyone wants to try
> it out. It dumps stack with the warning to make it easier to see what
> the source of the message is:

I have an alternative idea.

There is a test mode of swsusp that's triggered with
"echo test > /sys/power/disk" and "echo disk > /sys/power/state". We can make
it set a switch that will be used to trigger the warnings in the core.

This way the warnings will only appear in the user's dmesg in the test mode
and not always.

Would that be acceptable?

Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-10 10:39    [W:0.069 / U:1.196 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site