Received: by 10.223.185.116 with SMTP id b49csp2367357wrg; Thu, 15 Feb 2018 10:29:54 -0800 (PST) X-Google-Smtp-Source: AH8x226Op690+jVWd8Nrt6OwMt9EL0y4Q71sA45Mh270Sn1Nk3r/v7y5v2rNut8+ASlVVT3deMeC X-Received: by 2002:a17:902:6b82:: with SMTP id p2-v6mr3395087plk.30.1518719394239; Thu, 15 Feb 2018 10:29:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518719394; cv=none; d=google.com; s=arc-20160816; b=Wd3l6UNyHYGk1aYNgBFjaNqYDuw0nR96vcikQYDnNNB0ckw8JyANZuQHmD64TaVlAR 9rVpiagdQJE5PX60xzG0bL5N3ZIn6v0AzRniUSfGjN/4c+4dRpEQIoQk+S5xQZBTDWCz 18d7F9C9Qosr6IHx1bKKPb3mTjIb62MK7hTKFfACB9Clb9CQNr+j6fUbhhHFCTbuW2cx g9bK+WJEHMz8179vX2G/YM1HbV8kaNvMoARLxEaw5somN/TNlV1Qvb99V1AJXAcBjish GtzWjgMeu5s9Da/gpkRQPxM6Xk+sgEoL4dkn/d/Y+vjFMdUHGCnIX2f5xrmr2fUHIglr u3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0jvdFlRDr6OiE7IsBx8eRWg9dLC4sx92R9PjJ+CghwA=; b=zJ2JoECqtjQAJ9rKFvMWpstoohVlB91csdHlyp3OTVH9rrUwogY5rQziXEG0vgcmAp b9RPktdnBH9yx/0k/bbFYRgshKP5QvbNfcDI40cstGqTkFpXjTnuAXW48XqsCf7J07+m LG5XE0QOEKvwUcCzTyWEuxKnLF5xk3DWV4NwLfJmbRDXebwGY/Xh9Mt4GxaiOI5O1FcY oKX04rcrOBXa6WeF+GZpnULBoMfewV6naJP1SfahtICe+s68N7df0Z1Q+qG5cdcuo6gn eWUR03NagqeMuS6wqBhOg2k9BJ4Jb1XMIDBFR8o38sRuGNWkAt4/gxCW4g9KC8uiD/cj wdJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6-v6si3302332plo.489.2018.02.15.10.29.39; Thu, 15 Feb 2018 10:29:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1166413AbeBOS20 (ORCPT + 99 others); Thu, 15 Feb 2018 13:28:26 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52222 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163184AbeBOPZ2 (ORCPT ); Thu, 15 Feb 2018 10:25:28 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1EBF21112; Thu, 15 Feb 2018 15:25:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leif Liddy , Matthias Kaehlcke , Brian Norris , Daniel Drake , Kai-Heng Feng , Marcel Holtmann Subject: [PATCH 4.4 094/108] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume" Date: Thu, 15 Feb 2018 16:17:31 +0100 Message-Id: <20180215151235.503138018@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151222.267507937@linuxfoundation.org> References: <20180215151222.267507937@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kai-Heng Feng commit 7d06d5895c159f64c46560dc258e553ad8670fe0 upstream. This reverts commit fd865802c66bc451dc515ed89360f84376ce1a56. This commit causes a regression on some QCA ROME chips. The USB device reset happens in btusb_open(), hence firmware loading gets interrupted. Furthermore, this commit stops working after commit ("a0085f2510e8976614ad8f766b209448b385492f Bluetooth: btusb: driver to enable the usb-wakeup feature"). Reset-resume quirk only gets enabled in btusb_suspend() when it's not a wakeup source. If we really want to reset the USB device, we need to do it before btusb_open(). Let's handle it in drivers/usb/core/quirks.c. Cc: Leif Liddy Cc: Matthias Kaehlcke Cc: Brian Norris Cc: Daniel Drake Signed-off-by: Kai-Heng Feng Reviewed-by: Brian Norris Tested-by: Brian Norris Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- drivers/bluetooth/btusb.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2969,12 +2969,6 @@ static int btusb_probe(struct usb_interf if (id->driver_info & BTUSB_QCA_ROME) { data->setup_on_usb = btusb_setup_qca; hdev->set_bdaddr = btusb_set_bdaddr_ath3012; - - /* 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. - */ - set_bit(BTUSB_RESET_RESUME, &data->flags); } #ifdef CONFIG_BT_HCIBTUSB_RTL