# Re: \[PATCH v6 11/15\] phy: tegra: xusb: Add wake/sleepwalk for Tegra210

- From: Thierry Reding \<hidden\>
- Date: 2021-01-19 23:53:13 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/6240469
- Thread: https://ratatoskr.run/linux-tegra/2021/01/6239619/t.md

```text
On Tue, Jan 19, 2021 at 04:55:42PM +0800, JC Kuo wrote:
> This commit implements Tegra210 XUSB PADCTL wake and sleepwalk
> routines. Sleepwalk logic is in PMC (always-on) hardware block.
> PMC driver provides managed access to the sleepwalk registers
> via regmap framework.
> 
> Signed-off-by: JC Kuo <jckuo@nvidia.com>
> ---
> v6:
>    no change
> v5:
>    no change
> v4:
>    move sleepwalk/wake stubs from 'struct tegra_xusb_padctl_ops' to
>    'struct tegra_xusb_lane_ops'
>    remove a blank line 
>    rename 'pmc_dev' with 'pdev'
>    remove 'struct device_node *np' 
>    rename label 'no_pmc' with 'out'
>    defer .probe() if PMC driver is yet to load 
> 
> v3:
>    rename 'pmc_reg" with 'regmap' and move to the top of 'struct tegra210_xusb_padctl'
>    change return data of .phy_remote_wake_detected() to 'bool'
>    change input parameter of .phy_remote_wake_detected() to 'struct phy*'
>    remove unnecessary 'else'
>    rename 'val' with 'value'
>    rename tegra_pmc_*() with tegra210_pmc_*()
>    remove VBUS ON/OFF control change
> 
>  drivers/phy/tegra/xusb-tegra210.c | 930 ++++++++++++++++++++++++++++++
>  1 file changed, 930 insertions(+)

Acked-by: Thierry Reding <redacted>
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-usb/2021/01/6240469/attachment/0) (application/pgp-signature, 833 bytes)
