summaryrefslogtreecommitdiff
path: root/init.hardware.usb.rc
Commit message (Collapse)AuthorAgeFilesLines
* usb: disable L1 LPMraychi2018-06-191-0/+1
| | | | | | | | | | | | | | | | 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: 79961371 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>
* init.msm.usb.configfs.rc: Cleanup binded directories with none ruleAdam Shih2018-06-011-0/+11
| | | | | | | | | | | | | Currently there is no vendor specific rule for "none". Hence when USB composition is invoked using Android UI, previous USB composition based interfaces are not cleanup. This results into having extra interfaces with selected USB composition using Android UI. Fix this issue by adding "none" rule handling and removing all previously binded directories with it. Bug: 80274434 Test: Built pass and boot to home Change-Id: I943457d86588e04a9e8f55e67eefbfa26de4df13
* Set no_disconnect for ffs adbBadhri Jagan Sridharan2018-05-301-1/+1
| | | | | | | | | 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
* Add os descriptorsraychi2018-05-281-0/+2
| | | | | | Bug: 78616385 Test: verify on BMW carkit Change-Id: I10dab7ec636a8282b40434ceb480d3567257e3e6
* Usb Gadget hal implementation for crosshatchrickyniu2018-05-281-57/+8
| | | | | | | | | | | (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>
* Merge "Set USB tethering use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)" ↵TreeHugger Robot2018-03-271-0/+1
|\ | | | | | | into pi-dev
| * Set USB tethering use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)Badhri Jagan Sridharan2018-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Mount ptp separately from mtpJerry Zhang2018-03-051-8/+9
|/ | | | | | | | | | | | 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
* Enable usb overlay for debug functionsBadhri Jagan Sridharan2017-11-221-1/+0
| | | | | | | | | | | | | 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
* crosshatch: Re-add crosshatch, and switch to sdm845Chris Fries2017-06-271-1/+1
| | | | Change-Id: I303e8fe6be155c8c0d5385f5598c7f27c19282b1
* crosshatch: Reset to wahoo on master.Chris Fries2017-06-271-0/+102
| | | | | | | | | | | | | | 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
* build: use wahoo as common platformAlexey Polyudov2017-03-161-111/+0
| | | | Change-Id: Iab6271ddabbff9bfdec16218113f1e6a5c390ab9
* replace muskie with crosshatchAlexey Polyudov2017-02-231-0/+60
| | | | Change-Id: I2da3e64381d4f6c75cc0be50eddba72eb407e361
* crosshatch: initial device supportOleg Matcovschi2017-02-171-0/+51
Change-Id: I64cdc6eb1bac40b60332852f0a2e9ccbcda4c536