New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Superfluous USB suspend after USB configured #16470
Comments
FYI @barsok |
I did a short travel in time: Tested on There has been some regression - and we have bumped into it. It would be good to at least find out why this bug occured. |
I tried to replicate the issue on the |
Fixed by 1370f16 |
Sorry my reply took so long, was that commit [1370f16] applied long time ago? |
On May 22 (#16193 (comment)), so not very long ago. At least it was applied after the commit for which the issue was reported (b0bc68e):
|
Describe the bug
After settings up USB communication, additional SUSPEND status occurs. This is normally a signal to stop HID communication and causes our application to stop sending HID data.
Bug occurs after re-plugging the USB or plugging it after Zephyr started. When the USB cable is attached during firmware startup, superfluous suspend will not occur.
To Reproduce
Found originally on custom hardware PCA20041 (nRF52840 gaming mouse), but can be also reproduced on
nrf52840_pca10056
DK withusb/hid
sample.Steps to reproduce the behavior:
usb/hid
sample, create and enterbuild
directorycmake .. -DBOARD=nrf52840_pca10056 -GNinja
Expected behavior
The suspend status should not be added after USB is replugged.
Impact
Stops HID application from sending data after replugging USB.
Environment (please complete the following information):
Additionally
I tried reproducing it on
usb/hid-mouse
sample, but this SUSPEND does not occur there. The only difference I see is thatusb/hid-mouse
only have 1 callback (status_cb) attached, while the bug occurs inusb/hid
which has more callbacks attached:The text was updated successfully, but these errors were encountered: