diff options
author | Aaron Wisner <awisner@google.com> | 2018-07-23 15:40:58 -0500 |
---|---|---|
committer | Aaron Wisner <awisner@google.com> | 2018-07-24 11:24:15 -0500 |
commit | ceb7cbf5fde0ff26a35d442135d01e52b0ef0771 (patch) | |
tree | 839d5d4c329fe15e5391e02f829b886db4f00d05 /init/modalias_handler.cpp | |
parent | 767506fc5a5023e815cdc36e56688adaac2fe0d5 (diff) |
Add derived UsbTransport class with USB reset method
For testing there needs to be a way to simulate unplugging and
replugging a device. This change adds support for a USB reset
method that does this.
Also add timeouts, so USB reads/writes don't block forever
on an unresponsive device.
Test: glinux, fastboot tool still works
Test: Reset confirmed working via wireshark Linux URB captures
Change-Id: I7213a2395d4ef1c0238810e4929ab966e78c8b55
Diffstat (limited to 'init/modalias_handler.cpp')
0 files changed, 0 insertions, 0 deletions