Re: more than 255 usbserial interfaces

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

 



Bjørn Mork <bjorn@xxxxxxx> writes:
> Italo Migotto <imigotto@xxxxxxxxx> writes:
>
>> they are modems. yes, I only use one of the interfaces, but couldn´t
>> find a way to unbind individual interfaces, only the whole device.
>
> You can unbind individual ports like this:
>
>  echo ttyUSB0 > /sys/bus/usb-serial/drivers/<drivername>/unbind 

Sorry.  That didn't work as expected.  Should be fixed...

But you can unbind from the USB driver if you find the matching USB
interface first:

nemi:/tmp# ls -l /sys/bus/usb-serial/drivers/option1/
total 0
--w------- 1 root root 4096 Jun  8 09:15 bind
lrwxrwxrwx 1 root root    0 Jun  8 09:15 module -> ../../../../module/option
-rw-r--r-- 1 root root 4096 Jun  8 09:15 new_id
lrwxrwxrwx 1 root root    0 Jun  8 09:28 ttyUSB3 -> ../../../../devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/ttyUSB3
lrwxrwxrwx 1 root root    0 Jun  8 09:23 ttyUSB4 -> ../../../../devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.1/ttyUSB4
lrwxrwxrwx 1 root root    0 Jun  8 09:23 ttyUSB5 -> ../../../../devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.2/ttyUSB5
--w------- 1 root root 4096 Jun  8 09:15 uevent
--w------- 1 root root 4096 Jun  8 09:15 unbind


So, unbinding ttyUSB3:

echo 2-1:1.0 > /sys/bus/usb/drivers/option/unbind



Bjørn
--
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