Re: Clarifications on usb device driver probe() function

2013-01-31 Thread Felipe Balbi
Hi, (always use reply-all) On Thu, Jan 31, 2013 at 11:12:07AM +0100, stl wrote: > Hi, > thanks for yours answers > > > which kernel version are you using ? usb_gadget_register_driver() has > > been re-factored into generic code long ago. > > Indeed, I am unfortunately using an old kernel versio

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread Felipe Balbi
Hi, (please don't top-post and don't include quotes after you finish your replies) On Wed, Jan 30, 2013 at 08:05:08PM +0100, stl wrote: > > fair enough... now that's a lot clearer. Did you design your own OTG > > controller or did you license from someone else ? > > Yes, we have designed our own

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread stl
> fair enough... now that's a lot clearer. Did you design your own OTG > controller or did you license from someone else ? Yes, we have designed our own OTG controller. I have spent a certain amount of time reading documentation, notably "Bootstrap Yourself with Linux-USB stack" which has been fo

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread Felipe Balbi
Hi, On Wed, Jan 30, 2013 at 06:10:50PM +0100, stl wrote: > > What does your device do? > > Ok, to clarify the situation, I have ported uClinux for a new architecture. > We also have our own usb2.0 otg controller IP. > Since our system is designed for embedded systems, we want a usb > platform dri

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread stl
> What does your device do? Ok, to clarify the situation, I have ported uClinux for a new architecture. We also have our own usb2.0 otg controller IP. Since our system is designed for embedded systems, we want a usb platform driver. (a UDC driver if I well understood) I really mean "device-side" ,

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread Felipe Balbi
Hi, On Wed, Jan 30, 2013 at 05:28:59PM +0100, stl wrote: > Hello all, > I am writing a USB device driver and I have some problems to write let's first try to understand what are you trying to do ? Do you to want to write a driver for a USB device such as a USB pendrive, or a USB camera and the l

Re: Clarifications on usb device driver probe() function

2013-01-30 Thread Alan Stern
On Wed, 30 Jan 2013, stl wrote: > Hello all, > I am writing a USB device driver and I have some problems to write > the specific probe() function. What does your device do? > In the documentation, it is said that the probe function is > responsible for mapping the > platform ressources (IRQ and

Clarifications on usb device driver probe() function

2013-01-30 Thread stl
Hello all, I am writing a USB device driver and I have some problems to write the specific probe() function. In the documentation, it is said that the probe function is responsible for mapping the platform ressources (IRQ and I/O memory) Firstly, what should I do with platform_get_ressource() fu