Skip to contentSkip to conversation

tools/hciattach: Add support for BCM line discipline

PATCH In review John Keeping 2 participants 5 messages Nov 24, 2015 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/hciattach: Add support for BCM line discipline

This is similar to the "bcm43xx" option but using the kernel driver has the advantage that the wakeup and shutdown pins on the device can be used.

---
 tools/hciattach.c | 4 ++++
 1 file changed, 4 insertions(+)
tools/hciattach.c +4 -0
index 59a76a7..7f8f463 100644
@@ -1163,6 +1163,10 @@ struct uart_t uart[] = {
 	{ "amp",	0x0000, 0x0000, HCI_UART_H4, 115200, 115200,
 			AMP_DEV, DISABLE_PM, NULL, NULL, NULL },
 
+	/* Broadcom BCM with kernel support */
+	{ "bcm",        0x0000, 0x0000, HCI_UART_BCM,  115200, 115200,
+				FLOW_CTL, DISABLE_PM, NULL, NULL, NULL },
+
 	{ NULL, 0 }
 };
 
Signature · 1 line
2.6.3.462.gbe2c914
maintainer
#1 lore raw

Hi John,

Quoted 3 lines

This is similar to the "bcm43xx" option but using the kernel driver has the advantage that the wakeup and shutdown pins on the device can be used.

what is wrong with just using btattach?

Regards

Marcel

#2 lore raw
Quoted 5 lines · Marcel Holtmann
Quoted 3 lines

This is similar to the "bcm43xx" option but using the kernel driver has the advantage that the wakeup and shutdown pins on the device can be used.

what is wrong with just using btattach?

It's marked as experimental and not installed by "make install", so I assumed that it was only supposed to be used for testing.

Regards,
John

maintainer
#3 lore raw

Hi John,

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

This is similar to the "bcm43xx" option but using the kernel driver has the advantage that the wakeup and shutdown pins on the device can be used.

what is wrong with just using btattach?

It's marked as experimental and not installed by "make install", so I assumed that it was only supposed to be used for testing.

hmm, not installed by default. I do not remember the reason for that, but I am sure I had one. However btattach is so dead simple that it should be used. Seems like we should look into making sure the command line options are stable and we install it by default.

The hciattach code is the most horrific code we have in our tree. I really dislike it and there is almost zero chance to clean it up. I am not sure that I want to pile on top of it.

Regards

Marcel

#4 lore raw
Quoted 6 lines · Marcel Holtmann

Hi John,

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

This is similar to the "bcm43xx" option but using the kernel driver has the advantage that the wakeup and shutdown pins on the device can be used.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

what is wrong with just using btattach?

It's marked as experimental and not installed by "make install", so I assumed that it was only supposed to be used for testing.

hmm, not installed by default.

I don't think there's any way to install it via the autotools infrastructure since it's added to noinst_PROGRAMS in Makefile.tools (and then only when EXPERIMENTAL is set).

Quoted 4 lines

I do not remember the reason for that,
but I am sure I had one. However btattach is so dead simple that it should be used. Seems like we should look into making sure the command line options are stable and we install it by default.

I'm happy to submit a patch to build (and install) btattach by default, but I guess it will also need a man page. I'm not sure what you mean about the command line options, they look reasonable to me but I'm not a bluetooth expert.

Regards,
John