diff options
| author | Thierry Strudel <tstrudel@google.com> | 2018-05-09 11:39:23 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@gmail.com> | 2020-04-18 03:49:00 +0300 |
| commit | 50a3a819ebeaf311a55d17dc89795139117dc87c (patch) | |
| tree | 06c19fc6d65f3af00024da24f84965c4f13da481 /scripts/gen_compile_commands.py | |
| parent | bae865a51c1a450d878252cb772c2b091684104f (diff) | |
Revert "USB: set hub's default autosuspend delay as 0"
Certain USB-C devices are failing to enumerate if the bus
transitions from active to suspend between connection and enumeration.
When a USB-C accessory is inserted in a phone and is detected by the
CC lines, the controller driver is loaded and the only devices present
on the bus are the root hubs, until the device enumerations.
As a result, a suspend transition between device connection and
enumeration is very likely.
This change leaves the hub autosuspend set to the usbcore.autosuspend
value so a value can be set high enough to prevent this race.
This reverts:
commit 596d789a211d ("USB: set hub's default autosuspend delay as 0")
This patch sets hub device's default autosuspend delay as 0 to
speedup bus suspend, see comments in code for details.
Bug: 71936484
Change-Id: If9b50c52fdbbece154ca9adf559cd93db89fb0f3
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Andrew Chant <achant@google.com>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
