]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Bluetooth: btusb: Comment on unbalanced pm reference
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Thu, 25 Jun 2020 23:26:27 +0000 (16:26 -0700)
committerMarcel 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

index f8a71fdabb3d1b50d4a3e487c278fb0f22f99be0..0e143c0cecf2a1c4cd377227a90ae2b7156aff28 100644 (file)
@@ -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);