phy: tegra: xusb: Enable usb role switch attribute
authorWayne Chang <waynec@nvidia.com>
Wed, 28 Sep 2022 12:56:40 +0000 (20:56 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Sep 2022 05:42:31 +0000 (11:12 +0530)
commit03b756d293484057b4248695345f4344b174af00
tree0c2c5fc8330fbc37e9cd678635c9873d85a9f04e
parent84513eccd67804c02a0c42017bc7eaa4ad112478
phy: tegra: xusb: Enable usb role switch attribute

This patch enables the usb-role-switch attribute and lets users check
the current device role of the otg capability ports

Signed-off-by: Wayne Chang <waynec@nvidia.com>
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
Link: https://lore.kernel.org/r/20220928125640.2219402-1-haotienh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb.c