Re: [PATCH 1/8] PM: Add suspend block api.

Matthew Garrett
2010-05-05T13:31:31Z

On Tue, May 04, 2010 at 06:50:50PM -0700, mark gross wrote:

> In my sequence above I had the modem driver "magically" knowing to fail
> this suspend attempt. (that "magic" wasn't fully thought out though.)

If the modem driver knows to "magically" fail a suspend attempt until it
knows that userspace has consumed the event, you have something that
looks awfully like suspend blockers.

> There *has* to be a better way.

But nobody has reasonably proposed one and demonstrated that it works.
We've had over a year to do so and failed, and I think it's pretty
unreasonable to ask Google to attempt to rearchitect based on a
hypothetical.

--
Matthew Garrett | mjg59@srcf.ucam.org