diff options
| author | raychi <raychi@google.com> | 2018-05-22 15:41:34 +0800 |
|---|---|---|
| committer | Kyle Tso <kyletso@google.com> | 2019-03-08 09:24:22 +0000 |
| commit | 47c2febd06eec3c4ba7c52ea31e54c52846c07cc (patch) | |
| tree | e66a1633ace7b01cdb080bf83e265e11c3e444c9 /init.hardware.usb.rc | |
| parent | 95cedf98c7a60344d4c67ce3756a4051c6027f22 (diff) | |
usb: disable L1 LPM
NAK'ed OUT transfers never complete once the usb controller enters
L1 LPM. The issue was rootcaused to the usb controller not performing
remote wakeup when it enters L1 and a trasaction is queued.
Since, this is entirely controlled by controller's hardware,
disable L1 lpm to prevent transfer failure.
Also, init already has the required sepolicy to write to sysfs nodes.
Bug: 124354097
Test: already verify on some laptops and check bcdUSB field
Change-Id: I86efa37198f8837948cc545c378232762edea817
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: raychi <raychi@google.com>
(cherry picked from commit 52f4c450291c10505abcc193863ee2cdf9594360)
Diffstat (limited to 'init.hardware.usb.rc')
| -rw-r--r-- | init.hardware.usb.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init.hardware.usb.rc b/init.hardware.usb.rc index 787f5cd6..a997b7ff 100644 --- a/init.hardware.usb.rc +++ b/init.hardware.usb.rc @@ -50,6 +50,7 @@ on early-boot setprop sys.usb.mtp.device_type 3 setprop sys.usb.controller "a600000.dwc3" symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1 + write /sys/module/libcomposite/parameters/disable_l1_for_hs "y" write /config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1 on boot |
