USB: uhci.c poll for wakeup events
Subsystems (2)
Forwarded from: Alan Stern
This patch causes the uhci driver in 2.4 to wake up the controller when the root-hub polling loop detects a connect change event. Normally the wakeup is handled by an interrupt, but it turns out the recent Genesys Logic GL880S UHCI controller is defective and does not generate the necessary IRQ. With this patch the controller becomes useable.
[P3: The usb-uhci is not affected, apparently.]
Signed-off-by Alan Stern <[email protected]>
drivers/usb/host/uhci.c renamed from drivers/usb/host/uhci.c.orig +2 -0
@@ -1981,6 +1981,8 @@if ((data >0 ) && (uhci->rh.send !=0 )) {dbg ("root-hub INT complete: port1: %x port2: %x data: %x" ,inw (io_addr +USBPORTSC1 ),inw (io_addr +USBPORTSC2 ), data); +if (uhci->is_suspended) +wakeup_hc (uhci);uhci_call_completion (urb); }