diff options
author | Nagarjuna Kristam <nkristam@nvidia.com> | 2020-02-10 13:41:29 +0530 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-03-19 13:54:35 +0100 |
commit | f67213cee2b35fe169a723746b7f37debf20fa29 (patch) | |
tree | e038debc9abebc552225a96a3b9d8dc0e4271125 /drivers/phy/tegra/xusb.h | |
parent | ca9e742b5c27c230b0bf003aecba2433a60ba837 (diff) | |
download | lwn-f67213cee2b35fe169a723746b7f37debf20fa29.tar.gz lwn-f67213cee2b35fe169a723746b7f37debf20fa29.zip |
phy: tegra: xusb: Add usb-role-switch support
If usb-role-switch property is present in USB 2 port, register
usb-role-switch to receive usb role changes.
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
[treding@nvidia.com: rebase onto Greg's usb-next branch]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/phy/tegra/xusb.h')
-rw-r--r-- | drivers/phy/tegra/xusb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/tegra/xusb.h b/drivers/phy/tegra/xusb.h index da94fcce6307..9f2789984e88 100644 --- a/drivers/phy/tegra/xusb.h +++ b/drivers/phy/tegra/xusb.h @@ -12,6 +12,7 @@ #include <linux/workqueue.h> #include <linux/usb/otg.h> +#include <linux/usb/role.h> /* legacy entry points for backwards-compatibility */ int tegra_xusb_padctl_legacy_probe(struct platform_device *pdev); @@ -266,6 +267,8 @@ struct tegra_xusb_port { struct list_head list; struct device dev; + struct usb_role_switch *usb_role_sw; + const struct tegra_xusb_port_ops *ops; }; |