hw/usb: fix xhci port notify
PATCH v3 1/1 hw/usb: fix xhci port notify
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.
--- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+)
hw/usb/hcd-xhci.c +1 -0
@@ -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 ); }
Signature · 1 line
2.34.1
ping
https://patchew.org/QEMU/[email protected]/
пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <[email protected]>:
Quoted 30 lines
From MCF5253 Reference manual
https://www.nxp.com/docs/en/reference-manual/MCF5253RM.pdfHost 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 <[email protected]>--- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+)hw/usb/hcd-xhci.c +1
-1@@ -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
ping
https://patchew.org/QEMU/[email protected]/
пн, 18 дек. 2023 г., 13:40 Nikita Ostrenkov <[email protected]>:
Quoted 35 lines
ping
https://patchew.org/QEMU/[email protected]/пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <[email protected]>:
Quoted 30 lines
From MCF5253 Reference manual
https://www.nxp.com/docs/en/reference-manual/MCF5253RM.pdfHost 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 <[email protected]>--- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+)hw/usb/hcd-xhci.c +1
-1@@ -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
(+Michael)
ping
https://patchew.org/QEMU/[email protected]/
чт, 25 янв. 2024 г. в 23:06, Nikita Ostrenkov <[email protected]>:
Quoted 40 lines
ping
https://patchew.org/QEMU/[email protected]/пн, 18 дек. 2023 г., 13:40 Nikita Ostrenkov <[email protected]>:
Quoted 35 lines
ping
https://patchew.org/QEMU/[email protected]/пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <[email protected]>:
Quoted 30 lines
From MCF5253 Reference manual
https://www.nxp.com/docs/en/reference-manual/MCF5253RM.pdfHost 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 <[email protected]>--- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+)hw/usb/hcd-xhci.c +1
-1@@ -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