phy: tegra: xusb: Parse dual-role mode property
authorThierry Reding <treding@nvidia.com>
Thu, 21 Feb 2019 15:46:32 +0000 (16:46 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Apr 2019 08:42:43 +0000 (14:12 +0530)
commit5311a7b89502592045812f97294f756b1fca132b
treecd68e9bdd9c2836fefa65bd151a96441006965ce
parent3cffa0818dc82a90d1a3df5ea7111999cb7b8646
phy: tegra: xusb: Parse dual-role mode property

The device tree bindings document the "mode" property of "ports"
subnodes, but the driver was not parsing the property. In preparation
for adding role switching, parse the property at probe time.

Based on work by JC Kuo <jckuo@nvidia.com>.

Reviewed-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/tegra/xusb.c
drivers/phy/tegra/xusb.h