Re: Simple USB raw data drivers or APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 14, 2010 at 03:41:36PM -0800, Ron Madrid wrote:
> > > Hello all,
> > > 
> > > I am working with a custom MPC8313 based board
> > running
> > > linux and want to have USB communication between my
> > board
> > > and a host machine.  I would like to make a few
> > > statements and find out if my assumptions are
> > correct.
> > > 
> > > 1.  I need to write a gadget driver for my
> > board.
> > 
> > Yes, if the existing ones do not work with your hardware.
> 
> I take it you are talking about the ethernet and serial ones?
> If not I don't know what you mean by existing ones?

No, I mean a usb gadget controller driver for your MPC8313 based board.

> > > I do already know about the ethernet over usb drivers
> > and
> > > have tried them in the past.  I want something
> > more
> > > direct and with less overhead.
> > 
> > Why do you feel the ethernet gadget has too much overhead?
> 
> I was under the impression that after calling send() or recv()
> ethernet packets get assembled with the data and these would
> then be put into the urbs.  Am I wrong?

No, that's correct, why is that a problem?

> > Have you tried the serial one?
> 
> I have not.  But I think I'll give it a go.  Worst case it'll
> be a good exercise.
> 
> I'm mostly worried about speed.  I just want to be able to dump
> data as quickly as possible.  If the ethernet or serial drivers
> are just as fast as writing my own I can go with those, but I
> don't know if that is the case.  If there are speed benefits
> from writing my own, that's the route I'll take.

The serial one should allow you to hit the maximum line-speed for your
hardware, with no overhead for any extra protocols.  So I would
recommend using that one.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux