提交 5acefd4a 编写于 作者: M Martin Blumenstingl 提交者: Kishon Vijay Abraham I

phy: meson8b-usb2: request a shared reset line

Both PHYs are sharing one reset line. With recent improvements to the
reset framework we can now also use reset_control_reset with shared
resets.
This allows us to drop some workarounds where the reset was only
specified for one PHY but not the other, to make sure that the reset it
only executed once (as the reset framework was not able to use
reset_control_reset with shared reset lines).
Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 f42bec19
...@@ -240,8 +240,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev) ...@@ -240,8 +240,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
if (IS_ERR(priv->clk_usb)) if (IS_ERR(priv->clk_usb))
return PTR_ERR(priv->clk_usb); return PTR_ERR(priv->clk_usb);
priv->reset = devm_reset_control_get_optional_exclusive(&pdev->dev, priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
NULL);
if (PTR_ERR(priv->reset) == -EPROBE_DEFER) if (PTR_ERR(priv->reset) == -EPROBE_DEFER)
return PTR_ERR(priv->reset); return PTR_ERR(priv->reset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册