Re: Deterministic Char. Device Detection

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

 



On Mon, Feb 16, 2009 at 05:51:12PM -0400, Toan Pham wrote:
> Hi,
> 
> I have some usb-to-serial devices, and each can be set with jumpers
> so that if an 's' was sent to the device, an expected feedback would be
> 'S0', 'S1', 'S2', 'S3',  as a way to identify the device to the system.
> 
> Currently, each device is detected by the system in the order that they
> are plugged, having minor id 188, and minor 0..4 etc....
> 
> I would like to know if it is possible to modify the ftdi driver, or
> usb-serial driver,
> so that when a device is plugged it, it is assigned with a minor number
> of the device id, instead of sequential minor id.

Use udev to do this in userspace, that is what it was created for :)

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