Commit: ca01d74f38946cce61c05dbcd5ac59a7624ebbcd
Parent: 6a50b6aeda78a88eafb177718109c256eec077a6
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-01-06 21:00:49
Tree: 8c8cbc40a57ea6821534a6b88f383de4a25fc0fe

adapter: Remove temporary devices before power off If adapter is powered off when a currently connected device is being removed, there is a possibility that we haven't finish waiting for the disconnection but the adapter is already powered down. When this happens, the kernel would fail to clean the device's information, for example the pairing information. This causes disagreement between the user space and the kernel about whether the device is already paired, because the device is successfully removed from the user space's perspective. This patch enforces the removal of such devices before allowing the adapter to power off.

Diffstat

M src/adapter.c | 18 +++++++++++++++++-

1 files changed, 17 insertions(+), 1 deletions(-)

View Full Diff | Patch