OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea7c81
)
Bluetooth: btusb: Comment on unbalanced pm reference
author
Abhishek Pandit-Subedi
<abhishekpandit@chromium.org>
Thu, 25 Jun 2020 23:26:27 +0000
(16:26 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 26 Jun 2020 04:25:52 +0000
(06:25 +0200)
Add a comment clarifying that a PM reference in btusb_qca_cmd_timeout is
not unbalanced because it results in a device reset.
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/btusb.c
b/drivers/bluetooth/btusb.c
index
f8a71fd
..
0e143c0
100644
(file)
--- a/
drivers/bluetooth/btusb.c
+++ b/
drivers/bluetooth/btusb.c
@@
-581,6
+581,7
@@
static void btusb_qca_cmd_timeout(struct hci_dev *hdev)
return;
bt_dev_err(hdev, "Multiple cmd timeouts seen. Resetting usb device.");
+ /* This is not an unbalanced PM reference since the device will reset */
err = usb_autopm_get_interface(data->intf);
if (!err)
usb_queue_reset_device(data->intf);