]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a67a5aff1bf5fdea146727110e89e9d5f887530
treecd68e9bdd9c2836fefa65bd151a96441006965ce
parent030fcbbb19c680e8caa1f028ee3011b550256451
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