From: Nikita Ostrenkov <n.ostrenkov@gmail.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
Nikita Ostrenkov <n.ostrenkov@gmail.com>
Subject: [PATCH v3] hw/usb: fix xhci port notify
Date: Fri, 17 Nov 2023 17:39:16 +0000 [thread overview]
Message-ID: <20231117173916.3658-1-n.ostrenkov@gmail.com> (raw)
From MCF5253 Reference manual https://www.nxp.com/docs/en/reference-manual/MCF5253RM.pdf
Host mode: Port Change Detect. The controller sets this bit to a one when on any port a Connect Status occurs, a PortEnable/Disable Change occurs, an Over Current Change occurs, or the Force Port Resume bit is set as theresult of a J-K transition on the suspended port.
Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
---
hw/usb/hcd-xhci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 4b60114207..1b2f4ac721 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -2627,6 +2627,7 @@ static void xhci_port_notify(XHCIPort *port, uint32_t bits)
if (!xhci_running(port->xhci)) {
return;
}
+ port->xhci->usbsts |= USBSTS_PCD;
xhci_event(port->xhci, &ev, 0);
}
--
2.34.1
next reply other threads:[~2023-11-17 17:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-17 17:39 Nikita Ostrenkov [this message]
2023-12-18 10:40 ` [PATCH v3] hw/usb: fix xhci port notify Nikita Ostrenkov
2024-01-25 20:06 ` Nikita Ostrenkov
2024-02-12 13:48 ` Nikita Ostrenkov
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=20231117173916.3658-1-n.ostrenkov@gmail.com \
--to=n.ostrenkov@gmail.com \
--cc=kraxel@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).