Skip to content

Commit

Permalink
USB device mode changes for IVI
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vilasrk authored and sysopenci committed Aug 16, 2023
1 parent 68bcb51 commit a4197c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions groups/usb-gadget/auto/auto_hal.in
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion groups/usb-init/true/load_usb_modules.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a4197c8

Please sign in to comment.