+ ohci-disallow-autostop-when-wakeup-is-disabled.patch added to -mm tree

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

 



The patch titled
     OHCI: disallow autostop when wakeup is disabled
has been added to the -mm tree.  Its filename is
     ohci-disallow-autostop-when-wakeup-is-disabled.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: OHCI: disallow autostop when wakeup is disabled
From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

This patch (as822) prevents the OHCI autostop mechanism from starting
up if the root hub is not able or not allowed to issue wakeup requests.

Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/usb/host/ohci-hub.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/usb/host/ohci-hub.c~ohci-disallow-autostop-when-wakeup-is-disabled drivers/usb/host/ohci-hub.c
--- a/drivers/usb/host/ohci-hub.c~ohci-disallow-autostop-when-wakeup-is-disabled
+++ a/drivers/usb/host/ohci-hub.c
@@ -406,7 +406,8 @@ ohci_hub_status_data (struct usb_hcd *hc
 				ohci->autostop = 0;
 				ohci->next_statechange = jiffies +
 						STATECHANGE_DELAY;
-			} else if (time_after_eq (jiffies,
+			} else if (device_may_wakeup(&hcd->self.root_hub->dev)
+					&& time_after_eq(jiffies,
 						ohci->next_statechange)
 					&& !ohci->ed_rm_list
 					&& !(ohci->hc_control &
_

Patches currently in -mm which might be from stern@xxxxxxxxxxxxxxxxxxx are

origin.patch
ohci-disallow-autostop-when-wakeup-is-disabled.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux