Skip to content

Commit

Permalink
android-tools-conf-configfs: Allow handling two or more UDC controllers
Browse files Browse the repository at this point in the history
Several Qualcomm platforms support setting two or more (or even all)
UDC controllers in 'peripheral' mode. Modify the android-tools-conf-configfs
scriptware to handle such cases.

Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
bhupesh-sharma authored and kraj committed Oct 29, 2022
1 parent c651240 commit e87a950
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ set -e

sleep 10

ls /sys/class/udc/ | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC
ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC

bbnote "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage"

0 comments on commit e87a950

Please sign in to comment.