Re: usbserial behaviour in kernels 2.6.34 <-> 2.6.37

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

 



Hello,


sorry for my late reply.

schrieb Greg KH on 24.07.2011 05:20:
> On Fri, Jul 22, 2011 at 03:16:13PM +0200, Georg Beyerle wrote:
>> I access external hardware thru usbserial:
>>
>> # modprobe usbserial vendor=0xNNNN product=0xN
>>
>> With kernel 2.6.34 (version 2.6.34.8-0.2-default,
>> OpenSUSE 11.3) it was possible to remove usbserial
>> without physically disconnecting this device:
>>
>> # modprobe -r usbserial
>>
>> With kernel 2.6.37 (version 2.6.37.6-0.5-default,
>> OpenSUSE 11.4) this no longer works, removal of
>> usbserial fails with:
>>
>> # modprobe -r usbserial
>> FATAL: Module usbserial is in use.
>>
>> The device needs to be disconnected before removal
>> of the module succeeds. Is there an option to get
>> back the original (2.6.34) behaviour?
> 
> I doubt this really worked the same way in .34.  You must still have a
> device node open in .37, which is keeping the module from being
> unloaded.

Yes, you're right. It turns out that in OpenSUSE 11.4 ModemManager
grabs the device /dev/ttyUSB0:

# lsof /dev/ttyUSB0
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
modem-man 1280 root   23u   CHR  188,0      0t0 14224 /dev/ttyUSB0

Uninstalling ModemManager solves the problem; I apologize
for the waste of bandwidth.

> Why would you want to unload the module anyway?

The external device has to be re-booted (command is sent via RS232,
USB link is only for data transfer) at a certain stage and this process
requires unloading/re-loading of 'usbserial'.


Thanks

Georg
--
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