Me too have same question.

devphone seems to have the following two types of implementations.
So far as I understand, Mike Lockwood of Google recommends
the latter type in an earlier mail. It would be better if he confirms.

   1. function driver implementation
        drivers/usb/function/adb.c
        drivers/usb/function/msm_hsusb.c

   2. gadget driver implementation
        drivers/usb/function/android.c
        drivers/usb/function/f_adb.c
        drivers/usb/function/msm72k_udc.c

RR


On 7月17ζ—₯, 午後7:28, "Iram Shahzad" <[email protected]> wrote:
> Hi
>
> I am trying to enable ADB through USB on my experimental device.
> I have the following question in this regard.
>
> It seems there are two ways for this.
>     1. support USB gadget driver
>     2. support USB function driver
>
> Which one of the above is recommended?
>
> It seems that devphone uses the No 2. approach.
> But the common kernel at
> git://android.git.kernel.org/kernel/common.git
> does not contain the function driver related codes.
>
> I have tried the No 1. approach. But it looks like
> drivers/usb/gadget/f_adb.c
> has several problems. Has it ever been tested on any device?
>
> Many thanks in advance
> IS

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to