Re: USB Serial Converter driver and multiple devices

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

 



On Mon, May 14, 2012 at 03:43:41PM +0300, Olli Helin wrote:
> Hello!
> 
> I recently got myself a 3G USB modem, which uses the usbserial driver.
> I have to give the usbserial module the vendor and product IDs as
> command line arguments for the driver to work with my modem.

Stop right there.  Why do you need to do this?  You shouldn't, it should
"just work" without this.  What type of device is this, and what driver
are you adding the device id to (hint, it can't be the generic
usb-serial one, that is not for a "real" device, but only for testing.)

> I also
> have a Matrix Orbital LCD display that uses the same usbserial driver.
> Luckily the LCD display uses the usbserial driver via ftdi_sio, which
> has the display listed in its MODULE_DEVICE_TABLE.
> 
> Now this got me wondering, what if my LCD display (or some other
> device) did not use ftdi_sio, but usbserial directly, and would thus
> need the vendor and product IDs as command line arguments also. As
> usbserial does not have MODULE_DEVICE_TABLE, devices using the
> usbserial driver directly need to pass the correct vendor and product
> ID command line arguments.
> 
> But is it possible to give multiple vendor/product arguments when
> loading a module? If not, then one of my devices would not work.
> Obviously, some kind of wrapper driver with MODULE_DEVICE_TABLE would
> be needed. Is there already a generic one, or what is the recommended
> take on this kind of problem?
> 
> My 3G modem actually worked with the Gobi Serial (CodeAurora) driver
> after setting the device ID in the MODULE_DEVICE_TABLE, so I wouldn't
> have a problem right now even if I had another device using the
> usbserial driver directly. I also understand this would be a rare
> situation and hardly a practical problem, but I'm just asking.

Care to send a patch that adds your device id to this driver so it will
work for everyone?

And as for a solution, again, the generic usb-serial driver is not for a
real device, that is why it can accept only one device id through the
module parameters.

However, the new_id file in sysfs can accept multiple device ids, if you
need to for testing.

Hope this helps,

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