]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.16-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Sep 2014 22:34:08 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Sep 2014 22:34:08 +0000 (15:34 -0700)
added patches:
usb-fix-build-error-with-config_pm_runtime-disabled.patch

queue-3.16/series
queue-3.16/usb-fix-build-error-with-config_pm_runtime-disabled.patch [new file with mode: 0644]

index 6518a22f4dc915d62b69ff48fd6ac33f0b628a63..63a49a53d865fb35efddb444bb305aa9c568c04e 100644 (file)
@@ -123,3 +123,4 @@ nfsv3-fix-another-acl-regression.patch
 nfsv4-don-t-clear-the-open-state-when-we-just-did-an-open_downgrade.patch
 nfsv4-fix-problems-with-close-in-the-presence-of-a-delegation.patch
 vm_is_stack-use-for_each_thread-rather-then-buggy-while_each_thread.patch
+usb-fix-build-error-with-config_pm_runtime-disabled.patch
diff --git a/queue-3.16/usb-fix-build-error-with-config_pm_runtime-disabled.patch b/queue-3.16/usb-fix-build-error-with-config_pm_runtime-disabled.patch
new file mode 100644 (file)
index 0000000..aa2e072
--- /dev/null
@@ -0,0 +1,37 @@
+From a9ef803d740bfadf5e505fbc57efa57692e27025 Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Wed, 27 Aug 2014 16:55:29 -0700
+Subject: USB: fix build error with CONFIG_PM_RUNTIME disabled
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+commit a9ef803d740bfadf5e505fbc57efa57692e27025 upstream.
+
+commit bdd405d2a528 ("usb: hub: Prevent hub autosuspend if
+usbcore.autosuspend is -1") causes a build error if CONFIG_PM_RUNTIME is
+disabled.  Fix that by doing a simple #ifdef guard around it.
+
+Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
+Reported-by: kbuild test robot <fengguang.wu@intel.com>
+Cc: Roger Quadros <rogerq@ti.com>
+Cc: Michael Welling <mwelling@emacinc.com>
+Cc: Alan Stern <stern@rowland.harvard.edu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/usb/core/hub.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/usb/core/hub.c
++++ b/drivers/usb/core/hub.c
+@@ -1732,8 +1732,10 @@ static int hub_probe(struct usb_interfac
+        * - If user has indicated to prevent autosuspend by passing
+        *   usbcore.autosuspend = -1 then keep autosuspend disabled.
+        */
++#ifdef CONFIG_PM_RUNTIME
+       if (hdev->dev.power.autosuspend_delay >= 0)
+               pm_runtime_set_autosuspend_delay(&hdev->dev, 0);
++#endif
+       /*
+        * Hubs have proper suspend/resume support, except for root hubs