* [PATCH v1] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection
@ 2017-12-28 19:49 Andy Shevchenko
2017-12-28 19:56 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2017-12-28 19:49 UTC (permalink / raw)
To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg, linux-bluetooth,
loic . poulain @ gmail . com, Linus Torvalds
Cc: Andy Shevchenko
The change restores build behaviour for old configurations when user
didn't know and thus didn't select SERIAL_DEV_BUS explicitly for given
HCI modules, such as hci_bcm.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/bluetooth/Kconfig | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
index 60e1c7d6986d..52dec0804b28 100644
--- a/drivers/bluetooth/Kconfig
+++ b/drivers/bluetooth/Kconfig
@@ -78,11 +78,6 @@ config BT_HCIUART
Say Y here to compile support for Bluetooth UART devices into the
kernel or say M to compile it as module (hci_uart).
-config BT_HCIUART_SERDEV
- bool
- depends on SERIAL_DEV_BUS && BT_HCIUART
- default y
-
config BT_HCIUART_H4
bool "UART (H4) protocol support"
depends on BT_HCIUART
@@ -96,8 +91,8 @@ config BT_HCIUART_H4
config BT_HCIUART_NOKIA
tristate "UART Nokia H4+ protocol support"
depends on BT_HCIUART
- depends on BT_HCIUART_SERDEV
depends on PM
+ select SERIAL_DEV_BUS
select BT_HCIUART_H4
select BT_BCM
help
@@ -134,7 +129,8 @@ config BT_HCIUART_ATH3K
config BT_HCIUART_LL
bool "HCILL protocol support"
- depends on BT_HCIUART_SERDEV
+ depends on BT_HCIUART
+ select SERIAL_DEV_BUS
help
HCILL (HCI Low Level) is a serial protocol for communication
between Bluetooth device and host. This protocol is required for
@@ -169,8 +165,8 @@ config BT_HCIUART_INTEL
config BT_HCIUART_BCM
bool "Broadcom protocol support"
depends on BT_HCIUART
- depends on BT_HCIUART_SERDEV
- depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)
+ depends on !ACPI || SERIAL_DEV_CTRL_TTYPORT
+ select SERIAL_DEV_BUS
select BT_HCIUART_H4
select BT_BCM
help
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection
2017-12-28 19:49 [PATCH v1] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection Andy Shevchenko
@ 2017-12-28 19:56 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2017-12-28 19:56 UTC (permalink / raw)
To: Andy Shevchenko, Rob Herring, Arnd Bergmann
Cc: Gustavo F. Padovan, Johan Hedberg, linux-bluetooth,
loic . poulain @ gmail . com, Linus Torvalds
Hi Andy,
> The change restores build behaviour for old configurations when user
> didn't know and thus didn't select SERIAL_DEV_BUS explicitly for given
> HCI modules, such as hci_bcm.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/bluetooth/Kconfig | 14 +++++---------
> 1 file changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> index 60e1c7d6986d..52dec0804b28 100644
> --- a/drivers/bluetooth/Kconfig
> +++ b/drivers/bluetooth/Kconfig
> @@ -78,11 +78,6 @@ config BT_HCIUART
> Say Y here to compile support for Bluetooth UART devices into the
> kernel or say M to compile it as module (hci_uart).
>
> -config BT_HCIUART_SERDEV
> - bool
> - depends on SERIAL_DEV_BUS && BT_HCIUART
> - default y
> -
> config BT_HCIUART_H4
> bool "UART (H4) protocol support"
> depends on BT_HCIUART
> @@ -96,8 +91,8 @@ config BT_HCIUART_H4
> config BT_HCIUART_NOKIA
> tristate "UART Nokia H4+ protocol support"
> depends on BT_HCIUART
> - depends on BT_HCIUART_SERDEV
> depends on PM
> + select SERIAL_DEV_BUS
> select BT_HCIUART_H4
> select BT_BCM
> help
I have a dejavu feeling about this. Maybe it is better that Rob and Arnd comment and ACK this before we go this route.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-28 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 19:49 [PATCH v1] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection Andy Shevchenko
2017-12-28 19:56 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).