hong zhang | 5 Mar 2009 07:31
Picon
Favicon

which usb driver handles usb flash stick?


List,

I like to trace driver call for external usb flash memory when usb flash memory is inserted to USB port on PC
but I could not identify which driver does the work.

Could anyone please tell me which driver is?
Thanks.

--henry

Greg KH | 5 Mar 2009 08:01
Gravatar

which usb driver handles usb flash stick?

On Wed, Mar 04, 2009 at 10:31:57PM -0800, hong zhang wrote:
> 
> List,
> 
> I like to trace driver call for external usb flash memory when usb
> flash memory is inserted to USB port on PC but I could not identify
> which driver does the work.
> 
> Could anyone please tell me which driver is?

usb-storage

Stefan Richter | 5 Mar 2009 08:30
Picon

which usb driver handles usb flash stick?

Greg KH wrote:
> On Wed, Mar 04, 2009 at 10:31:57PM -0800, hong zhang wrote:
>> List,
>>
>> I like to trace driver call for external usb flash memory when usb
>> flash memory is inserted to USB port on PC but I could not identify
>> which driver does the work.
>>
>> Could anyone please tell me which driver is?
> 
> usb-storage

And for (almost) the whole picture, /sys contains cross-references
between device representations and driver representations.
--

-- 
Stefan Richter
-=====-==--= --== --=-=
http://arcgraph.de/sr/

Pavel Roskin | 5 Mar 2009 18:32
Picon

which usb driver handles usb flash stick?

On Wed, 2009-03-04 at 23:01 -0800, Greg KH wrote:
> On Wed, Mar 04, 2009 at 10:31:57PM -0800, hong zhang wrote:
> > 
> > List,
> > 
> > I like to trace driver call for external usb flash memory when usb
> > flash memory is inserted to USB port on PC but I could not identify
> > which driver does the work.
> > 
> > Could anyone please tell me which driver is?
> 
> usb-storage

Or "ub" - Low Performance USB Block driver.  Although it has been a long
time since I had a device that required "ub".

--

-- 
Regards,
Pavel Roskin

hong zhang | 18 Mar 2009 07:21
Picon
Favicon

need a usb device and learn writting a usb gadget driver


List,

Could anyone recommend me a usb device to learn writting a usb gadget driver?

usb mice, usb keyboard and usb flash are using usb core/host. 

I see some drivers in drivers/usb/gadget subdirectory but do not know which slave usb devices those
drivers support.

Thanks.

---henry 

Benoit Donnette | 18 Mar 2009 08:51
Favicon

need a usb device and learn writting a usb gadget driver

>
> List,
>
> Could anyone recommend me a usb device to learn writting a usb gadget
> driver?
>
> usb mice, usb keyboard and usb flash are using usb core/host.
>
> I see some drivers in drivers/usb/gadget subdirectory but do not know
> which slave usb devices those drivers support.
>
> Thanks.
>

Well, correct me if needed, but I think USB gadget is basically using a
Linux host as a USB *device*, not a USB *host*. So, unless you're doing
embedded (or working with fairly specific hardware), it is probably not
what you want.

And if it really is what you want, well, a USB tracker (keep track of
packets) could be a good starting point.

--

-- 
Beno?t Donnette - LINAGORA - 27 rue de Berri - 75008 PARIS

Greg KH | 18 Mar 2009 16:47
Gravatar

need a usb device and learn writting a usb gadget driver

On Wed, Mar 18, 2009 at 08:51:59AM +0100, Benoit Donnette wrote:
> >
> > List,
> >
> > Could anyone recommend me a usb device to learn writting a usb gadget
> > driver?
> >
> > usb mice, usb keyboard and usb flash are using usb core/host.
> >
> > I see some drivers in drivers/usb/gadget subdirectory but do not know
> > which slave usb devices those drivers support.
> >
> > Thanks.
> >
> 
> Well, correct me if needed, but I think USB gadget is basically using a
> Linux host as a USB *device*, not a USB *host*. So, unless you're doing
> embedded (or working with fairly specific hardware), it is probably not
> what you want.
> 
> And if it really is what you want, well, a USB tracker (keep track of
> packets) could be a good starting point.

We already have that, look for 'usbmon' in the Linux kernel tree.

thanks,

greg k-h

(Continue reading)

Greg KH | 18 Mar 2009 16:48
Gravatar

need a usb device and learn writting a usb gadget driver

On Tue, Mar 17, 2009 at 11:21:44PM -0700, hong zhang wrote:
> 
> List,
> 
> Could anyone recommend me a usb device to learn writting a usb gadget
> driver?
> 
> usb mice, usb keyboard and usb flash are using usb core/host. 
> 
> I see some drivers in drivers/usb/gadget subdirectory but do not know
> which slave usb devices those drivers support.

The names of them are in the drivers themselves.

Do you have a specific usb gadget device you wish to write a driver for?

thanks,

greg k-h

hong zhang | 18 Mar 2009 17:18
Picon
Favicon

need a usb device and learn writting a usb gadget driver


Greg,

No, I do not have gadget device. But I want to learn writting a USB gadget driver. This is why I ask help, what
kind of gadget device I need to learn writting gadget driver?

For USB tracker, do you mean kernel has it already?

----henry

--- On Wed, 3/18/09, Greg KH <greg at kroah.com> wrote:

> From: Greg KH <greg at kroah.com>
> Subject: Re: need a usb device and learn writting a usb gadget driver
> To: "hong zhang" <henryzhang62 at yahoo.com>
> Cc: devel at linuxdriverproject.org
> Date: Wednesday, March 18, 2009, 10:48 AM
> On Tue, Mar 17, 2009 at 11:21:44PM -0700, hong zhang wrote:
> > 
> > List,
> > 
> > Could anyone recommend me a usb device to learn
> writting a usb gadget
> > driver?
> > 
> > usb mice, usb keyboard and usb flash are using usb
> core/host. 
> > 
> > I see some drivers in drivers/usb/gadget subdirectory
> but do not know
(Continue reading)

Greg KH | 18 Mar 2009 17:27
Gravatar

need a usb device and learn writting a usb gadget driver

On Wed, Mar 18, 2009 at 09:18:11AM -0700, hong zhang wrote:
> 
> Greg,
> 
> No, I do not have gadget device. But I want to learn writting a USB
> gadget driver. This is why I ask help, what kind of gadget device I
> need to learn writting gadget driver?

You need a device that can work like a USB gadget that runs Linux.  That
should narrow the choices down greatly :)

Or you can get a pci card that acts like a USB gadget and work from
there.

Then just pick a usb gadget type that isn't already implemented.  Or
rewrite one of the existing gadget types, it's up to you.

> For USB tracker, do you mean kernel has it already?

What do you mean by "USB tracker"?

thanks,

greg k-h


Gmane