Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: device: remove USB H4 Bluetooth function and sample #82805

Merged

Conversation

jfischer-no
Copy link
Collaborator

@jfischer-no jfischer-no commented Dec 10, 2024

There is very high confidence that this sample has no user or use on the host side (there is no implementation in btusb to handle it). Furthermore, the functionality can also be provided by the sample/bluetooth/hci_usb sample.

cherry-picked from #80985

Copy link
Contributor

@cvinayak cvinayak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as the sample documentation states:

Turn a Zephyr board into a USB H4 Bluetooth dongle (Linux/BlueZ only).

This sample covers CONFIG_USB_DEVICE_BT_H4=y

@jfischer-no
Copy link
Collaborator Author

as the sample documentation states:

Turn a Zephyr board into a USB H4 Bluetooth dongle (Linux/BlueZ only).

No matter what the documentation says, there is no support for this in btusb. The only purpose why it could be there was/is in fact served with hci_usb.

This sample covers CONFIG_USB_DEVICE_BT_H4=y

Do you want me to remove it immediately and not deprecate with the legacy USB stack?

The Bluetooth HCI USB transport layer implementation is provided by
"subsys/usb/device/class/bluetooth.c". The USB H4 Bluetooth function
implements a non-standard transport layer. There is no known host-side
equivalent that uses this protocol.

Note that the H4 protocol functionality is also provided by the
"subsys/usb/device/class/bluetooth.c".

Since that there are no real USB H4 Bluetooth users, remove the
implementation and sample without deprecation.

Signed-off-by: Johann Fischer <[email protected]>
@jfischer-no jfischer-no force-pushed the pr-remove-usb-h4-sample branch from 23b0af8 to 0448609 Compare December 16, 2024 16:35
@jfischer-no jfischer-no changed the title samples: bluetooth: remove USB H4 Bluetooth dongle sample usb: device: remove USB H4 Bluetooth dongle sample Dec 16, 2024
@jfischer-no jfischer-no changed the title usb: device: remove USB H4 Bluetooth dongle sample usb: device: remove USB H4 Bluetooth function and sample Dec 16, 2024
@Thalley Thalley requested a review from cvinayak December 17, 2024 09:02
@cvinayak
Copy link
Contributor

@jhedberg I was of the belief that Bluez had support for this vendor specific btusb support that did a pass-through of all HCI types (including ISO data) over USB transport... is this is not true, I have no objection to remove this sample.

@Thalley you may want to make a comment here #44013 on the actions taken by this PR

@jhedberg
Copy link
Member

@jhedberg I was of the belief that Bluez had support for this vendor specific btusb support that did a pass-through of all HCI types (including ISO data) over USB transport... is this is not true, I have no objection to remove this sample.

This support isn't upstream in Linux/BlueZ, AFAIK. I did a quick check with @Vudentz and he was fine with this sample getting removed. I also got the impression that there might be some standard coming for this at some point, in which case the sample would either way need to be removed or overhauled.

@jfischer-no
Copy link
Collaborator Author

I also got the impression that there might be some standard coming for this at some point, in which case the sample would either way need to be removed or overhauled.

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/hci_usb was used for this, but this cannot be discussed openly.

@fabiobaltieri fabiobaltieri merged commit 36e8144 into zephyrproject-rtos:main Dec 17, 2024
28 checks passed
@fabiobaltieri
Copy link
Member

There is very high confidence that this sample has no user or use on the host side (there is no implementation in btusb to handle it).

...can we add analytics to west so we have data of what samples are used? 👀 (/me ducks)

@jfischer-no
Copy link
Collaborator Author

There is very high confidence that this sample has no user or use on the host side (there is no implementation in btusb to handle it).

...can we add analytics to west so we have data of what samples are used? 👀 (/me ducks)

What is west? (⊙.☉)7

@jfischer-no jfischer-no deleted the pr-remove-usb-h4-sample branch December 17, 2024 12:11
@fabiobaltieri
Copy link
Member

What is west? (⊙.☉)7

What is west?
Oh, CMake don't hurt me,
Don't hurt me, no more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth HCI Bluetooth HCI Driver area: Bluetooth area: Samples Samples area: USB Universal Serial Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants