All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Bluetooth: btrtl: Add support for RTL8761B
@ 2020-04-10 14:00 sztsian
  2020-04-10 14:00 ` [PATCH 1/1] " sztsian
  2020-04-10 14:17 ` [PATCH 0/1] " Zamir SUN
  0 siblings, 2 replies; 3+ messages in thread
From: sztsian @ 2020-04-10 14:00 UTC (permalink / raw)
  To: marcel, johan.hedberg, linux-bluetooth; +Cc: sztsian, linux-kernel, icenowy

From: Zamir SUN <sztsian@gmail.com>

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

With great help from Icenowy Zheng she helped 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.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] Bluetooth: btrtl: Add support for RTL8761B
  2020-04-10 14:00 [PATCH 0/1] Bluetooth: btrtl: Add support for RTL8761B sztsian
@ 2020-04-10 14:00 ` sztsian
  2020-04-10 14:17 ` [PATCH 0/1] " Zamir SUN
  1 sibling, 0 replies; 3+ messages in thread
From: sztsian @ 2020-04-10 14:00 UTC (permalink / raw)
  To: marcel, johan.hedberg, linux-bluetooth; +Cc: sztsian, linux-kernel, icenowy

From: "Ziqian SUN (Zamir)" <sztsian@gmail.com>

Add new compatible device RTL8761B.

Signed-off-by: Ziqian SUN (Zamir) <sztsian@gmail.com>
---
 drivers/bluetooth/btrtl.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
index 67f4bc21e7c5..1f0fbb3e6286 100644
--- a/drivers/bluetooth/btrtl.c
+++ b/drivers/bluetooth/btrtl.c
@@ -130,12 +130,19 @@ static const struct id_table ic_id_table[] = {
 	  .cfg_name = "rtl_bt/rtl8821c_config" },
 
 	/* 8761A */
-	{ IC_MATCH_FL_LMPSUBV, RTL_ROM_LMP_8761A, 0x0,
+	{ IC_INFO(RTL_ROM_LMP_8761A, 0x0),
 	  .config_needed = false,
 	  .has_rom_version = true,
 	  .fw_name  = "rtl_bt/rtl8761a_fw.bin",
 	  .cfg_name = "rtl_bt/rtl8761a_config" },
 
+	/* 8761B */
+	{ IC_INFO(RTL_ROM_LMP_8761A, 0xb),
+	  .config_needed = false,
+	  .has_rom_version = true,
+	  .fw_name  = "rtl_bt/rtl8761b_fw.bin",
+	  .cfg_name = "rtl_bt/rtl8761b_config" },
+
 	/* 8822C with UART interface */
 	{ .match_flags = IC_MATCH_FL_LMPSUBV | IC_MATCH_FL_HCIREV |
 			 IC_MATCH_FL_HCIBUS,
-- 
2.25.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] Bluetooth: btrtl: Add support for RTL8761B
  2020-04-10 14:00 [PATCH 0/1] Bluetooth: btrtl: Add support for RTL8761B sztsian
  2020-04-10 14:00 ` [PATCH 1/1] " sztsian
@ 2020-04-10 14:17 ` Zamir SUN
  1 sibling, 0 replies; 3+ messages in thread
From: Zamir SUN @ 2020-04-10 14:17 UTC (permalink / raw)
  To: marcel, johan.hedberg, linux-bluetooth; +Cc: linux-kernel, icenowy



On 4/10/20 10:00 PM, sztsian@gmail.com wrote:
> From: Zamir SUN <sztsian@gmail.com>
> 
> 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
> 
> With great help from Icenowy Zheng she helped 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.
> 
> Ziqian SUN (Zamir) (1):
>    Bluetooth: btrtl: Add support for RTL8761B
> 
>   drivers/bluetooth/btrtl.c | 9 ++++++++-
>   1 file changed, 8 insertions(+), 1 deletion(-)
> 

Oh sorry, Self-NAK.
I sent only partial of my patch.

-- 
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-10 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 14:00 [PATCH 0/1] Bluetooth: btrtl: Add support for RTL8761B sztsian
2020-04-10 14:00 ` [PATCH 1/1] " sztsian
2020-04-10 14:17 ` [PATCH 0/1] " Zamir SUN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.