[Gta04-owner] Android gadget driver

Dr. H. Nikolaus Schaller hns at goldelico.com
Mon Aug 5 08:53:55 CEST 2013


Am 04.08.2013 um 11:06 schrieb Paul Kocialkowski:

> Le samedi 03 août 2013 à 18:34 +0200, Dr. H. Nikolaus Schaller a écrit :
>> I have found out a little more. The original Android Gadget driver was
>> contributed at 16th May 2012 to 3.5-rc2 (and some variables were
>> renamed to "ccg"):
>> 
>> http://lxr.free-electrons.com/source/drivers/staging/ccg/ccg.c?v=3.5
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=332bb43f7c4baea2a0dce7ae2c078c55e14d37b5
>> 
>> As far as I can see, in Linux 3.6 there were only minor changes.
>> 
>> In 3.7 they started to rework things up to 3.9. But work stalled at
>> 22th Oct. And in 3.10 it was removed completely as said above...
>> 
>> I have no problem with using the /sys interface and as long as Replicant
>> wants to control it through /sys, we need to have a driver that supports /sys...
>> 
>> So the best approach appears to me to merge the ccg from 3.5 or 3.6 (before
>> it was touched to add functionfs support) into our 3.11. It should suffice to
>> cherry-pick 332bb43f7c4baea2a0dce7ae2c078c55e14d37b5 and fix
>> issues.
> 
> We cannot use ccg, we need to original sysfs nodes names.

Did they already change the sysfs node names in the first version, i.e. the
commit mentioned above so that it was incompatible with user space
right from the beginning?

> Why not directly include Android USB Gadget from a recent Linaro kernel?

Maybe, because nobody has a plan where to look for and find the patch?

BR,
Nikolaus


More information about the Gta04-owner mailing list