- fix-gregkh-usb-usb-flush-outstanding-urbs-when-suspending.patch removed from -mm tree

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

 



The patch titled
     USB: don't propagate FREEZE or PRETHAW suspends
has been removed from the -mm tree.  Its filename was
     fix-gregkh-usb-usb-flush-outstanding-urbs-when-suspending.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: USB: don't propagate FREEZE or PRETHAW suspends
From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

This patch (as992) fixes a recently-added bug.  During a FREEZE or PRETHAW
suspend notification, non-root devices don't actually get suspended.  So we
shouldn't tell their parent hubs that they did.

(This code path used to be skipped over, until the FREEZE/PRETHAW test got
moved out of usb_suspend_both() into generic_suspend().)

Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/usb/core/driver.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff -puN drivers/usb/core/driver.c~fix-gregkh-usb-usb-flush-outstanding-urbs-when-suspending drivers/usb/core/driver.c
--- a/drivers/usb/core/driver.c~fix-gregkh-usb-usb-flush-outstanding-urbs-when-suspending
+++ a/drivers/usb/core/driver.c
@@ -1097,7 +1097,12 @@ static int usb_suspend_both(struct usb_d
 			usb_hcd_flush_endpoint(udev, udev->ep_out[i]);
 			usb_hcd_flush_endpoint(udev, udev->ep_in[i]);
 		}
-		if (parent)
+
+		/* If this is just a FREEZE or a PRETHAW, udev might
+		 * not really be suspended.  Only true suspends get
+		 * propagated up the device tree.
+		 */
+		if (parent && udev->state == USB_STATE_SUSPENDED)
 			usb_autosuspend_device(parent);
 	}
 
_

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

scsi-early-detection-of-medium-not-present-updated.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