From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [usb] signal RHSC in ohci_attach
Date: Mon, 22 May 2006 11:26:25 -0500 [thread overview]
Message-ID: <4471E631.70007@austin.rr.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 98 bytes --]
The attached patch signals root hub status change interrupt for
attach/detach in ohci_attach.
[-- Attachment #2: qemu-ohci-rhsc.diff --]
[-- Type: text/plain, Size: 551 bytes --]
--- qemu/hw/usb-ohci.c 2006-05-22 11:02:16.000000000 -0500
+++ qemu/hw/usb-ohci.c 2006-05-22 11:22:46.000000000 -0500
@@ -252,6 +252,7 @@
{
OHCIState *s = port1->opaque;
OHCIPort *port = &s->rhport[port1->index];
+ uint32_t old_state = port->ctrl;
if (dev) {
if (port->port.dev) {
@@ -290,6 +291,9 @@
port->port.dev = NULL;
dprintf("usb-ohci: Detached port %d\n", port1->index);
}
+
+ if (old_state != port->ctrl)
+ ohci_set_interrupt(s, OHCI_INTR_RHSC);
}
/* Reset the controller */
reply other threads:[~2006-05-22 16:26 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=4471E631.70007@austin.rr.com \
--to=lmendez19@austin.rr.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.