Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Martin Blumenstingl and committed by
Kishon Vijay Abraham I
5acefd4a f42bec19

+1 -2
+1 -2
drivers/phy/phy-meson8b-usb2.c
··· 240 240 if (IS_ERR(priv->clk_usb)) 241 241 return PTR_ERR(priv->clk_usb); 242 242 243 - priv->reset = devm_reset_control_get_optional_exclusive(&pdev->dev, 244 - NULL); 243 + priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, NULL); 245 244 if (PTR_ERR(priv->reset) == -EPROBE_DEFER) 246 245 return PTR_ERR(priv->reset); 247 246