mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
phy: nop-phy: Fix enabling reset
The reset function should place the phy into reset, while the init function should take the phy out of reset. Currently the reset function takes it out of reset, and the init calls the reset. Signed-off-by: Adam Ford <aford173@gmail.com>
This commit is contained in:
parent
ac0c125b7e
commit
f9852acdce
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,7 @@ static int nop_phy_reset(struct phy *phy)
|
||||||
if (!dm_gpio_is_valid(&priv->reset_gpio))
|
if (!dm_gpio_is_valid(&priv->reset_gpio))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return dm_gpio_set_value(&priv->reset_gpio, false);
|
return dm_gpio_set_value(&priv->reset_gpio, true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@ static int nop_phy_init(struct phy *phy)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(DM_GPIO)
|
#if CONFIG_IS_ENABLED(DM_GPIO)
|
||||||
ret = nop_phy_reset(phy);
|
/* Take phy out of reset */
|
||||||
|
ret = dm_gpio_set_value(&priv->reset_gpio, false);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if (CONFIG_IS_ENABLED(CLK))
|
if (CONFIG_IS_ENABLED(CLK))
|
||||||
clk_disable_bulk(&priv->bulk);
|
clk_disable_bulk(&priv->bulk);
|
||||||
|
|
Loading…
Reference in a new issue