On Sun, Nov 28, 2010 at 4:38 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm