summaryrefslogtreecommitdiff
path: root/init.hardware.usb.rc
AgeCommit message (Collapse)Author
2019-03-08Merge "usb: export a midi function in charger mode"Kyle Tso
2019-03-08usb: disable L1 LPMraychi
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)
2019-03-08usb: export a midi function in charger modepumahsu
Enable a midi in charger mode, so device can enumerate with SDP and be charged up to 500mA. Bug: 124352818 Test: Verified on Windows/Linux/MAC, USB2 can build the connection and be charged. Change-Id: If75bcbc36f5d1e6d457edffbf20f4a7ea4475588 Signed-off-by: pumahsu <pumahsu@google.com> (cherry picked from commit a3c180d399e57fe6f99d220f1c85ca55bdff6b4d) (modified commit message for the project) Signed-off-by: Kyle Tso <kyletso@google.com>
2018-05-30Set no_disconnect for ffs adbBadhri Jagan Sridharan
no_disconnects flag defers disconnect till the actual descriptors are written. Bug: 78616385 Test: adb root with diag enabled succeeds on windows machine Change-Id: I1a144a8d612bc2fd93fc72c4c40762257d52407f
2018-05-28Add os descriptorsraychi
Bug: 78616385 Test: verify on BMW carkit Change-Id: I10dab7ec636a8282b40434ceb480d3567257e3e6
2018-05-28Usb Gadget hal implementation for crosshatchrickyniu
(cherry-pick of commit: 5e309b924830644827182e039e915e5ba314a81f) Bug: 77927124 Test: Tested USB gadget configurations and verified that they enumerated. Change-Id: I7be5f1df3a5e9edb8f7c60b82e48c31ed9e5cdde Signed-off-by: rickyniu <rickyniu@google.com>
2018-03-27Merge "Set USB tethering use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)" ↵TreeHugger Robot
into pi-dev
2018-03-27Set USB tethering use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)Badhri Jagan Sridharan
Linux and Mac (HoRNIS) are not support MISC_RNDIS_OVER_ETHERNET(0xEF/0x4/0x1) Set /config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1 Phone will use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3) Linux and Mac (HoRNIS) could open USB tethering function Bug: 74572255 Test: USB tethering function could work when /config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1 Change-Id: Ib3613e27d7f0009eecbe4e60181cf0d75b651fc3 Signed-off-by: rickyniu <rickyniu@google.com>
2018-03-05Mount ptp separately from mtpJerry Zhang
Ptp is now mounted in its own directory so the mtp endpoint does not need to be closed to write the ptp descriptors. sys.usb.ffs.mtp.ready is also now not needed. Bug: 72877174 Test: switch config to mtp/ptp Change-Id: I25bb33d628f93d2779c44ac22b6219a8ec3c4608
2017-11-22Enable usb overlay for debug functionsBadhri Jagan Sridharan
fastboot oem set_config bootmode usbradio - enables the usb overlay fastboot oem rm_config bootmode - clears it Adding usb overlay for oem functions as well. Test: enabled usbradio and verified that oem specific functions are added Bug: 69248116 Change-Id: Iae68ab3d172c5fb4ac9049aafd140144511ef6a6
2017-06-27crosshatch: Re-add crosshatch, and switch to sdm845Chris Fries
Change-Id: I303e8fe6be155c8c0d5385f5598c7f27c19282b1
2017-06-27crosshatch: Reset to wahoo on master.Chris Fries
commit dc78ac4aaa64e427c0f5c0672dc22939a9a7b85f Merge: 820b880 163a21c Author: Glenn Kasten <gkasten@google.com> Date: Tue Jun 27 15:12:54 2017 +0000 Merge "Report feature android.software.midi to enable testing" into oc-dr1-dev am: 614e203677 am: 163a21c15f Change-Id: I18876c0ce8e0435fdcb947d475c66fe7fae57da1 Change-Id: Id08e99f0603407199020818485eb29d92d421c43
2017-03-16build: use wahoo as common platformAlexey Polyudov
Change-Id: Iab6271ddabbff9bfdec16218113f1e6a5c390ab9
2017-02-23replace muskie with crosshatchAlexey Polyudov
Change-Id: I2da3e64381d4f6c75cc0be50eddba72eb407e361
2017-02-17crosshatch: initial device supportOleg Matcovschi
Change-Id: I64cdc6eb1bac40b60332852f0a2e9ccbcda4c536