diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-01-04 09:58:12 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2018-01-04 10:03:46 +0100 |
commit | b5cf2a10ddc784456e8600fd8a5be116ff542c1d (patch) | |
tree | 1272b31c8172c311c499c2a0c16a474218ff14e9 /0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch | |
parent | b23e66e346b64c865e98a5895087ace50ccf5de9 (diff) | |
download | kernel-b5cf2a10ddc784456e8600fd8a5be116ff542c1d.tar.gz kernel-b5cf2a10ddc784456e8600fd8a5be116ff542c1d.tar.xz kernel-b5cf2a10ddc784456e8600fd8a5be116ff542c1d.zip |
Add a patch to filter false positive kbd backlight change events (#1514969)
Add a patch to disable runtime-pm for QCA bluetooth devices (#1514836)
Diffstat (limited to '0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch')
-rw-r--r-- | 0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch b/0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch new file mode 100644 index 000000000..cc1af2ceb --- /dev/null +++ b/0001-Bluetooth-btusb-Disable-autosuspend-on-QCA-Rome-devi.patch @@ -0,0 +1,47 @@ +From a5ffa27c07e06900fcfc50b08de6d11e45830168 Mon Sep 17 00:00:00 2001 +From: Hans de Goede <hdegoede@redhat.com> +Date: Wed, 3 Jan 2018 12:49:44 +0100 +Subject: [PATCH v2] Bluetooth: btusb: Disable autosuspend on QCA Rome devices + +Commit fd865802c66b ("Bluetooth: btusb: fix QCA Rome suspend/resume") fixes +a suspend/resume problem on QCA devices by doing a full reset on resume, +reloading the firmware. + +A similar problem happens when using runtime-pm / autosuspend, when this is +enabled by the user the QCA Rome device stops working. Reloading the +firmware after a runtime suspend is not really an option since the latency +caused by this is unacceptable. + +To fix the runtime-pm issues, this commit disables runtime-pm on QCA Rome +HCIs, by getting (and not releasing) an usb autopm reference on the btusb +interface. + +BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514836 +Signed-off-by: Hans de Goede <hdegoede@redhat.com> +--- + drivers/bluetooth/btusb.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c +index 808c249845db..6ed3a0e5b8f6 100644 +--- a/drivers/bluetooth/btusb.c ++++ b/drivers/bluetooth/btusb.c +@@ -3122,8 +3122,15 @@ static int btusb_probe(struct usb_interface *intf, + /* QCA Rome devices lose their updated firmware over suspend, + * but the USB hub doesn't notice any status change. + * Explicitly request a device reset on resume. ++ * And disable runtime pm by getting a pm reference, the USB ++ * core will drop our reference on disconnect. + */ + set_bit(BTUSB_RESET_RESUME, &data->flags); ++ err = usb_autopm_get_interface(data->intf); ++ if (err < 0) { ++ BT_ERR("failed to get pm reference %d", err); ++ goto out_free_dev; ++ } + } + + #ifdef CONFIG_BT_HCIBTUSB_RTL +-- +2.14.3 + |