Relax level check when looking for USB2/3 dual hubs

Some devices (notably Raspberry 4B) have USB3 hub that advertises
its USB2 compatibility partner at different depth level.
Raspberry 4B onboard hub doesn't yet support uhubctl directly
(but it should once https://github.com/raspberrypi/linux/issues/3079 is fixed),
but this breaks level check restriction for any external USB3 hub attached to RPi4B
- so this check has been removed.
This commit is contained in:
Vadim Mikhailov
2019-10-16 23:25:36 -07:00
parent fd611df1e7
commit 743ecf226b

View File

@@ -754,10 +754,6 @@ static int usb_find_hubs()
if (hubs[i].nports != hubs[j].nports)
continue;
/* And the same level: */
if (hubs[i].level != hubs[j].level)
continue;
/* Finally, we claim a match: */
match = j;
break;