public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume
@ 2017-02-20 15:48 Robert Foss
  2017-02-21 11:08 ` Mathias Nyman
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Foss @ 2017-02-20 15:48 UTC (permalink / raw)
  To: mathias.nyman, gregkh, linux-usb, linux-kernel, Julius Werner,
	Andrew Bresticker, Felipe Balbi, Brian Norris, Baolin Wang
  Cc: Robert Foss

From: Andrew Bresticker <abrestic@chromium.org>

USB host controllers can take a significant amount of time to suspend
and resume, adding several hundred miliseconds to the kernel resume
time. Since the XHCI controller has no outside dependencies (other than
clocks, which are suspended late/resumed early), allow it to suspend and
resume asynchronously.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
---

Changes since v8:
 - Rebased on upstream/master
 - Added r-b of Baolin Wang


 drivers/usb/host/xhci-plat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index e5834dd9bcde..8ef34fe4d5c0 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -255,6 +255,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
 	if (ret)
 		goto dealloc_usb2_hcd;
 
+	device_enable_async_suspend(&pdev->dev);
+
 	return 0;
 
 
-- 
2.11.0.453.g787f75f05

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume
  2017-02-20 15:48 [PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume Robert Foss
@ 2017-02-21 11:08 ` Mathias Nyman
  0 siblings, 0 replies; 2+ messages in thread
From: Mathias Nyman @ 2017-02-21 11:08 UTC (permalink / raw)
  To: Robert Foss, mathias.nyman, gregkh, linux-usb, linux-kernel,
	Julius Werner, Andrew Bresticker, Felipe Balbi, Brian Norris,
	Baolin Wang

On 20.02.2017 17:48, Robert Foss wrote:
> From: Andrew Bresticker <abrestic@chromium.org>
>
> USB host controllers can take a significant amount of time to suspend
> and resume, adding several hundred miliseconds to the kernel resume
> time. Since the XHCI controller has no outside dependencies (other than
> clocks, which are suspended late/resumed early), allow it to suspend and
> resume asynchronously.
>
> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
> Tested-by: Andrew Bresticker <abrestic@chromium.org>
> Tested-by: Robert Foss <robert.foss@collabora.com>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>
> Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
> ---
>
> Changes since v8:
>   - Rebased on upstream/master
>   - Added r-b of Baolin Wang
>
>
>   drivers/usb/host/xhci-plat.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index e5834dd9bcde..8ef34fe4d5c0 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -255,6 +255,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
>   	if (ret)
>   		goto dealloc_usb2_hcd;
>
> +	device_enable_async_suspend(&pdev->dev);
> +
>   	return 0;
>

Thanks, added to queue

-Mathias

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-21 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-20 15:48 [PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume Robert Foss
2017-02-21 11:08 ` Mathias Nyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox