commit | ceb7cbf5fde0ff26a35d442135d01e52b0ef0771 | [log] [tgz] |
---|---|---|
author | Aaron Wisner <awisner@google.com> | Mon Jul 23 15:40:58 2018 -0500 |
committer | Aaron Wisner <awisner@google.com> | Tue Jul 24 11:24:15 2018 -0500 |
tree | 839d5d4c329fe15e5391e02f829b886db4f00d05 | |
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