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

mixed repo #8

Open
cromio opened this issue Feb 19, 2016 · 4 comments
Open

mixed repo #8

cromio opened this issue Feb 19, 2016 · 4 comments

Comments

@cromio
Copy link

cromio commented Feb 19, 2016

Hi,

Your repo seems to mix user space app with kernel space code. But you only use user space code in the makefile stating in the readme that h5 alone is enough. Why did you add the other files if they are not used?

Explanation: hciattach.c and hciattach_rtk.c are user space app.

But: hci_h4.c, hci_ldisc.c and hci_rtk_h5.c should probably stay in <kernel_source>/drivers/bluetooth/...
Then perhaps for hci_rtk_h5 you need to add a Kconfig entry as well as a Makefile entry.
Maybe a patch will be better...

Anyway, my problem: I am using the h5 (or the 3wire) and I still got "Realtek Bluetooth ERROR: H5 sync timed out".
I am thinking that maybe I need to patch the kernel with the rtk_h5 and not use h5 at all.
What do you say?

I'm gonna try it anyway and let you know the result.

EDIT: make it more clear

@lwfinger
Copy link
Owner

The repo has both kernel and user space stuff because a user needs both in order to have BT.

I did not write either of the parts and I have provided them only as a convenience.

Yes, some parts of this should be in the kernel, but I am never planning on having any part of that effort. All I can say is that if your device is not working with the existing code, then messing with the kernel is a waste of time. You should modify this code to find the problem. Then you might consider further actions. As my device does not have your problem, I cannot help.

@cromio
Copy link
Author

cromio commented Feb 19, 2016

Fair answer.

Since this is the only repo I could find for the sdio wifi/bt combo I am grateful you share the code with us.

I was mislead by your warning in the readme:

WARNING: This driver needs the H5 protocol, which is built into kernels 3.12
and later. If you need to use an earlier kernel, raise an issue on this repo.

Btw, can you please state for what device you used this code with success.

@cromio
Copy link
Author

cromio commented Feb 19, 2016

Looking for H5 in the kernel I found CONFIG_BT_HCIUART_3WIRE that builds hci_h5.c.
But then there is rtk_h5.c in your repo...

Thus the misleading.

@lwfinger
Copy link
Owner

If you look at the Makefile, that file is NEVER touched!! It it there for completeness and only needed for old kernels.

My device is the TW100 tablet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants