Skip to contentSkip to conversation

BUG, regression. usb-serial adapter broken by PM?

DISCUSSION Benjamin Poirier 2 participants 5 messages Nov 30, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

Recently, my usb-serial converter has become unusable. Attempts to open the device always fail with:
open("/dev/ttyUSB0", O_RDONLY) = -1 EAGAIN (Resource temporarily unavailable)

The device is a:
ID 0c52:2101 Sealevel Systems, Inc. Serial Converter and uses the ftdi_sio driver.

I've bisected this problem to
commit 1bfee5bc86fdaecc912e06080583eddab7263df2

Author: Alan Stern <[email protected]>
Date:   Sat Sep 25 23:35:00 2010 +0200

PM / Runtime: Merge synchronous and async runtime routines

I have other usb-serial converters that use other drivers and that are unaffected. I have noticed the problem on a x86_64 machine (.config
here: http://pastebin.ca/2006414) and can reproduce it in kvm (with usb passthrough, .config here: http://pastebin.ca/2006416).

I'll be glad to provide more info or try patches.

Thanks,
-Ben

#1 lore raw
Quoted 15 lines · Benjamin Poirier

Hello,

Recently, my usb-serial converter has become unusable. Attempts to open the device always fail with:
open("/dev/ttyUSB0", O_RDONLY) = -1 EAGAIN (Resource temporarily unavailable)

The device is a:
ID 0c52:2101 Sealevel Systems, Inc. Serial Converter and uses the ftdi_sio driver.

I've bisected this problem to
commit 1bfee5bc86fdaecc912e06080583eddab7263df2

Author: Alan Stern <[email protected]>
Date:   Sat Sep 25 23:35:00 2010 +0200
Quoted 8 lines

PM / Runtime: Merge synchronous and async runtime routines

I have other usb-serial converters that use other drivers and that are unaffected. I have noticed the problem on a x86_64 machine (.config
here: http://pastebin.ca/2006414) and can reproduce it in kvm (with usb passthrough, .config here: http://pastebin.ca/2006416).

I'll be glad to provide more info or try patches.

A patch to resolve this was sent to [email protected] yesterday, can you try that one out (sorry, can't dig it out at the moment...)

thanks,

greg k-h

#2 lore raw
In reply to Benjamin Poirier
Quoted 15 lines · Benjamin Poirier

Hello,

Recently, my usb-serial converter has become unusable. Attempts to open the device always fail with:
open("/dev/ttyUSB0", O_RDONLY) = -1 EAGAIN (Resource temporarily unavailable)

The device is a:
ID 0c52:2101 Sealevel Systems, Inc. Serial Converter and uses the ftdi_sio driver.

I've bisected this problem to
commit 1bfee5bc86fdaecc912e06080583eddab7263df2

Author: Alan Stern <[email protected]>
Date:   Sat Sep 25 23:35:00 2010 +0200
Quoted 8 lines

PM / Runtime: Merge synchronous and async runtime routines

I have other usb-serial converters that use other drivers and that are unaffected. I have noticed the problem on a x86_64 machine (.config
here: http://pastebin.ca/2006414) and can reproduce it in kvm (with usb passthrough, .config here: http://pastebin.ca/2006416).

I'll be glad to provide more info or try patches.

A patch to resolve this was sent to [email protected] yesterday, can you try that one out (sorry, can't dig it out at the moment...)

thanks,

greg k-h

#3 lore raw
Quoted 23 lines · Greg KH
Quoted 22 lines · Benjamin Poirier

Hello,

Recently, my usb-serial converter has become unusable. Attempts to open the device always fail with:
open("/dev/ttyUSB0", O_RDONLY) = -1 EAGAIN (Resource temporarily unavailable)

The device is a:
ID 0c52:2101 Sealevel Systems, Inc. Serial Converter and uses the ftdi_sio driver.

I've bisected this problem to
commit 1bfee5bc86fdaecc912e06080583eddab7263df2

Author: Alan Stern <[email protected]>
Date:   Sat Sep 25 23:35:00 2010 +0200

PM / Runtime: Merge synchronous and async runtime routines

I have other usb-serial converters that use other drivers and that are unaffected. I have noticed the problem on a x86_64 machine (.config
here: http://pastebin.ca/2006414) and can reproduce it in kvm (with usb passthrough, .config here: http://pastebin.ca/2006416).

Quoted 4 lines
Quoted 1 line

I'll be glad to provide more info or try patches.

A patch to resolve this was sent to [email protected] yesterday, can you try that one out (sorry, can't dig it out at the moment...)

I think that's the one:
http://www.spinics.net/lists/linux-usb/msg39257.html

It indeed fixes the problem. Thanks!

btw. it seems I was late to the game, I should've checked bugzilla too,
https://bugzilla.kernel.org/show_bug.cgi?id=23012

-Ben

Quoted 4 lines

thanks,

greg k-h

#4 lore raw
In reply to Greg KH
Quoted 23 lines · Greg KH
Quoted 22 lines · Benjamin Poirier

Hello,

Recently, my usb-serial converter has become unusable. Attempts to open the device always fail with:
open("/dev/ttyUSB0", O_RDONLY) = -1 EAGAIN (Resource temporarily unavailable)

The device is a:
ID 0c52:2101 Sealevel Systems, Inc. Serial Converter and uses the ftdi_sio driver.

I've bisected this problem to
commit 1bfee5bc86fdaecc912e06080583eddab7263df2

Author: Alan Stern <[email protected]>
Date:   Sat Sep 25 23:35:00 2010 +0200

PM / Runtime: Merge synchronous and async runtime routines

I have other usb-serial converters that use other drivers and that are unaffected. I have noticed the problem on a x86_64 machine (.config
here: http://pastebin.ca/2006414) and can reproduce it in kvm (with usb passthrough, .config here: http://pastebin.ca/2006416).

Quoted 4 lines
Quoted 1 line

I'll be glad to provide more info or try patches.

A patch to resolve this was sent to [email protected] yesterday, can you try that one out (sorry, can't dig it out at the moment...)

I think that's the one:
http://www.spinics.net/lists/linux-usb/msg39257.html

It indeed fixes the problem. Thanks!

btw. it seems I was late to the game, I should've checked bugzilla too,
https://bugzilla.kernel.org/show_bug.cgi?id=23012

-Ben

Quoted 4 lines

thanks,

greg k-h