-
Notifications
You must be signed in to change notification settings - Fork 675
usb: fixes for USB device support #2971
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
base: main
Are you sure you want to change the base?
usb: fixes for USB device support #2971
Conversation
…FS devices With the commit fe3c001 ("usb: device_next: disable high-speed USB device descriptor if not used") there is no high-speed device descriptor by default. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit 569f4d6d182e9802b3db9fc4ae58ec33f64e10e1)
In both implementation, when comparing received data length take into account that the buffer obtained from bt_buf_get_tx() stores the type at the top. The buffer types are H:4 and in the TX path we need to check for BT_HCI_H4_* types not BT_BUF_*. In the legacy implementation, the hci_acl_pkt_len() function obtains the length from the USB transaction buffer, which does not contain a buffer type at the top. In the new implementation, partially revert the changes and restore hci_pkt_get_len(), this will be required for any further changes anyway. Fixes commit f85d63a ("Bluetooth: Remove USB H4 mode support"). Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit 96422f262ed8cdcd4792a239d3ad6938831f67db)
…nsfer enqueue fail Do not take semaphore if transfer enqueue fails. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit d2e42c99ac8090502125365b7eca45d002af27da)
…ng descriptor The intention was to use the "interface-name" string property in the interface string descriptor, but using the label property is acceptable again. Therefore, allow the use of the DT label property string in the interface string descriptor. Follow exactly the same approach as in the CDC ACM implementation introduced in the commit b079140 ("usb: device_next: cdc_acm: allow setting the interface description"). Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit 79a8073)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested internally with USB3CV, all tests passed (it fixes webusb-next sample)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can verify that this fixes hci_usb on the nRF52840
Fixes for USB device support.