All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: linux-usb@vger.kernel.org,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: [3/4] usb: host: xhci-plat: revert "usb: host: xhci-plat: enable clk in resume timing"
Date: Thu, 8 Mar 2018 09:06:18 -0800	[thread overview]
Message-ID: <20180308170618.GA13908@kroah.com> (raw)

On Thu, Mar 08, 2018 at 05:17:16PM +0200, Mathias Nyman wrote:
> From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> 
> This patch reverts the commit 835e4241e714 ("usb: host: xhci-plat:
> enable clk in resume timing") because this driver also has runtime PM
> and the commit 560869100b99 ("clk: renesas: cpg-mssr: Restore module
> clocks during resume") will restore the clock on R-Car H3 environment.
> 
> If the xhci_plat_suspend() disables the clk, the system cannot enable
> the clk in resume like the following behavior:
> 
> < In resume >
>  - genpd_resume_noirq() runs and enable the clk (enable_count = 1)
>  - cpg_mssr_resume_noirq() restores the clk register.
>   -- Since the clk was disabled in suspend, cpg_mssr_resume_noirq()
>      will disable the clk and keep the enable_count.
>  - Even if xhci_plat_resume() calls clk_prepare_enable(), since
>    the enable_count is 1, the clk will be not enabled.
> 
> After this patch is applied, the cpg-mssr driver will save the clk
> as enable, so the clk will be enabled in resume.
> 
> Fixes: 835e4241e714 ("usb: host: xhci-plat: enable clk in resume timing")
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>

This really should go to 4.15-stable, right?  I'll go add the tag if
needed, but want your confirmation first.

thanks,

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

             reply	other threads:[~2018-03-08 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-08 17:06 Greg Kroah-Hartman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-03-13  6:15 [3/4] usb: host: xhci-plat: revert "usb: host: xhci-plat: enable clk in resume timing" Yoshihiro Shimoda
2018-03-09 17:07 Greg Kroah-Hartman
2018-03-09  1:48 Yoshihiro Shimoda
2018-03-08 15:17 Mathias Nyman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180308170618.GA13908@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    --cc=yoshihiro.shimoda.uh@renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.