Parent: 6611b72600c370ec31795ab48a222594c4afb7ee
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-09-15 19:50:21
Tree: 4dbdb92ec2988accfa57393195f448ee0c0fbf78
device: don't wait for timeout if RemoveDevice is called RemoveDevice on adapter interface used to remove a device, even when the device is connected. However, since the introduction of the new 30 seconds timeout when setting a device as temporary, RemoveDevice doesn't immediately remove a connected device, but only disconnects it and waits for the timer to expire before effectively removes it. This patch removes the device as soon as it gets disconnected, provided the disconnection is triggered by a call to RemoveDevice. The regular timeout still applies for other cases. Tested manually by calling RemoveDevice on a connected device, and with ChromeOS autotest setup.
Diffstat
| M | src/adapter.c | | | 2 | - - |
| M | src/adapter.h | | | 2 | ++ |
| M | src/device.c | | | 11 | +++++++++++ |
3 files changed, 13 insertions(+), 2 deletions(-)