* USB: uhci.c poll for wakeup events
@ 2004-11-23 17:42 Pete Zaitcev
0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2004-11-23 17:42 UTC (permalink / raw)
To: marcelo.tosatti; +Cc: linux-kernel
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 <stern@rowland.harvard.edu>
--- linux-2.4.27/drivers/usb/host/uhci.c.orig 2003-06-13 10:51:36.000000000 -0400
+++ linux-2.4.27/drivers/usb/host/uhci.c 2004-10-28 11:52:27.000000000 -0400
@@ -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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-24 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-23 17:42 USB: uhci.c poll for wakeup events Pete Zaitcev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®