Re: [PATCH] usb: hcd: allow wakeups while suspended for Moorestown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 Apr 2011 09:52:44 +0100
Alan Cox <alan@xxxxxxxxxxxxxxx> wrote:

> > down into ehci-hcd.  You could write a Moorestown-specific interrupt
> > handler which would first check whether the controller was
> > suspended. If it was, the handler could turn off the interrupt
> > request and call pm_runtime_get(); otherwise it could call ehci_irq()
> > directly and then see whether it needed to call pm_runtime_put() (or
> > possibly pm_runtime_put_autosuspend()).
> 
> Or you could make the moorestown specific code request a threaded IRQ,
> the rest of the kernel won't know. That would do the whole IRQ handling
> properly in that case.
> 

That would require something like the alloc_irq callback I suggested
earlier, since ATM the hcd.c code does the request_irq for everyone
and there is no easy way that I could find to intercept this.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux