[Gta04-owner] Android gadget driver

Paul Kocialkowski paulk at paulk.fr
Sun Aug 4 11:06:05 CEST 2013

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.
Why not directly include Android USB Gadget from a recent Linaro kernel?

> This will of course never go upstream, but I hope it is a solution for
> Replicant's need of a good kernel with adb support.

More information about the Gta04-owner mailing list