acassis opened a new pull request, #17247:
URL: https://github.com/apache/nuttx/pull/17247
## Summary
This PR adds support to USB HUB Multi TT (Transaction Translator).
This is the case for USB2517 USB HUB. Also improved the driver to avoid
mistakes: initially I changed g_id[3], but the in register there is another
field where we need to pass this size again. So it is better to use
ARRAY_SIZE() macro to avoid mistakes.
## Impact
Users will be able to use the USB HUBs Multi-TT like USB2517.
## Testing
imxrt1050-evk:
usbhost_classbind: usbhost_findclass: 0x202000f8
usbhost_classbind: CLASS_CREATE: 0x20208f70
usbhost_cfgdesc: Interface descriptor
usbhost_cfgdesc: Endpoint descriptor
usbhost_cfgdesc: Interrupt IN EP:usbhost_cfgdesc: addr=1 interval=12
mxpacketsiz1
usbhost_cfgdesc: Endpoint allocated
usbhost_hubdesc: Read hub descriptor
usbhost_hubdesc: Hub Descriptor:
usbhost_hubdesc: bDescLength: 9
usbhost_hubdesc: bDescriptorType: 0x29
usbhost_hubdesc: bNbrPorts: 7
usbhost_hubdesc: wHubCharacteristics: 0x0089
usbhost_hubdesc: lpsm: 1
usbhost_hubdesc: compounddev: FALSE
usbhost_hubdesc: ocmode: 1
usbhost_hubdesc: indicator: TRUE
usbhost_hubdesc: bPwrOn2PwrGood: 50
usbhost_hubdesc: pwrondelay: 100
usbhost_hubdesc: bHubContrCurrent: 1
usbhost_hubdesc: DeviceRemovable: 0
usbhost_hubdesc: PortPwrCtrlMask: 255
usbhost_classbind: Returning: 0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]