summaryrefslogtreecommitdiffstats
path: root/drivers/phy/tegra/xusb.h
diff options
context:
space:
mode:
authorJC Kuo <jckuo@nvidia.com>2021-01-20 15:34:03 +0800
committerThierry Reding <treding@nvidia.com>2021-06-03 14:49:33 +0200
commit23d5ec3f02866be6be3f47eab01771f1cf445a68 (patch)
tree5927ea34b078f7a4dedfdf6f4a9d8cd525678820 /drivers/phy/tegra/xusb.h
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-stable-23d5ec3f02866be6be3f47eab01771f1cf445a68.tar.gz
linux-stable-23d5ec3f02866be6be3f47eab01771f1cf445a68.tar.bz2
linux-stable-23d5ec3f02866be6be3f47eab01771f1cf445a68.zip
phy: tegra: xusb: Move usb3 port init for Tegra210
The programming sequence in tegra210_usb3_port_enable() is required for both cold boot and SC7 exit, and must be performed only after PEX/SATA UPHY is initialized. Therefore, this commit moves the programming sequence to tegra210_usb3_phy_power_on(). PCIE/SATA phy .power_on() stub will invoke tegra210_usb3_phy_power_on() if the lane is assigned for XUSB super-speed. Signed-off-by: JC Kuo <jckuo@nvidia.com> Acked-By: Vinod Koul <vkoul@kernel.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/phy/tegra/xusb.h')
-rw-r--r--drivers/phy/tegra/xusb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/phy/tegra/xusb.h b/drivers/phy/tegra/xusb.h
index ea35af747066..37a5550a84ac 100644
--- a/drivers/phy/tegra/xusb.h
+++ b/drivers/phy/tegra/xusb.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
- * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2015, Google Inc.
*/
@@ -128,6 +128,8 @@ struct tegra_xusb_lane_ops {
void (*remove)(struct tegra_xusb_lane *lane);
};
+bool tegra_xusb_lane_check(struct tegra_xusb_lane *lane, const char *function);
+
/*
* pads
*/