From 7be79a3ab2861ca815d448e4055bcdce316a6c92 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 23 Oct 2019 00:26:23 +0200 Subject: 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 --- target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3