Re: [PATCH 2/2] PM: fix async resume following suspend failure

From: Rafael J. Wysocki
Date: Sun Jun 19 2011 - 15:45:55 EST


On Sunday, June 19, 2011, Rafael J. Wysocki wrote:
> On Sunday, June 19, 2011, Alan Stern wrote:
> > On Sat, 18 Jun 2011, Rafael J. Wysocki wrote:
> >
> > > > Okay; I should have been more careful. Thanks for fixing this up.
> > >
> > > No problem. :-)
> > >
> > > Appended is what I'm going to push to Linus.
> > >
> > > Thanks,
> > > Rafael
> > >
> > > ---
> > > From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > > Subject: PM: Fix async resume following suspend failure
> >
> > This looks fine. It's a little hard to test; you have to create an
> > artificial suspend failure. Have you tried doing that?
>
> Not yet, but I have a plan to do that. :-)

It appears to work. I've tested it using a fake battery module whose
.suspend() always returns error code.

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