|
@@ -367,6 +367,10 @@ static int usb_probe_interface(struct device *dev)
|
|
intf->condition = USB_INTERFACE_UNBOUND;
|
|
intf->condition = USB_INTERFACE_UNBOUND;
|
|
usb_cancel_queued_reset(intf);
|
|
usb_cancel_queued_reset(intf);
|
|
|
|
|
|
|
|
+ /* If the LPM disable succeeded, balance the ref counts. */
|
|
|
|
+ if (!lpm_disable_error)
|
|
|
|
+ usb_unlocked_enable_lpm(udev);
|
|
|
|
+
|
|
/* Unbound interfaces are always runtime-PM-disabled and -suspended */
|
|
/* Unbound interfaces are always runtime-PM-disabled and -suspended */
|
|
if (driver->supports_autosuspend)
|
|
if (driver->supports_autosuspend)
|
|
pm_runtime_disable(dev);
|
|
pm_runtime_disable(dev);
|