Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp675153ybb; Fri, 10 Apr 2020 07:55:11 -0700 (PDT) X-Google-Smtp-Source: APiQypKJdJegsdlAyBtOvgiTjTRQ0egsNTkXe6lECkFME5vyOgHoqwCOy9Cc52cBOnZPSMd1tovR X-Received: by 2002:a0c:ee43:: with SMTP id m3mr5654477qvs.164.1586530510946; Fri, 10 Apr 2020 07:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586530510; cv=none; d=google.com; s=arc-20160816; b=G8u1heSikC37M2etDneENHpoy8yd0Uh8OS4Om3OO218PuQEZQayP99JfqhNGGE7PFe q0KwEqMpCXRj7G3v6x5/Y5mDBmAFQLRvb7fKCfN5hL3YxFq0z91xuzwAfWhsMEKhkN6s SHrgM9bHkD34564IUcxc6lTB/PkMs6wDnKU0mT5rQjeirgvLKqQH+hxLpxT/gDq+bXSl taAPOVCFvw739XDZg0O1F2MewwwmVsn3/TgT2n0IpR3sEo5Lt1DD78/a/lQg2HWwZCc6 N5XZwdCgvzxdD0S8BlVIRdKdDFamPjyOhntbOjB8/qpA7NfXXr0zTtJKknV9aYzVKM0C XmQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2vXnmY4GE13NUJnVdfudjFEgcp4akceqh2aSAgwoRhs=; b=vEhhhZSJqqnWcD7LVMf1XEeQ0mtG3W2skhFCHBHVVhCHTn506aD2/qA+Cmh6k41nnO pyEgjGgGOXdn2TH6xPMag9oxx4RCxH0gVfx1iozy96BSRkft6+8sZ9WoU60S43YInu9F CGjxh9J4dwqQMrufG2mdyCpTfyLGOZXsKLoIKrfh6gAYOnBgF8+JsECWXk/6yIjo3oQq lLPxLkyBnHUvyTDjBSymmlAluIaNnA0z011/MGOrquHbiOZi1Yvdi7nbTh6WzDUXE3EC tp8StfsTXyUBrJO+kRKfjRt9FRW+OmPYlDxHPusu+pfkLTv6MHHNkqpxdejrDBUgppAW o5sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sJN6+nbU; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si1128169qvf.49.2020.04.10.07.54.42; Fri, 10 Apr 2020 07:55:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sJN6+nbU; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbgDJOyk (ORCPT + 99 others); Fri, 10 Apr 2020 10:54:40 -0400 Received: from mail-pj1-f43.google.com ([209.85.216.43]:35230 "EHLO mail-pj1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgDJOyj (ORCPT ); Fri, 10 Apr 2020 10:54:39 -0400 Received: by mail-pj1-f43.google.com with SMTP id mn19so848799pjb.0; Fri, 10 Apr 2020 07:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2vXnmY4GE13NUJnVdfudjFEgcp4akceqh2aSAgwoRhs=; b=sJN6+nbUp9CQyEABDgtKY6PzKTjYmaoHMB6heJqOcy6ubzQ/qQqEQhyAwZ8r/lB1H5 oNhstTpqfWgucUe9m/UbPeWXkEoREsmal6r4x3R2X4SSkFyudSvFca/kY8FY6Ww3/GdN 3uJNDB9682re4EFv+EWnpgi7tKIq5r2pMcJntpjbkseZ+u2qPHejXEebZN4FVyqxkEzj c26zRYzxeUEKbgjMRfCht3kRp8k6V82b9rNUYGkN6DyLIV3Ed5PtfNpPfLO8JuMpbhON uJ8uRndounQ4Xzm4yXiRwclgMj9aciTwVRar4me6CUf/S4kZVfdCM+tt6hY4+Xdzv7G9 oY7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2vXnmY4GE13NUJnVdfudjFEgcp4akceqh2aSAgwoRhs=; b=K8TVD7/BpdpImzeXgVASs2A6L54MiCetPOHB9x0tt2F25zjgJAMWngEMBBiTnDQs30 chAx3CR2qPVefHX0cH4xE8GE35fnQfuRlpA6+rt5Kx22YTDfnmVIiN19jao9NPLM6jln F33y26Jzocz58vC+t1On5EOTWkxKaKUf8VKUHoLcRrq2AlUEiOeAEptegeLBAONqHA7m ejOvtnQF12JstvSekbXxDGcL9Jrm5I2pgpvQBqu1EFklNEAvYz1s8nY4QJJlfxbCFJer wJoIU42zGPtbwEH9EJQ/aH1Larlfe7QLaWSWoNM7MTBpg9M2IJ342SuM5ykfHC5EnDYn 3C/A== X-Gm-Message-State: AGi0PuYgGAgnofhz9YZpp7lsyq9xYRBbbFnKP2iqy9UIIPzzm1ENK03s Ix/jW8QiRUibYKn8Ph6Y1QlnppFBa6U= X-Received: by 2002:a17:902:968a:: with SMTP id n10mr4738564plp.96.1586530477380; Fri, 10 Apr 2020 07:54:37 -0700 (PDT) Received: from i7.zsun.org.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id v5sm1951230pfn.105.2020.04.10.07.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 07:54:36 -0700 (PDT) From: sztsian@gmail.com To: marcel@holtmann.org, johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org Cc: sztsian@gmail.com, linux-kernel@vger.kernel.org, icenowy@aosc.io Subject: [PATCH v2 0/1] Bluetooth: btrtl: Add support for RTL8761B Date: Fri, 10 Apr 2020 22:54:19 +0800 Message-Id: <20200410145420.108868-1-sztsian@gmail.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Ziqian SUN (Zamir) This patch adds support for the RTL8761B USB Bluetooth dongle. When I got the RTL8761B dongle, I see it is actually recognised as RTL8761A in my system (5.5.15-200.fc31.x86_64 on Fedora). And the userspace cannot detect bluetooth devices in such situation. [34689.158047] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761 [34689.159083] Bluetooth: hci0: RTL: rom_version status=0 version=1 [34689.159088] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761a_fw.bin [34689.159498] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761a_config.bin [34689.159522] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761a_config.bin failed with error -2 [34689.159529] Bluetooth: hci0: RTL: cfg_sz -2, total sz 20204 [34691.248484] Bluetooth: hci0: command 0xfc20 tx timeout Icenowy Zheng offered great help by identifying the firmware from the vendor-provided Windows driver. After applying this patch along with the firmware I am able to use this dongle. Note, I don't have RTL8761A device, so I would appreciate if someone can help test in case this patch breaks RTL8761A. The RTL8761A information is from the following Github issue https://github.com/lwfinger/rtlwifi_new/issues/58 [ 41.468873] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8761 Ziqian SUN (Zamir) (1): Bluetooth: btrtl: Add support for RTL8761B drivers/bluetooth/btrtl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.25.2