Re: [PATCH] hw/usb/core: fix inconsistent ep and pid (UBS_TOKEN_SETUP)

2023-01-30 Thread Qiang Liu
Hi all, I'm sure this patch will prevent the assertion failure due to the inconsistent ep and pid (UBS_TOKEN_SETUP) ( https://lists.gnu.org/archive/html/qemu-devel/2021-06/msg07179.html). For UHCI (https://gitlab.com/qemu-project/qemu/-/issues/119) and OHCI ( https://gitlab.com/qemu-project/qemu/

[PATCH] hw/usb/core: fix inconsistent ep and pid (UBS_TOKEN_SETUP)

2023-01-29 Thread Qiang Liu
Sometimes, `ep` is not enforced to 0 when `pid` is `USB_TOKEN_SETUP`. I trigger this through dwc2 (https://lists.gnu.org/archive/html/qemu-devel/2021-06/msg07179.html). A similar bug was found [here](https://gitlab.com/qemu-project/qemu/-/issues/119) and [here](https://gitlab.com/qemu-project/qemu/