Re: [BUG] ohci-pci: devices not detected after hibernate

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

 



On Tue, Aug 20, 2013 at 03:43:28PM -0400, Alan Stern wrote:
> On Tue, 20 Aug 2013, Steve Cotton wrote:
> 
> > Once my PC has been hibernated and resumed, some devices plugged
> > in to the on-motherboard ports stop working, and don't show up in
> > lsusb.  The pattern seems to be that ports with USB 1.1 devices
> > are affected, but ports with USB 2.0 devices are not.
> 
> My god, I can't believe this got left out!  The lines in the patch
> below should have been part of that c1117afb85 commit all along.  It's
> amazing that nobody has complained before this.
> 
> Does this patch fix the problem?
> 
> Alan Stern
> 
> 
> 
> 
> Index: usb-3.11/drivers/usb/host/ohci-pci.c
> ===================================================================
> --- usb-3.11.orig/drivers/usb/host/ohci-pci.c
> +++ usb-3.11/drivers/usb/host/ohci-pci.c
> @@ -304,6 +304,11 @@ static int __init ohci_pci_init(void)
>  	pr_info("%s: " DRIVER_DESC "\n", hcd_name);
>  
>  	ohci_init_driver(&ohci_pci_hc_driver, &pci_overrides);
> +
> +	/* Entries for the PCI suspend/resume callbacks are special */
> +	ohci_pci_hc_driver.pci_suspend = ohci_suspend;
> +	ohci_pci_hc_driver.pci_resume = ohci_resume;
> +
>  	return pci_register_driver(&ohci_pci_driver);
>  }
>  module_init(ohci_pci_init);

Thanks Alan, that patch fixes it.

Cheers,
Steve
--
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