From: Abhishek Pandit-Subedi Date: Thu, 25 Jun 2020 23:26:27 +0000 (-0700) Subject: Bluetooth: btusb: Comment on unbalanced pm reference X-Git-Tag: v5.15~3197^2~89^2~36 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b980d477de2d8393f289fee982cd86ee44f5e37c;p=mirror_ubuntu-kernels.git Bluetooth: btusb: Comment on unbalanced pm reference 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f8a71fdabb3d..0e143c0cecf2 100644 --- 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);