usb: host: xhci-plat: revert "usb: host: xhci-plat: enable clk in resume timing"
Greg Kroah-Hartman
maintainerPATCH 3/4 usb: host: xhci-plat: revert "usb: host: xhci-plat: enable clk in resume timing"
Quoted 26 lines · Yoshihiro Shimoda
Hi Greg,
Quoted 24 lines
From: Greg KH, Sent: Friday, March 9, 2018 2:06 AM
Quoted 21 lines · Mathias Nyman
From: Yoshihiro Shimoda <[email protected]>
This patch reverts the commit
835e4241e714("usb: host: xhci-plat:
enable clk in resume timing") because this driver also has runtime PM and the commit560869100b99("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 theenable_count.
- Even ifxhci_plat_resume()callsclk_prepare_enable(), since theenable_countis 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.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Fixes 835e4241e714 ("usb: host: xhci-plat: enable clk in resume timing")Signed-off-by Yoshihiro Shimoda <[email protected]>Signed-off-by Mathias Nyman <[email protected]>This really should go to 4.15-stable, right? I'll go add the tag if needed, but want your confirmation first.
Since 4.15 is not longterm release, I think Renesas will not consume 4.15.
But it fixes a bug in 4.15, so someone might care :)
Quoted 2 lines
So, I don't think this really should go to 4.15-stable.
In such case, should I not add Fixes: tag? If not, I'll be careful in the future.
No, the fixes tag was great. I'll just leave it as-is.
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html