Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp280793pxb; Thu, 25 Feb 2021 02:16:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYMebrQMIjahjugXSMqPEQPFKOjwATf8PoHedhH0cDWUw1qwatdx7mN/+vxeS2EU/4En+7 X-Received: by 2002:a05:6402:2553:: with SMTP id l19mr2076761edb.326.1614248199046; Thu, 25 Feb 2021 02:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614248199; cv=none; d=google.com; s=arc-20160816; b=FTl1JRcBRM3I54doxbE1QOPWcF7d0+hnItfFZVhu6VbG/3V9VLAfq/ve3FhurLTTV0 x1w6szQHCYSgFwZoj9gcih/OUiFY2x0PiumptuVkKAbBeJpCwjQfNJAJJsZmKzyVEDF4 2BYJy4GCpcqfc2Xb0zoLffOs2vXwfAvTckfdtcixn9EfsJQVCNrRpjPx2igbt0wdrKgd ESixBuza6FrwlDUwpLj8ha2EL3FPuJCG60aSYJ/xvdlYKpYUtPLXxmVNiRCQ/xIl4TFK rw/1zfQbe2IxtueeF9PYoELZ6L/xDDjGHKwSMUqblMHA+Ckcm2gLP/G5SpffbBOPI/Tf 4kkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=V1tjHzaOMFijA1kHk54nsVsbvB0B0GA+zx99fXl/DX8=; b=WJ4or4mvNtWtkzKqJc1XuKHDMwEXGRf1tB0nnKQ1RZlLEq2btjbPDJU+DvU8Oci0CK /CV0OF1MJVaTP5owqKkDVgFFADuJKvCPAtrER6xxJcXfY/Pz81TcT2CR1Cv+32gs55e4 LZT9ZOgSjiCZYQ+ZQGpNcpJJHDTMTG80+EYX7S+vVjrBGs1e6FAsRT3x7aexyz+LWprq Fa7fgGPniG8POIkLFNKbC9x1de8dT00MZnOgRiXdEo+YECHiwPfs5R91ZX+5+XMNBE2p xYHC+alPdN0c1NakzsDZ0O0RFW+SwgF3y3Lz8xbjlWv/PWsTUWWayfIwX3UEXGJWxtCC Tfvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yUT5+ZPJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si2685340edq.269.2021.02.25.02.16.16; Thu, 25 Feb 2021 02:16:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yUT5+ZPJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233440AbhBYKOJ (ORCPT + 99 others); Thu, 25 Feb 2021 05:14:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:35082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232372AbhBYJ7X (ORCPT ); Thu, 25 Feb 2021 04:59:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04DBD64F1B; Thu, 25 Feb 2021 09:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614246902; bh=BDpcdwetzIbQYUQZAKbqW5NiD40bNsx0qkgmoQXr6vY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yUT5+ZPJcxu8yWIkHJwPhlygmnKM9YptcfyQ4CS491n93uXFJFCL1hHJGXAy0nLiL LTOl1VJiAP4DtHas7u//NXZkvglczaKjXo+l+ak49rHWcJK7YKLf2JCba/zs+Mwbom 8vMfve3bNWYJyXA7zouiYM1OChrn7XWJQOfq36lc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Marcel Holtmann , Salvatore Bonaccorso Subject: [PATCH 5.10 09/23] Bluetooth: btusb: Some Qualcomm Bluetooth adapters stop working Date: Thu, 25 Feb 2021 10:53:40 +0100 Message-Id: <20210225092516.984855850@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225092516.531932232@linuxfoundation.org> References: <20210225092516.531932232@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hui Wang commit 234f414efd1164786269849b4fbb533d6c9cdbbf upstream. This issue starts from linux-5.10-rc1, I reproduced this issue on my Dell Inspiron 7447 with BT adapter 0cf3:e005, the kernel will print out: "Bluetooth: hci0: don't support firmware rome 0x31010000", and someone else also reported the similar issue to bugzilla #211571. I found this is a regression introduced by 'commit b40f58b97386 ("Bluetooth: btusb: Add Qualcomm Bluetooth SoC WCN6855 support"), the patch assumed that if high ROM version is not zero, it is an adapter on WCN6855, but many old adapters don't need to load rampatch or nvm, and they have non-zero high ROM version. To fix it, let the driver match the rom_version in the qca_devices_table first, if there is no entry matched, check the high ROM version, if it is not zero, we assume this adapter is ready to work and no need to load rampatch and nvm like previously. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=211571 Fixes: b40f58b97386 ("Bluetooth: btusb: Add Qualcomm Bluetooth SoC WCN6855 support") Signed-off-by: Hui Wang Signed-off-by: Marcel Holtmann Cc: Salvatore Bonaccorso Signed-off-by: Greg Kroah-Hartman --- drivers/bluetooth/btusb.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -3689,6 +3689,13 @@ static int btusb_setup_qca(struct hci_de info = &qca_devices_table[i]; } if (!info) { + /* If the rom_version is not matched in the qca_devices_table + * and the high ROM version is not zero, we assume this chip no + * need to load the rampatch and nvm. + */ + if (ver_rom & ~0xffffU) + return 0; + bt_dev_err(hdev, "don't support firmware rome 0x%x", ver_rom); return -ENODEV; }