lkml.org 
[lkml]   [2020]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 07/15] phy: tegra: xusb: Add sleepwalk and suspend/resume
On Wed, Sep 09, 2020 at 04:10:33PM +0800, JC Kuo wrote:
> This commit adds sleepwalk/wake and suspend/resume interfaces
> to Tegra XUSB PHY driver.
>
> Tegra XUSB host controller driver makes use of sleepwalk functions
> to enable/disable sleepwalk circuit which is in always-on partition
> and can respond to USB resume signals when controller is not powered.
> Sleepwalk can be enabled/disabled for any USB UPHY individually.
>
> - tegra_xusb_padctl_enable_phy_sleepwalk()
> - tegra_xusb_padctl_disable_phy_sleepwalk()
>
> Tegra XUSB host controller driver makes use of wake functions to
> enable/disable/query wake circuit which is in always-on partition
> can wake system up when USB resume happens.
> Wake circuit can be enabled/disabled for any USB PHY individually.
>
> - tegra_xusb_padctl_enable_phy_wake()
> - tegra_xusb_padctl_disable_phy_wake()
> - tegra_xusb_padctl_remote_wake_detected()
>
> This commit also adds two system suspend stubs that can be used to
> save and restore XUSB PADCTL context during system suspend and
> resume.
> - tegra_xusb_padctl_suspend_noirq()
> - tegra_xusb_padctl_resume_noirq()
>
> Signed-off-by: JC Kuo <jckuo@nvidia.com>
> ---
> v3:
> commit message improvement, no change in code
>
> drivers/phy/tegra/xusb.c | 73 ++++++++++++++++++++++++++++++++++
> drivers/phy/tegra/xusb.h | 9 +++++
> include/linux/phy/tegra/xusb.h | 8 ++++
> 3 files changed, 90 insertions(+)

Acked-by: Thierry Reding <treding@nvidia.com>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-09-28 15:13    [W:0.163 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site