On Tue, Mar 3, 2009 at 7:12 PM, Ramy <[email protected]> wrote:
> On Mar 4, 2:35 am, Greg KH <[email protected]> wrote:
>>
>> Are you writing a new USB host controller driver?  If so, for what hardware?
>
> I already have the device controller driver. I am implementing a
> function on it to do the read and write process. The driver is for msm
> 7200 board . I only has the adb function implemented. I am thinking of
> writing another function which can do read/write with the  host(linux/
> windows).

There is no such thing as a "function" that can do that.

Again, please go read the USB spec at www.usb.org for more details on
how endpoints, configurations, and the like all work.

There is no standard usb descriptor type that allows a read/write type
connection between a device and the host like I think you are looking
for.

> referrring to the adb function source code available i have written an
> similar function. I have done the compilation . after the boot the
> driver is configures and its device is created on the board (using
> minicom to access the nfs ). But when i do some read and write nothing
> happens.

Have you looked at the USB data stream going across the wire to see what
is happening?  If you don't have a USB analizer, and you are doing USB
development, I strongly encourage you to get one.  They are not that
expensive, and some work on all operating systems (The Beagle devices
are quite nice like this.)

>> Do you have a pointer to your kernel code that you are having problems with?
>> It's up to the device itself to negotiate the full/high/low speed issues
>> without any need for your driver to do anything.
>
> following the   http://www.linux-usb.org/usbtest/ site i have tried to
> test the peripheral controller driver (from linux host) which says
>
> unknown speed   /proc/bus/usb/001/054
> /proc/bus/usb/001/054 test 9 --> 25 (Inappropriate ioctl for device)
>
> Is this because there is no implementation for the ioctl calls in the
> peripheral controller driver ??

The usbtest driver is for devices that are very unlike the android
phone.  That is why it is not working.

>> Where exactly are you writing the driver?  On the android phone side
>> or on the USB host side?  And pointers to the code would be
>> appreciated to help clear up things.
>
> I am trying to do all things on the target side MSM 7200 board.

Pointers to your code?

thanks,

greg k-h

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

Reply via email to