Skip to content
Commit 7459e97d authored by Jack Pham's avatar Jack Pham Committed by Kader Bava
Browse files

RMX1921: recovery: Use direct path to set USB peripheral mode



On GKI 2.0 kernels using ADSP PMIC for USB cable detection the
/sys/class/udc/${ro.boot.usbcontroller} does not exist until the
controller is put into peripheral mode. This presents a chicken-
and-egg scenario in which we cannot use this path to locate its
device parent in order to write the mode setting.

Instead, derive the sysfs path using the "ro.boot.usb.dwc3_msm"
property containing the USB parent device name, if present.
Otherwise fall back to the hardcoded "a600000.ssusb" device
that's common to many existing QC platforms.

Change-Id: Id46b435b0739a25c8719a52b13c9f7343242d92d
Signed-off-by: default avatarkaderbava <ksbava7325@gmail.com>
parent 7f9b954c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment