* [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB
@ 2018-08-08 8:48 Hans de Goede
2018-08-08 9:47 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2018-08-08 8:48 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Martin Blumenstingl
Cc: Hans de Goede, Jeremy Cline, linux-bluetooth, linux-serial,
linux-acpi
After the recent changes for RTL serdev devices support the h5 code now
depends on the hci_serdev code and on gpiolib at dependencies to Kconfig
to properly reflect this.
Reported-by: kbuild-all@01.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/bluetooth/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
index f3c643a0473c..8969d3d5d86c 100644
--- a/drivers/bluetooth/Kconfig
+++ b/drivers/bluetooth/Kconfig
@@ -159,6 +159,8 @@ config BT_HCIUART_LL
config BT_HCIUART_3WIRE
bool "Three-wire UART (H5) protocol support"
depends on BT_HCIUART
+ depends on BT_HCIUART_SERDEV
+ depends on GPIOLIB
help
The HCI Three-wire UART Transport Layer makes it possible to
user the Bluetooth HCI over a serial port interface. The HCI
--
2.18.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB
2018-08-08 8:48 [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB Hans de Goede
@ 2018-08-08 9:47 ` Johan Hedberg
2018-08-08 10:07 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Johan Hedberg @ 2018-08-08 9:47 UTC (permalink / raw)
To: Hans de Goede
Cc: Marcel Holtmann, Martin Blumenstingl, Jeremy Cline,
linux-bluetooth, linux-serial, linux-acpi
Hi Hans,
On Wed, Aug 08, 2018, Hans de Goede wrote:
> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> index f3c643a0473c..8969d3d5d86c 100644
> --- a/drivers/bluetooth/Kconfig
> +++ b/drivers/bluetooth/Kconfig
> @@ -159,6 +159,8 @@ config BT_HCIUART_LL
> config BT_HCIUART_3WIRE
> bool "Three-wire UART (H5) protocol support"
> depends on BT_HCIUART
> + depends on BT_HCIUART_SERDEV
> + depends on GPIOLIB
> help
> The HCI Three-wire UART Transport Layer makes it possible to
> user the Bluetooth HCI over a serial port interface. The HCI
The missing BT_HCIUART_SERDEV is already fixed in bluetooth-next.
Please send an updated patch for the GPIOLIB however.
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB
2018-08-08 9:47 ` Johan Hedberg
@ 2018-08-08 10:07 ` Johan Hedberg
2018-08-08 14:08 ` Marcel Holtmann
2018-08-08 14:41 ` Hans de Goede
0 siblings, 2 replies; 5+ messages in thread
From: Johan Hedberg @ 2018-08-08 10:07 UTC (permalink / raw)
To: Hans de Goede, Marcel Holtmann, Martin Blumenstingl, Jeremy Cline,
linux-bluetooth, linux-serial, linux-acpi
Hi Hans,
On Wed, Aug 08, 2018, Johan Hedberg wrote:
> On Wed, Aug 08, 2018, Hans de Goede wrote:
> > diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> > index f3c643a0473c..8969d3d5d86c 100644
> > --- a/drivers/bluetooth/Kconfig
> > +++ b/drivers/bluetooth/Kconfig
> > @@ -159,6 +159,8 @@ config BT_HCIUART_LL
> > config BT_HCIUART_3WIRE
> > bool "Three-wire UART (H5) protocol support"
> > depends on BT_HCIUART
> > + depends on BT_HCIUART_SERDEV
> > + depends on GPIOLIB
> > help
> > The HCI Three-wire UART Transport Layer makes it possible to
> > user the Bluetooth HCI over a serial port interface. The HCI
>
> The missing BT_HCIUART_SERDEV is already fixed in bluetooth-next.
> Please send an updated patch for the GPIOLIB however.
Actually the GPIOLIB dependency is related to BT_RTL usage, if I
understand the code right. There's much more to be fixed though:
currently all "btrtl" code in hci_h5.c is unconditionally compiled in,
which it shouldn't be (it should depend on BT_RTL). There should
probably be a similar Kconfig option to select BT_RTL for
BT_HCIUART_3WIRE like there is for btusb with BT_HCIBTUSB_RTL.
Would you, or perhaps Jeremy (who introduced this code) be willing to
submit a patch for it? We need to get this fixed for the last 4.19
bluetooth-next pull request, which is due this week.
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB
2018-08-08 10:07 ` Johan Hedberg
@ 2018-08-08 14:08 ` Marcel Holtmann
2018-08-08 14:41 ` Hans de Goede
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2018-08-08 14:08 UTC (permalink / raw)
To: Johan Hedberg
Cc: Hans de Goede, Martin Blumenstingl, Jeremy Cline,
open list:BLUETOOTH DRIVERS, linux-serial, linux-acpi
Hi Johan,
>>> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
>>> index f3c643a0473c..8969d3d5d86c 100644
>>> --- a/drivers/bluetooth/Kconfig
>>> +++ b/drivers/bluetooth/Kconfig
>>> @@ -159,6 +159,8 @@ config BT_HCIUART_LL
>>> config BT_HCIUART_3WIRE
>>> bool "Three-wire UART (H5) protocol support"
>>> depends on BT_HCIUART
>>> + depends on BT_HCIUART_SERDEV
>>> + depends on GPIOLIB
>>> help
>>> The HCI Three-wire UART Transport Layer makes it possible to
>>> user the Bluetooth HCI over a serial port interface. The HCI
>>
>> The missing BT_HCIUART_SERDEV is already fixed in bluetooth-next.
>> Please send an updated patch for the GPIOLIB however.
>
> Actually the GPIOLIB dependency is related to BT_RTL usage, if I
> understand the code right. There's much more to be fixed though:
> currently all "btrtl" code in hci_h5.c is unconditionally compiled in,
> which it shouldn't be (it should depend on BT_RTL). There should
> probably be a similar Kconfig option to select BT_RTL for
> BT_HCIUART_3WIRE like there is for btusb with BT_HCIBTUSB_RTL.
>
> Would you, or perhaps Jeremy (who introduced this code) be willing to
> submit a patch for it? We need to get this fixed for the last 4.19
> bluetooth-next pull request, which is due this week.
I really wanted that the new bt3wire.c gets fixed up and used for this and I am slightly regretting that I merged the hci_h5.c changes :(
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB
2018-08-08 10:07 ` Johan Hedberg
2018-08-08 14:08 ` Marcel Holtmann
@ 2018-08-08 14:41 ` Hans de Goede
1 sibling, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2018-08-08 14:41 UTC (permalink / raw)
To: Marcel Holtmann, Martin Blumenstingl, Jeremy Cline,
linux-bluetooth, linux-serial, linux-acpi
Hi,
On 08/08/2018 12:07 PM, Johan Hedberg wrote:
> Hi Hans,
>
> On Wed, Aug 08, 2018, Johan Hedberg wrote:
>> On Wed, Aug 08, 2018, Hans de Goede wrote:
>>> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
>>> index f3c643a0473c..8969d3d5d86c 100644
>>> --- a/drivers/bluetooth/Kconfig
>>> +++ b/drivers/bluetooth/Kconfig
>>> @@ -159,6 +159,8 @@ config BT_HCIUART_LL
>>> config BT_HCIUART_3WIRE
>>> bool "Three-wire UART (H5) protocol support"
>>> depends on BT_HCIUART
>>> + depends on BT_HCIUART_SERDEV
>>> + depends on GPIOLIB
>>> help
>>> The HCI Three-wire UART Transport Layer makes it possible to
>>> user the Bluetooth HCI over a serial port interface. The HCI
>>
>> The missing BT_HCIUART_SERDEV is already fixed in bluetooth-next.
>> Please send an updated patch for the GPIOLIB however.
>
> Actually the GPIOLIB dependency is related to BT_RTL usage, if I
> understand the code right. There's much more to be fixed though:
> currently all "btrtl" code in hci_h5.c is unconditionally compiled in,
> which it shouldn't be (it should depend on BT_RTL).
This is handled the same way as with BT_BCM already, bt_bcm.h
has
#if IS_ENABLED(CONFIG_BT_BCM)
...
#else
...
#endif
With the #else block defining empty stubs which always return
an error. btrtl.h does exactly the same thing.
> There should
> probably be a similar Kconfig option to select BT_RTL for
> BT_HCIUART_3WIRE like there is for btusb with BT_HCIBTUSB_RTL.
Yes I will submit a patch adding a new BT_HCIUART_RTL
mirroring the existing BT_HCIUART_BCM for this.
Regards,
Hans
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-08-08 14:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08 8:48 [PATCH] Bluetooth: hci_h5: Add Kconfig dependencies on SERDEV and GPIOLIB Hans de Goede
2018-08-08 9:47 ` Johan Hedberg
2018-08-08 10:07 ` Johan Hedberg
2018-08-08 14:08 ` Marcel Holtmann
2018-08-08 14:41 ` Hans de Goede
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).