[SRU,Artful/linux-oem,2/2] usb: quirks: Add reset-resume quirk for Dell DW1820 QCA Rome Bluetooth

Message ID 20180104081632.314-3-kai.heng.feng@canonical.com
State New
Headers show
  • Fix QCA Rome bluetooth failed to work after applying reset-resume quirk
Related show

Commit Message

Kai-Heng Feng Jan. 4, 2018, 8:16 a.m.
BugLink: http://bugs.launchpad.net/bugs/1741206

Commit ("fd865802c66bc451dc515ed89360f84376ce1a56 Bluetooth: btusb: fix
QCA Rome suspend/resume") enables reset_resume in btusb_probe(). This
makes the device resets during btusb_open(), firmware loading gets
interrupted as a result.

We still want to reset the device to solve the original issue, but we
should do it before btusb_open().

Hence, add reset-resume quirk in usb core intead of btusb.

Cc: stable@vger.kernel.org
Cc: Leif Liddy <leif.linux@gmail.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Cc: Brian Norris <briannorris@chromium.org>
Cc: Daniel Drake <drake@endlessm.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
(cherry picked from commit ea568f968ffe76d0fff426a5e77e023f23fcd564 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
 drivers/usb/core/quirks.c | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index a6aaf2f193a4..cfc7cf77dffe 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -199,6 +199,9 @@  static const struct usb_device_id usb_quirk_list[] = {
 	{ USB_DEVICE(0x0b05, 0x17e0), .driver_info =
+	/* QCA Rome Bluetooth in Dell DW1820 wireless module */
+	{ USB_DEVICE(0x0cf3, 0xe007), .driver_info = USB_QUIRK_RESET_RESUME },
 	/* Action Semiconductor flash disk */
 	{ USB_DEVICE(0x10d6, 0x2200), .driver_info =