Received: by 10.223.185.116 with SMTP id b49csp238412wrg; Thu, 15 Feb 2018 20:50:51 -0800 (PST) X-Google-Smtp-Source: AH8x226nlXhIWJI6xJQb1rTF7GUxyj/GVHdsb8XCiz8OqGKo93l2pmCoFlyHlUPPUF3V1ir2tZ4U X-Received: by 10.99.110.11 with SMTP id j11mr3696666pgc.294.1518756651476; Thu, 15 Feb 2018 20:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518756651; cv=none; d=google.com; s=arc-20160816; b=k4zC1Pqhj5WEILsOoeMr7TkJdngeF4sIxZ/OdO0XXLAx5NEg534yQu+Isp5LneYbuQ EUGjLov6FMbZwiNJ6otG/XEzsdIX99ytq1Iuw2fGarSvAoTk5QrSgSFILErpwu1QTx9v ZberC36xAs1d9X9ySiGUn4uxzW/IKnI1ctoHiTtF9BaJI7uxE8ogSRlCkf0pe8TKK3Co EgNfp+flQljesxK8J3nTCI58edjTRY7/oLzVdw2TS8jQs49GxpjjO7LBuqpqJ0HIdIUR HN32uxGpq6TkbfvbKz4KSE0iWjE5k+RwAhqs1QL9uU4ErFbh+OVWqT61oGKcIVbJS2Hn VUZw== 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=/1n3hFyI9gKC91/OSHBMRR/Qepw23/LCVn3kc51PWkk=; b=O18SrT5Y9+DrE/Q5nErKov/oYVms7lAgLtumL3gTtPuIXwBj9hv11YHLvw1NgTa1PJ C7u2yNpWesRvLEeUirwlW1V8Ak/DmubeLOuj92BuMk4SdLsdTC3rYfs3X/txtkFKRhNM aZvpt1RcRV9Qgh60eXxKVhkA/txTepACnl3x8/RAjc9QiKw5ZMrActhVk40vgUOwrsBk WObnRORkheyexiLUo9cvK5D+Pr3y8p4Vo0PRWOo4bh3rhvLbTNepBv2jU4UCTmAgY9cg lnMVON1NuK9TPFAR9cM6s8kM1yzx0LBfgIR6nfzjFtRUFqqXUC/R9ursD5jhcJxk4ymu GADQ== 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 g7-v6si3431027plo.380.2018.02.15.20.50.37; Thu, 15 Feb 2018 20:50:51 -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 S1425074AbeBOPsR (ORCPT + 99 others); Thu, 15 Feb 2018 10:48:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36468 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424409AbeBOPsN (ORCPT ); Thu, 15 Feb 2018 10:48:13 -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 5E95F109D; Thu, 15 Feb 2018 15:48:12 +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.15 163/202] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume" Date: Thu, 15 Feb 2018 16:17:43 +0100 Message-Id: <20180215151721.407934519@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@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.15-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 @@ -3117,12 +3117,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