The GMAC typically does not need to be reset prior to being operational.

Remove the strict dependency on reset controls and DM_RESET being
enabled to and allow GMAC to probe without any reset controls being
defined in DT or the existence of a fully functional reset driver during
SoC bringup.

Signed-off-by: Jonas Karlman <[email protected]>
---
 drivers/net/dwc_eth_qos_rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dwc_eth_qos_rockchip.c 
b/drivers/net/dwc_eth_qos_rockchip.c
index 4ccefda0ef5e..04bc6006bc3c 100644
--- a/drivers/net/dwc_eth_qos_rockchip.c
+++ b/drivers/net/dwc_eth_qos_rockchip.c
@@ -744,7 +744,7 @@ static int eqos_probe_resources_rk(struct udevice *dev)
        }
 
        ret = reset_get_bulk(dev, &data->resets);
-       if (ret < 0)
+       if (ret && ret != -ENOENT && ret != -ENOTSUPP)
                goto err_free;
 
        reset_assert_bulk(&data->resets);
-- 
2.55.0

Reply via email to