| Message ID | 20260123094603.2835-2-shoudil@qti.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe] android-tools-conf-configfs: handle multiple UDC controllers | expand |
Hi, On Fri, Jan 23, 2026 at 09:46:04AM +0000, Shoudi Li wrote: In the headers: `From: Shoudi Li <quaresma.jose@gmail.com> ` What is going on? > From: Shoudi Li <shoudil@qti.qualcomm.com> > > For the boards with multiple UDC ports, adb funtion will be impacted due > to below error. > > ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC > ls: write error: Device or resource busy > > Signed-off-by: Shoudi Li <shoudil@qti.qualcomm.com> Missing SoB or 'quaresma.jose@gmail.com'.
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> escreveu (sexta, 23/01/2026 à(s) 17:24): > Hi, > > > On Fri, Jan 23, 2026 at 09:46:04AM +0000, Shoudi Li wrote: > In the headers: `From: Shoudi Li <quaresma.jose@gmail.com> ` > > What is going on? The same issue as before. I will send a v2 > > > > From: Shoudi Li <shoudil@qti.qualcomm.com> > > > > For the boards with multiple UDC ports, adb funtion will be impacted due > > to below error. > > > > ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC > > ls: write error: Device or resource busy > > > > Signed-off-by: Shoudi Li <shoudil@qti.qualcomm.com> > > Missing SoB or 'quaresma.jose@gmail.com'. > > > -- > With best wishes > Dmitry >
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start index ca6c3df275..76b5e29624 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start @@ -2,6 +2,8 @@ set -e -sleep 3 +sleep 10 -ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC +ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC + +echo "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage"