-
Tomasz Figa authored
The problem with USB on veyron is not related directly to USB camera, but rather to one of the USB controllers not handling resume from autosuspend correctly. Current workaround enables persist only for one particular USB camera recognized by USB vendor and device IDs. However it does not take into account potential changes in built-in hardware list on the platform, e.g. camera module change or addition of extra USB device. To fix this issue, this patch replaces current udev rule with a more general one, which enables persist for all devices on usb3 bus, by checking the value of busnum attribute. BUG=chrome-os-partner:34217 TEST=cat /sys/devices/ff500000.usb/usb3/3-1/power/persist; camera tested on apprtc Change-Id: I07a99317b973b053331c71e5a4e880d197c04521 Signed-off-by: Tomasz Figa <tfiga@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/242210 Reviewed-by: Douglas Anderson <dianders@chromium.org> Commit-Queue: Douglas Anderson <dianders@chromium.org> Trybot-Ready: Douglas Anderson <dianders@chromium.org> Tested-by: Douglas Anderson <dianders@chromium.org>
6a016624