[PATCH v3] common: usb-hub: Reset hub port before scanning
Marek Vasut
marex at denx.de
Tue Jan 16 01:45:13 CET 2024
On 12/9/23 19:10, Shantur Rathore wrote:
> Currently when a hub is turned on, all the ports are powered on.
> This works well for hubs which have individual power control.
>
> For the hubs without individual power control this has no effect.
> Mostly in these scenarios the hub port is powered before the USB
> controller is enabled, this can lead to some devices in unexpected
> state.
>
> With this patch, we explicitly reset the port while powering up hub
> This resets the port for hubs without port power control and has
> no effect on hubs with port power control as the port is still off.
>
> Before this patch AMicro AM8180 based NVME to USB adapter won't be
> detected as a USB3.0 Mass Storage device but with this it works as
> expected.
>
> Tested working after this patch:
> 1. AMicro AM8180 based NVME to USB Adapter
> 2. Kingston DataTraveler 3.0
> 3. GenesysLogic USB3.0 Hub
>
> The drives were tested while connected directly and via the hub.
>
> Signed-off-by: Shantur Rathore <i at shantur.com>
Reviewed-by: Marek Vasut <marex at denx.de>
Tom, can you please pick this one up directly ?
More information about the U-Boot
mailing list