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

From: Matthew Garrett
Date: Wed May 05 2010 - 09:32:09 EST


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@xxxxxxxxxxxxx
--
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/