* [PATCH v3] hw/usb: fix xhci port notify
@ 2023-11-17 17:39 Nikita Ostrenkov
2023-12-18 10:40 ` Nikita Ostrenkov
0 siblings, 1 reply; 4+ messages in thread
From: Nikita Ostrenkov @ 2023-11-17 17:39 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, Nikita Ostrenkov
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3] hw/usb: fix xhci port notify
2023-11-17 17:39 [PATCH v3] hw/usb: fix xhci port notify Nikita Ostrenkov
@ 2023-12-18 10:40 ` Nikita Ostrenkov
2024-01-25 20:06 ` Nikita Ostrenkov
0 siblings, 1 reply; 4+ messages in thread
From: Nikita Ostrenkov @ 2023-12-18 10:40 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
ping
https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <n.ostrenkov@gmail.com>:
> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1732 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] hw/usb: fix xhci port notify
2023-12-18 10:40 ` Nikita Ostrenkov
@ 2024-01-25 20:06 ` Nikita Ostrenkov
2024-02-12 13:48 ` Nikita Ostrenkov
0 siblings, 1 reply; 4+ messages in thread
From: Nikita Ostrenkov @ 2024-01-25 20:06 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
ping
https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
пн, 18 дек. 2023 г., 13:40 Nikita Ostrenkov <n.ostrenkov@gmail.com>:
> ping
> https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
>
> пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <n.ostrenkov@gmail.com>:
>
>> 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
>>
>>
[-- Attachment #2: Type: text/html, Size: 2342 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] hw/usb: fix xhci port notify
2024-01-25 20:06 ` Nikita Ostrenkov
@ 2024-02-12 13:48 ` Nikita Ostrenkov
0 siblings, 0 replies; 4+ messages in thread
From: Nikita Ostrenkov @ 2024-02-12 13:48 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, mjt
[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]
(+Michael)
ping
https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
чт, 25 янв. 2024 г. в 23:06, Nikita Ostrenkov <n.ostrenkov@gmail.com>:
> ping
> https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
>
> пн, 18 дек. 2023 г., 13:40 Nikita Ostrenkov <n.ostrenkov@gmail.com>:
>
>> ping
>> https://patchew.org/QEMU/20231117173916.3658-1-n.ostrenkov@gmail.com/
>>
>> пт, 17 нояб. 2023 г., 20:39 Nikita Ostrenkov <n.ostrenkov@gmail.com>:
>>
>>> 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
>>>
>>>
[-- Attachment #2: Type: text/html, Size: 3007 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-12 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 17:39 [PATCH v3] hw/usb: fix xhci port notify Nikita Ostrenkov
2023-12-18 10:40 ` Nikita Ostrenkov
2024-01-25 20:06 ` Nikita Ostrenkov
2024-02-12 13:48 ` Nikita Ostrenkov
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).