USB: SET_ADDRESS logic error #30972
Labels
area: USB
Universal Serial Bus
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Wont Fix
Not going to fix or implement
Describe the bug
When enumerating USB, when HOST sends a SET_ADDRESS command to zephyr, zephyr first calls usb_dc_set_address, and then responds via usb_dc_write, and this response uses a new device address, causing enumeration to fail, because HOST is still waiting for a response at address 0.
Expected behavior
After zephyr receives the SET_ADDRESS command, it should answer first, and then call usb_dc_set_address
Impact
usb enumeration failed
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: