From: David Bauer <mail@david-bauer.net>
Date: Tue, 22 Oct 2019 22:26:23 +0000 (+0200)
Subject: ipq40xx: fix ethernet probe abort on missing phy-reset
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7be79a3ab2861ca815d448e4055bcdce316a6c92;p=openwrt%2Fstaging%2Fdedeckeh.git

ipq40xx: fix ethernet probe abort on missing phy-reset

This commit completely fixes the abortion of the ipq40xx ethernet driver
probe in case no phy-reset is defined.

Signed-off-by: David Bauer <mail@david-bauer.net>
---

diff --git a/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch b/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
index a37c1e36f8..20d0faa472 100644
--- a/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
+++ b/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
@@ -186,7 +186,7 @@ index 000000000..88fe5dc2b
 +	ret = of_get_named_gpio(mdio_node, "phy-reset-gpio", 0);
 +	if (ret < 0) {
 +		dev_err(&pdev->dev, "Could not find phy-reset-gpio\n");
-+		return ret;
++		return 0;
 +	}
 +
 +	phy_reset_gpio_number = ret;