Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1584314 > unrolled thread

Re: [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume

Started byBaolin Wang <baolin.wang@linaro.org>
First post2017-02-20 04:00 +0100
Last post2017-02-20 04:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume Baolin Wang <baolin.wang@linaro.org> - 2017-02-20 04:00 +0100

#1584314 — Re: [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume

FromBaolin Wang <baolin.wang@linaro.org>
Date2017-02-20 04:00 +0100
SubjectRe: [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume
Message-ID<tcMmJ-7c2-1@gated-at.bofh.it>
On 10 February 2017 at 22:56, Robert Foss <robert.foss@collabora.com> 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>
> ---
>  drivers/usb/host/xhci-plat.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index 3cf8e120c620..4d6741a0d8f8 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -257,6 +257,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
>
>         pm_runtime_set_active(&pdev->dev);
>         pm_runtime_enable(&pdev->dev);
> +       device_enable_async_suspend(&pdev->dev);
>
>         return 0;
>
> --
> 2.11.0.453.g787f75f05
>

Reviewed-by: Baolin Wang <baolin.wang@linaro.org>

-- 
Baolin.wang
Best Regards

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web