USB Device Driver
Hello, During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*. Do you guys have a more recent example, preferably not drivers/usb/usb-skeleton.c . -- Vlad Ungureanu
On Fri, Jun 13, 2014 at 1:24 PM, Vlad Ungureanu <vvu@vdev.ro> wrote:
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*. Do you guys have a more recent example, preferably not drivers/usb/usb-skeleton.c .
If you are talking about a usb device mode driver (to switch the phone to device mode, when it is connected by a usb to a host machine), then please refer to drivers/usb/dwc3/core.c (DWC3_MODE_DEVICE) . It is a usb dual role controller driver. Regards, Ayan Kumar Halder
On Fri, Jun 13, 2014 at 09:54:17AM +0200, Vlad Ungureanu wrote:
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone.
That's great, which project is doing this? What type of USB driver are you needing to create? A "gadget" or a "normal" driver? What hardware is this for?
Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*.
What's wrong with the ones we already have that do this?
I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*.
Not much has changed in the USB core to need to update those, what have you found that is lacking?
Do you guys have a more recent example, preferably not drivers/usb/usb-skeleton.c .
Any reason why usb-skeleton.c isn't a good example? I like it :) Also, USB specific Linux questions should be asked on the linux-usb@vger.kernel.org mailing list, as that is where all of the Linux USB developers are at. thanks, greg k-h
Hello Greg, I was rushing into posting the mail here, just finished writing up a small driver that switches my phone into ADK mode. The project is http://blog.praveenkumar.co.in/2014/05/gsoc-14-proposal-for-beagleorg.html . The skel helped me in the end. We are trying to develop this driver for the BeagleBone Black in order to take the framebuffer from it and send it via USB to an Android device and relay touches back to the board. If we have any more questions we will go on the USB ML from now on. Thank you for the help!
On Fri, Jun 13, 2014 at 09:54:17AM +0200, Vlad Ungureanu wrote:
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone.
That's great, which project is doing this? What type of USB driver are you needing to create? A "gadget" or a "normal" driver? What hardware is this for?
Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*.
What's wrong with the ones we already have that do this?
I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*.
Not much has changed in the USB core to need to update those, what have you found that is lacking?
Do you guys have a more recent example, preferably not drivers/usb/usb-skeleton.c .
Any reason why usb-skeleton.c isn't a good example? I like it :)
Also, USB specific Linux questions should be asked on the linux-usb@vger.kernel.org mailing list, as that is where all of the Linux USB developers are at.
thanks,
greg k-h
-- Vlad Ungureanu
participants (3)
-
AYAN KUMAR HALDER -
Greg KH -
Vlad Ungureanu