Bluetooth: Add Kconfig option to enable Realtek protocol for serial devices
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
@@ -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
Marcel Holtmann
maintainerHi Hans,
Quoted 14 lines
Add a new
BT_HCIUART_RTLKconfigoption to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existingBT_HCIUART_BCMKconfigoption.Signed-off-by Hans de Goede <[email protected]>---
drivers/bluetooth/Kconfig| 14 ++++++++++++++1 file changed, 14 insertions(+)drivers/bluetooth/Kconfig +0
-0
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 onBT_HCIUART
Regards
Marcel
Hi,
Quoted 19 lines · Marcel Holtmann
Hi Hans,
Quoted 17 lines
Add a new
BT_HCIUART_RTLKconfigoption to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existingBT_HCIUART_BCMKconfigoption.Signed-off-by Hans de Goede <[email protected]>---
drivers/bluetooth/Kconfig| 14 ++++++++++++++1 file changed, 14 insertions(+)drivers/bluetooth/Kconfig +0
-0@@ -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 onBT_HCIUARTRegards
Marcel
Marcel Holtmann
maintainerHi Hans,
Quoted 39 lines
Quoted 15 lines
Quoted 15 lines
Add a new
BT_HCIUART_RTLKconfigoption to enable the Realtek protocol for Bluetooth HCI over serial port interface, mirroring the existingBT_HCIUART_BCMKconfigoption.Signed-off-by Hans de Goede <[email protected]>---
drivers/bluetooth/Kconfig| 14 ++++++++++++++1 file changed, 14 insertions(+)drivers/bluetooth/Kconfig +0
-0@@ -195,6 +195,20 @@ config BT_HCIUART_BCMQuoted 8 lines
drivers/bluetooth/Kconfig config BT_HCIUART_BCM · line 202
Quoted 7 lines
drivers/bluetooth/Kconfig +5
-0Say 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
Kconfigoption, 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_BTcase.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