Re: Megawin USB serial question?

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

 



On Wed, Jan 04, 2012 at 01:52:15AM +0100, Marek Vasut wrote:
> > On Fri, Dec 30, 2011 at 05:58:25PM -0800, Stephen Hemminger wrote:
> > > I have a bike computer with a USB cradle and the obligatory crap windows
> > > app. Didn't bother with it much but discovered there is an open source
> > > bike monitoring app with download for lots of different hardware (Golden
> > > Cheetah). But it doesn't support the VDO Z3.
> > > 
> > > The hardware shows up as a Megawin USB serial bridge. There is a
> > > datasheet online, and looks like others have fiddled with it in the
> > > past. Is there anything wrong with just making a stub wrapper that calls
> > > the usb generic driver, or is it better to just add more ID's to the
> > > existing driver?
> > 
> > We've traditionally just created a new driver for devices like this, it
> > should be really tiny, like the file drivers/usb/serial/zio.c
> > 
> > We've talked about merging all of these "generic" drivers together, and
> > probably should one day, as it would be simpler, no one has really
> > gotten around to it yet.
> 
> Didn't I attempt it back in some really old times? But it was rejected, no idea 
> why. Anyway, if someone could consolidate these and allow the driver to bind to 
> arbitrary IDs, that'd be good.

You can do that today by adding individual device ids through sysfs.

Odds are, you never really want to use the generic driver, so making it
a new driver allows you to bump up the number of urbs, to make things
work "quicker".  I'll look into merging these drivers in the 3.4
timeframe, I have other things to handle at the moment for 3.3...

thanks,

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