RE: [RFT] usb: Disable Link PM if setting device-initiated timeout fails.

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

 



From: Sarah Sharp
> Yoma, can you apply this patch and see if it helps your issue?

Helped a lot on my amd system with the ASMedia controller.

	David

...
> > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
> > index 64ea21971be2..74a69b887346 100644
> > --- a/drivers/usb/core/hub.c
> > +++ b/drivers/usb/core/hub.c
> > @@ -3651,7 +3651,8 @@ static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device
> *udev,
> >
> >  	/* Only a configured device will accept the Set Feature U1/U2_ENABLE */
> >  	else if (udev->actconfig)
> > -		usb_set_device_initiated_lpm(udev, state, true);
> > +		if (usb_set_device_initiated_lpm(udev, state, true))
> > +			hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state);
> >
> >  }


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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux