[PATCH 062/102] phy: sun9i-usb: explicitly request exclusive reset control

Philipp Zabel p.zabel at pengutronix.de
Wed Jul 19 08:26:06 PDT 2017


Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.

No functional changes.

Cc: Kishon Vijay Abraham I <kishon at ti.com>
Cc: Maxime Ripard <maxime.ripard at free-electrons.com>
Cc: Chen-Yu Tsai <wens at csie.org>
Cc: linux-arm-kernel at lists.infradead.org
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 drivers/phy/allwinner/phy-sun9i-usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/allwinner/phy-sun9i-usb.c b/drivers/phy/allwinner/phy-sun9i-usb.c
index 28fce4bce638e..a07aa04a88ed8 100644
--- a/drivers/phy/allwinner/phy-sun9i-usb.c
+++ b/drivers/phy/allwinner/phy-sun9i-usb.c
@@ -146,7 +146,7 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
 			return PTR_ERR(phy->hsic_clk);
 		}
 
-		phy->reset = devm_reset_control_get(dev, "hsic");
+		phy->reset = devm_reset_control_get_exclusive(dev, "hsic");
 		if (IS_ERR(phy->reset)) {
 			dev_err(dev, "failed to get reset control\n");
 			return PTR_ERR(phy->reset);
@@ -158,7 +158,7 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
 			return PTR_ERR(phy->clk);
 		}
 
-		phy->reset = devm_reset_control_get(dev, "phy");
+		phy->reset = devm_reset_control_get_exclusive(dev, "phy");
 		if (IS_ERR(phy->reset)) {
 			dev_err(dev, "failed to get reset control\n");
 			return PTR_ERR(phy->reset);
-- 
2.11.0




More information about the linux-arm-kernel mailing list