Skip to contentSkip to conversation

Bluetooth: Add Kconfig option to enable Realtek protocol for serial devices

PATCH In review Hans de Goede 2 participants 4 messages Aug 8, 2018 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: Add Kconfig option to enable Realtek protocol for serial devices

Add a new BT_HCIUART_RTL Kconfig option to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existing BT_HCIUART_BCM Kconfig option.

---
 drivers/bluetooth/Kconfig | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/bluetooth/Kconfig +14 -0
index 5f953ca8ac5b..1124034d1c7e 100644
@@ -195,6 +195,20 @@ config BT_HCIUART_BCM
 
 	  Say Y here to compile support for Broadcom protocol.
 
+config BT_HCIUART_RTL
+	bool "Realtek protocol support"
+	depends on BT_HCIUART
+	depends on BT_HCIUART_SERDEV
+	depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)
+	depends on GPIOLIB
+	select BT_HCIUART_3WIRE
+	select BT_RTL
+	help
+	  The Realtek protocol support enables Bluetooth HCI over serial
+	  port interface for Realtek Bluetooth controllers.
+
+	  Say Y here to compile support for the Realtek protocol.
+
 config BT_HCIUART_QCA
 	bool "Qualcomm Atheros protocol support"
 	depends on BT_HCIUART
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Hi Hans,

Quoted 14 lines

Add a new BT_HCIUART_RTL Kconfig option to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existing BT_HCIUART_BCM Kconfig option.

---
drivers/bluetooth/Kconfig | 14 ++++++++++++++

1 file changed, 14 insertions(+)
drivers/bluetooth/Kconfig +0 -0
index 5f953ca8ac5b..1124034d1c7e 100644

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 202

Quoted 8 lines
drivers/bluetooth/Kconfig +5 -0
@@ -195,6 +195,20 @@ config BT_HCIUART_BCM
 
 	  Say Y here to compile support for Broadcom protocol.
 
+config BT_HCIUART_RTL
+	bool "Realtek protocol support"
+	depends on BT_HCIUART
+	depends on BT_HCIUART_SERDEV
+	depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)

is this one really needed?

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 208

Quoted 6 lines
drivers/bluetooth/Kconfig +6 -0
+	depends on GPIOLIB
+	select BT_HCIUART_3WIRE
+	select BT_RTL
+	help
+	  The Realtek protocol support enables Bluetooth HCI over serial
+	  port interface for Realtek Bluetooth controllers.

I like the text from my patch better since it mentions 3-Wire serial which is what this one is using.

Quoted 6 lines
drivers/bluetooth/Kconfig +3 -0
+
+	  Say Y here to compile support for the Realtek protocol.
+

config BT_HCIUART_QCA
bool "Qualcomm Atheros protocol support"
depends on BT_HCIUART

Regards

Marcel

#2 lore raw

Hi,

Quoted 19 lines · Marcel Holtmann

Hi Hans,

Quoted 17 lines

Add a new BT_HCIUART_RTL Kconfig option to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existing BT_HCIUART_BCM Kconfig option.

---
drivers/bluetooth/Kconfig | 14 ++++++++++++++

1 file changed, 14 insertions(+)
drivers/bluetooth/Kconfig +0 -0
index 5f953ca8ac5b..1124034d1c7e 100644
@@ -195,6 +195,20 @@ config BT_HCIUART_BCM
 
 	  Say Y here to compile support for Broadcom protocol.
 
Quoted 7 lines

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 202

Quoted 5 lines
drivers/bluetooth/Kconfig +5 -0
+config BT_HCIUART_RTL
+	bool "Realtek protocol support"
+	depends on BT_HCIUART
+	depends on BT_HCIUART_SERDEV
+	depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)

is this one really needed?

I mirrored this from the equivalent BCM Kconfig option, this bit comes from:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4294625e02902

Reading the commit message it seems that this indeed is not necessary for the RTL_BT case.

Quoted 8 lines

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 208

Quoted 6 lines
drivers/bluetooth/Kconfig +6 -0
+	depends on GPIOLIB
+	select BT_HCIUART_3WIRE
+	select BT_RTL
+	help
+	  The Realtek protocol support enables Bluetooth HCI over serial
+	  port interface for Realtek Bluetooth controllers.

I like the text from my patch better since it mentions 3-Wire serial which is what this one is using.

I've not seen your patch (I'm not subscribed to the list) but if you think your version is better feel free to go with it.

Regards,

Hans

Quoted 12 lines
Quoted 7 lines
drivers/bluetooth/Kconfig +3 -0
+
+	  Say Y here to compile support for the Realtek protocol.
+

config BT_HCIUART_QCA
bool "Qualcomm Atheros protocol support"
depends on BT_HCIUART

Regards

Marcel

maintainer
#3 lore raw

Hi Hans,

Quoted 39 lines
Quoted 15 lines
Quoted 15 lines

Add a new BT_HCIUART_RTL Kconfig option to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existing BT_HCIUART_BCM Kconfig option.

---
drivers/bluetooth/Kconfig | 14 ++++++++++++++

1 file changed, 14 insertions(+)
drivers/bluetooth/Kconfig +0 -0
index 5f953ca8ac5b..1124034d1c7e 100644
@@ -195,6 +195,20 @@ config BT_HCIUART_BCM
 
Quoted 8 lines

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 202

Quoted 7 lines
drivers/bluetooth/Kconfig +5 -0
 	  Say Y here to compile support for Broadcom protocol.
 
+config BT_HCIUART_RTL
+	bool "Realtek protocol support"
+	depends on BT_HCIUART
+	depends on BT_HCIUART_SERDEV
+	depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)

is this one really needed?

I mirrored this from the equivalent BCM Kconfig option, this bit comes from:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4294625e02902

Reading the commit message it seems that this indeed is not necessary for the RTL_BT case.

Quoted 7 lines

drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 208

Quoted 6 lines
drivers/bluetooth/Kconfig +6 -0
+	depends on GPIOLIB
+	select BT_HCIUART_3WIRE
+	select BT_RTL
+	help
+	  The Realtek protocol support enables Bluetooth HCI over serial
+	  port interface for Realtek Bluetooth controllers.

I like the text from my patch better since it mentions 3-Wire serial which is what this one is using.

Quoted 2 lines

I've not seen your patch (I'm not subscribed to the list) but if you think your version is better feel free to go with it.

you can find it in the archives, but I think my patch is the cleaner one.

Regards

Marcel