Merge "Correct the new udc path"

This commit is contained in:
Albert Wang
2021-06-02 01:41:43 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 10 deletions

View File

@@ -67,11 +67,11 @@ enum class HALVersion{
};
constexpr char kGadgetName[] = "11210000.dwc3";
#define UDC_PATH "/sys/class/udc/11210000.dwc3/"
#define NEW_UDC_PATH "/sys/devices/platform/11210000.usb/"
#define ID_PATH UDC_PATH "device/id"
#define VBUS_PATH UDC_PATH "device/b_sess"
#define USB_DATA_PATH UDC_PATH "device/usb_data_enabled"
#define ID_PATH NEW_UDC_PATH "dwc3_exynos_otg_id"
#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess"
#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled"
struct Usb : public IUsb {
Usb();

View File

@@ -9,15 +9,15 @@ on post-fs
chown root system /sys/class/typec/port0/port_type
chown root system /sys/devices/platform/10d50000.hsi2c/i2c-5/i2c-max77759tcpc/contaminant_detection
chown root system /sys/devices/platform/10d50000.hsi2c/i2c-6/i2c-max77759tcpc/contaminant_detection
chown root system /sys/class/udc/11210000.usb/device/b_sess
chown root system /sys/class/udc/11210000.usb/device/id
chown root system /sys/class/udc/11210000.usb/device/usb_data_enabled
chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
chown root system /sys/devices/platform/11210000.usb/usb_data_enabled
chmod 664 /sys/class/typec/port0/power_role
chmod 664 /sys/class/typec/port0/data_role
chmod 664 /sys/class/typec/port0/port_type
chmod 664 /sys/class/udc/11210000.usb/device/b_sess
chmod 664 /sys/class/udc/11210000.usb/device/id
chmod 664 /sys/class/udc/11210000.usb/device/usb_data_enabled
chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
chmod 664 /sys/devices/platform/11210000.usb/usb_data_enabled
on property:vendor.usb.functions.ready=1
chown system system /config/usb_gadget/