Re: can't use usb serial

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

 



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



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux