* can't use usb serial
@ 2010-11-28 2:06 Matteo Croce
2010-11-28 3:38 ` Alan Stern
0 siblings, 1 reply; 3+ messages in thread
From: Matteo Croce @ 2010-11-28 2:06 UTC (permalink / raw)
To: Alan Stern, Rafael J. Wysocki, Greg Kroah-Hartman, Pavel Machek,
Len Brown
Cc: linux-pm
Hi,
I can't use my usb serial cable with any program, any access fails with -EAGAIN
I did a git bisect and I found that commit
1bfee5bc86fdaecc912e06080583eddab7263df2 broke it.
I got the email addresses from the MAINTAINERS file, if I bothered
anyone not involved please discard this mail
--
Matteo Croce
OpenWrt developer
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge) ------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't use usb serial
2010-11-28 2:06 can't use usb serial Matteo Croce
@ 2010-11-28 3:38 ` Alan Stern
2010-11-28 4:41 ` Matteo Croce
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2010-11-28 3:38 UTC (permalink / raw)
To: Matteo Croce; +Cc: Len Brown, linux-pm, Greg Kroah-Hartman
On Sun, 28 Nov 2010, Matteo Croce wrote:
> Hi,
> I can't use my usb serial cable with any program, any access fails with -EAGAIN
> I did a git bisect and I found that commit
> 1bfee5bc86fdaecc912e06080583eddab7263df2 broke it.
> I got the email addresses from the MAINTAINERS file, if I bothered
> anyone not involved please discard this mail
Does the patch below fix the problem?
Alan Stern
Index: usb-2.6/drivers/usb/serial/usb-serial.c
===================================================================
--- usb-2.6.orig/drivers/usb/serial/usb-serial.c
+++ usb-2.6/drivers/usb/serial/usb-serial.c
@@ -52,6 +52,7 @@ static struct usb_driver usb_serial_driv
.suspend = usb_serial_suspend,
.resume = usb_serial_resume,
.no_dynamic_id = 1,
+ .supports_autosuspend = 1,
};
/* There is no MODULE_DEVICE_TABLE for usbserial.c. Instead
@@ -1344,6 +1345,8 @@ int usb_serial_register(struct usb_seria
return -ENODEV;
fixup_generic(driver);
+ if (driver->usb_driver)
+ driver->usb_driver->supports_autosuspend = 1;
if (!driver->description)
driver->description = driver->driver.name;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't use usb serial
2010-11-28 3:38 ` Alan Stern
@ 2010-11-28 4:41 ` Matteo Croce
0 siblings, 0 replies; 3+ messages in thread
From: Matteo Croce @ 2010-11-28 4:41 UTC (permalink / raw)
To: Alan Stern; +Cc: Len Brown, linux-pm, Greg Kroah-Hartman
On Sun, Nov 28, 2010 at 4:38 AM, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Sun, 28 Nov 2010, Matteo Croce wrote:
>
>> Hi,
>> I can't use my usb serial cable with any program, any access fails with -EAGAIN
>> I did a git bisect and I found that commit
>> 1bfee5bc86fdaecc912e06080583eddab7263df2 broke it.
>> I got the email addresses from the MAINTAINERS file, if I bothered
>> anyone not involved please discard this mail
>
> Does the patch below fix the problem?
>
> Alan Stern
>
>
> Index: usb-2.6/drivers/usb/serial/usb-serial.c
> ===================================================================
> --- usb-2.6.orig/drivers/usb/serial/usb-serial.c
> +++ usb-2.6/drivers/usb/serial/usb-serial.c
> @@ -52,6 +52,7 @@ static struct usb_driver usb_serial_driv
> .suspend = usb_serial_suspend,
> .resume = usb_serial_resume,
> .no_dynamic_id = 1,
> + .supports_autosuspend = 1,
> };
>
> /* There is no MODULE_DEVICE_TABLE for usbserial.c. Instead
> @@ -1344,6 +1345,8 @@ int usb_serial_register(struct usb_seria
> return -ENODEV;
>
> fixup_generic(driver);
> + if (driver->usb_driver)
> + driver->usb_driver->supports_autosuspend = 1;
>
> if (!driver->description)
> driver->description = driver->driver.name;
>
>
>
>
Yes it does, please apply
Regards,
--
Matteo Croce
OpenWrt developer
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge) ------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-28 4:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-28 2:06 can't use usb serial Matteo Croce
2010-11-28 3:38 ` Alan Stern
2010-11-28 4:41 ` Matteo Croce
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.