device_google_gs201/usb/usb
Kuen-Han Tsai 0c1f69415f Limit hub tuning when enable_hub is enabled
Some external hubs have the same VID and PID as the internal hub,
causing unintended hub tuning and compatibility issues.

This patch restricts hub tuning to only the internal hub located on
bus 1, port 1 when enable_hub is set to 1.

Bug: 353650207
Test: Verified an external GL852G speakerphone dock works when docked.
Test: adb shell cmd android.hardware.usb.IUsb/default hub-vendor-cmd
<hex wValue> <hex wIndex>
Flag: EXEMPT bugfix
Change-Id: If2cfe6684e4f5fafaab34bf7a4e4b4cd464d6575
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-08-07 12:27:59 +08:00
..
Android.bp switch over to use new storage read api instead of 2024-06-07 14:16:50 +00:00
android.hardware.usb-service.rc Update i2c device paths 2024-02-07 04:00:46 +00:00
android.hardware.usb-service.xml usb: update usb hal version to v3 2023-11-14 20:43:36 +00:00
service.cpp Migrate IUsb implementation to AIDL 2022-03-01 03:32:23 +00:00
Usb.cpp Limit hub tuning when enable_hub is enabled 2024-08-07 12:27:59 +08:00
Usb.h usb: Log for retry on role switch 2024-06-13 17:09:11 +08:00
UsbDataSessionMonitor.cpp usb: dump flag value in the constructor 2024-01-10 11:47:02 +00:00
UsbDataSessionMonitor.h usb: implement heuristics to flag data compliance warnings 2023-12-22 03:05:06 +00:00