Re: [linux-pm] [RFC][PATCH 2/2] PM: Rework handling of interruptsduring suspend-resume

From: Alan Stern
Date: Thu Feb 26 2009 - 22:20:38 EST


On Thu, 26 Feb 2009, Linus Torvalds wrote:

> The _only_ driver that does enable_irq_wake() on x86 is the cmos timer
> driver, and even there it actually doesn't use irq_wake, but ACPI. Why?
> Because I don't think irq wakeup even _works_ on x86.
>
> So the whole enable_irq_wake is largely some embedded ARM platform issue,
> and a very special case, and doesn't exist anywhere else.
>
> Maybe I'm missing something, but it's definitely not the normal case.

What you're missing is that the embedded world is quite a large one.
As any member of CELF will tell you, there are lots more embedded
systems around than there are desktop/laptop computers. (I admit, I
don't know what the ratio is if you restrict your attention to systems
running Linux.) We can't afford to regard them as second-class
citizens.

Plenty of embedded systems use normal interrupts from GPIO lines as
wakeup sources. Don't discount the need for this just because desktop
systems don't use them that way. It may not be "normal" in the
circles you're accustomed to, but it _is_ normal elsewhere.

Alan Stern

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