[linux-usb-devel] Zero-Byte Packet Questions

2007-03-06 Thread Ajay Jain
Hello, We had the following questions for a peripheral controller driver. We do have an idea about some of the answers, evidently our understanding is not complete. 1. The gadget can ask the peripheral controller to send/receive zero byte packets. Consider the following sub-cases: a) req.

[linux-usb-devel] UDC Driver Querry

2007-02-26 Thread Ajay Jain
Hi, I have these questions regarding the peripheral controller driver. 1. When the gadget driver queues a request for the EP0, how does one get to know whether it is an "IN" request or an "OUT" request. I was looking at a few implementations and I came across the following code: if (ep_is_in(ep)

[linux-usb-devel] Querry: Zero Byte Packets: UDC/Gadgets

2006-12-11 Thread Ajay Jain
Hello, I have a question regarding USB Gadget Implementation. The question is regarding the zero byte packets that are sent/recvd during USB Transfers. Assuming that I have my own peripheral driver, and am using a mass storage functionality on it. Who is responsible to send zero byte packets in th

Re: [linux-usb-devel] Peripheral Driver Querry

2006-11-27 Thread Ajay Jain
> g_file_storage reads and writes data to/from the card, as you would > expect. > > Is there some user-space daemon running? > Only if you start one up. Got it, just one point for discussion. I just saw the file storage code and realized that things are implemented as a kernel thread and the read/

[linux-usb-devel] Peripheral Driver Querry

2006-11-27 Thread Ajay Jain
Hello, We are implementing a USB peripheral controller driver for our proprietary hardware, an ARM based SOC. I have read the Linux gadget page on the linux usb website. A few things that I could conclude were: 1. We should be using the Linux gadget framework for the same, like the way its done f

Re: [linux-usb-devel] USB device driver querry

2006-07-18 Thread Ajay Jain
> > I have a usb hardware on my ARM based board. I want to develop a usb > > function driver so that I can view the file-system on the host side. I > > guess such kind of functionality is exposed in the mass-storage class. > > No. > > > Can somebody guide me as to how to proceed? Are there any samp

[linux-usb-devel] USB device driver querry

2006-07-18 Thread Ajay Jain
Hello, I have a usb hardware on my ARM based board. I want to develop a usb function driver so that I can view the file-system on the host side. I guess such kind of functionality is exposed in the mass-storage class. Can somebody guide me as to how to proceed? Are there any sample drivers availab

[linux-usb-devel] Enumeration sequence issues

2006-07-12 Thread Ajay Jain
Hi, The windows host enumerates my proprieatry device (running linux & my driver) in the following sequence: 1. Reset 2. Get Dev Desc 64 bytes 3. Reset 4. Set Address 5. Get Dev Desc 18 bytes 6. Get Config Desc 9 bytes 7. Get Config Desc 0xff bytes 8. Get Device Qualifier Desc 9. Get Dev Desc 18

Re: [linux-usb-devel] Fwd: Device Detection Issues

2006-07-12 Thread Ajay Jain
On 7/11/06, Steve Calfee <[EMAIL PROTECTED]> wrote: > > >Date: Mon, 10 Jul 2006 20:07:05 +0530 > > >From: "Ajay Jain" <[EMAIL PROTECTED]> > > >To: linux-usb-devel@lists.sourceforge.net > > >Hi, > > >Am using a windows host and a

[linux-usb-devel] Strange Observation

2006-07-11 Thread Ajay Jain
Hi, I am seeing a very very strange behavior. I ported linux-2.6.14 on our platform & the Makefile confims its version number. Then sometime back I had to download the raw source again from kernel.org. I see that the usb directories of both the versions differ remarkably. The differences are attach

Re: [linux-usb-devel] Device Detection Issues

2006-07-11 Thread Ajay Jain
On 7/11/06, Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 11 Jul 2006, Ajay Jain wrote: > > > > Remember the definitions of reset and suspend. Reset is an SE0 signal, > > > which is the default bus state when no device is attached or the device's > >

Re: [linux-usb-devel] Device Detection Issues

2006-07-11 Thread Ajay Jain
On 7/10/06, Alan Stern <[EMAIL PROTECTED]> wrote: > On Mon, 10 Jul 2006, Ajay Jain wrote: > > > Hi, > > Am using a windows host and a proprietary device as a function. This > > is the pre-enumeration stage that I am talking about. I see a very > > different

[linux-usb-devel] Device Detection Issues

2006-07-10 Thread Ajay Jain
Hi, Am using a windows host and a proprietary device as a function. This is the pre-enumeration stage that I am talking about. I see a very different behavior with what is written in the standard or with the way windows is supposed to enumerate. The following are the observations with CATC protocol

[linux-usb-devel] Resume, suspend, reset Doubts

2006-07-06 Thread Ajay Jain
Hi, I am writing a usb function driver for our own usb h/w. I am not very clear on what is to be done when I receive a reset, suspend & resume. What is expected from my driver/device when I detect a reset given by windows host, similarly what should be my behavior on suspend. And what about resume.

[linux-usb-devel] USB function error

2006-06-21 Thread Ajay Jain
Hi, We are using usb function exposed as a serial device. It is our own proprietary hardware (running linux) exposed as a serial device. The host side (windows) identifies our serial device with the driver "wceusbsh.sys". The enumeration goes successfully and we get to see our device in the device

Re: [linux-usb-devel] Problem with usb-serial layer

2005-12-14 Thread Ajay Jain
Greg KH wrote: > On Wed, Dec 14, 2005 at 02:30:46PM -0800, Ajay Jain wrote: > >>Hi, >> >>I am doing bulk out transfers using my own usb host-controller driver on >>linux 2.4.21. The device being used is a usb-serial device of type pl203. >>I sometimes see tha

[linux-usb-devel] Problem with usb-serial layer

2005-12-14 Thread Ajay Jain
Hi, I am doing bulk out transfers using my own usb host-controller driver on linux 2.4.21. The device being used is a usb-serial device of type pl203. I sometimes see that I get all packets of size zero for a bulk out transfer, after an initial valid size. I complete the first bulk transfer succes

Re: [linux-usb-devel] USB Serial Error

2005-12-12 Thread Ajay Jain
Ajay Jain wrote: > I am using my own usb host driver and trying to run a serial device on > that. 1 out of 5 times, I get an error "kernel panic, aiee, scheduling > in interrupt handler". The device in question is pl2303. From > usbserial.c, the function serial_write_roo

[linux-usb-devel] USB Serial Error

2005-12-12 Thread Ajay Jain
Hi, I am using my own usb host driver and trying to run a serial device on that. 1 out of 5 times, I get an error "kernel panic, aiee, scheduling in interrupt handler". The device in question is pl2303. From usbserial.c, the function serial_write_room is called. The error comes on doing do

[linux-usb-devel] Issues with USB Key Board Client Driver

2005-12-02 Thread Ajay Jain
Hi, I am working on usb host driver on linux on arm. I have been able to enumerate a standard key board and carry out the interrupt transactions. I can see the data coming from the keyboard in the usb host driver's isr. I want to see the same data on my console also. My console is diverted to ttys

Re: [linux-usb-devel] Problem in/after loading key board driver while enumeration

2005-12-02 Thread Ajay Jain
Ajay Jain wrote: > Hi, > > I am working on a USB host driver on my proprietary h/w on linux 2.4. I > am facing issues after enumeration of a key board. I see that the client > driver gets loaded and I get the following messages. > > hid-core.c: HID probe called for ifnum 0

[linux-usb-devel] Problem in/after loading key board driver while enumeration

2005-12-01 Thread Ajay Jain
Hi, I am working on a USB host driver on my proprietary h/w on linux 2.4. I am facing issues after enumeration of a key board. I see that the client driver gets loaded and I get the following messages. hid-core.c: HID probe called for ifnum 0 input0 hid-core.c: USB HID v1.00 Keyboard [Silitek IBM

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Ajay Jain
Alan Stern wrote: > On Thu, 24 Nov 2005, Ajay Jain wrote: > > >>Alan Stern wrote: >> >> >>>On Wed, 23 Nov 2005, Ajay Jain wrote: >>> >>> >>> >>>>Hi, >>>> >>>>I am doing a USB Host driver for my h

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Ajay Jain
Alan Stern wrote: > On Wed, 23 Nov 2005, Ajay Jain wrote: > > >>Hi, >> >>I am doing a USB Host driver for my h/w on an arm board on linux. My >>question is regarding interrupt urbs. Are these things periodic? I mean >>if I get an interrupt urb done from