mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: <marcelo.tosatti@cyclades.com>
Cc: linux-kernel@vger.kernel.org
Subject: USB: uhci.c poll for wakeup events
Date: Tue, 23 Nov 2004 09:42:55 -0800	[thread overview]
Message-ID: <20041123094255.72ffe5e8@lembas.zaitcev.lan> (raw)

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);
 	}
 



                 reply	other threads:[~2004-11-24  0:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041123094255.72ffe5e8@lembas.zaitcev.lan \
    --to=zaitcev@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®