|
@@ -1112,7 +1112,12 @@ static int usb_suspend_both(struct usb_device *udev, pm_message_t msg)
|
|
|
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);
|
|
|
}
|
|
|
|