I'm not that familiar with g_android, but maybe compile g_ether in
statically and compile out g_android statically?  Otherwise, I would have
thought modprobe would be taking care of the ordering for you.

On Fri, May 6, 2011 at 2:11 PM, Allen Curtis <ajcurti...@gmail.com> wrote:

> Hello,
>
> My testing indicates that in order for gadget ethernet to work, the gadget
> device needs to load g_ether.ko. When this is loaded the host detects that
> device and loads its own CDC USB driver for communication.
>
> Reading Documentation/usb/gadget_multi.txt seems to indicate that the host
> controls which driver the gadget loads by specifying an order. This would
> explain why I am not able to find this information for the device but it
> does not agree with my testing.
>
> How do I get a gadget to load g_ether.ko vs. g_android.ko when the USB port
> is connected?
>
> Thanks
>
> --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to