From a4197c8195e5779dab7bb466c1443423761c6270 Mon Sep 17 00:00:00 2001 From: Vilas R K Date: Sun, 6 Aug 2023 17:29:11 +0530 Subject: [PATCH] USB device mode changes for IVI Details: 1.File load_usb_modules.in --> Change will fix to load dwc3 drivers. 2.File auto_hal.inal --> Set appropraite properties for vendor.usb.controller and also fixes previous eroneous condition to set vendor.mount.ep0 property. Tracked-On: OAM-111693 Signed-off-by: Vilas R K --- groups/usb-gadget/auto/auto_hal.in | 14 +------------- groups/usb-init/true/load_usb_modules.in | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/groups/usb-gadget/auto/auto_hal.in b/groups/usb-gadget/auto/auto_hal.in index af8446c63..36dd4515f 100644 --- a/groups/usb-gadget/auto/auto_hal.in +++ b/groups/usb-gadget/auto/auto_hal.in @@ -1,18 +1,6 @@ -update_usb_controller() { -case "$(cat /sys/class/dmi/id/chassis_vendor | head -1)" in - QEMU) - setprop vendor.usb.controller "dwc3.2.auto" - ;; - *) - setprop vendor.usb.controller "dwc3.1.auto" - ;; -esac -} -update_usb_controller - vendor_mount_EP0() { DIR="/sys/class/udc/" -if [ ! -z $(ls -A $DIR) ]; then +if [ "$(ls -A $DIR)" ]; then setprop vendor.mount.ep0 1 fi } diff --git a/groups/usb-init/true/load_usb_modules.in b/groups/usb-init/true/load_usb_modules.in index d7dd7ec78..2aceebb46 100644 --- a/groups/usb-init/true/load_usb_modules.in +++ b/groups/usb-init/true/load_usb_modules.in @@ -6,4 +6,4 @@ load_usb_modules() { insmod $modules/dwc3-pci.ko setprop sys.usb.config $(getprop sys.usb.config) } -load_usb_modules& +load_usb_modules