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

Improve linux USB gadget driver support #126

Open
espoal opened this issue Feb 22, 2018 · 0 comments
Open

Improve linux USB gadget driver support #126

espoal opened this issue Feb 22, 2018 · 0 comments

Comments

@espoal
Copy link

espoal commented Feb 22, 2018

I suggest we could patch the linux USB gadget driver to improve WebUSB support.

The current isssue are:

  • lack of support for the additional WebUSB descriptors
  • inability to use the device due to driver conflicts ( Register a claimed device #125 )
  • permission conflicts in linux distros (this could be patched in userland, by adding a default udev rule for webusb interfaces)
  • eventual problems in windows

I've already worked on a custom patch for proof of concept, but it's owned by my employer, so I can't upstream it. Also maybe @gregkh might not accept it upstream in the linux usb driver. I made it work by patching the serial device with custom descriptors, so that the official driver couldn't recognize it anymore.

A smarter approach could be to have the webusb gadget allows the user to pick a function, and then decorate it with descriptor, ie: webusb driver with serial function, or storage function.

There might be a workaround by cleverly writing the descriptors using the current driver, but I'm still looking for it.

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

1 participant