diff --git a/target/linux/ipq806x/patches-5.10/999-09-of-net-return.patch b/target/linux/ipq806x/patches-5.10/999-09-of-net-return.patch new file mode 100644 index 0000000000..3d6d31a594 --- /dev/null +++ b/target/linux/ipq806x/patches-5.10/999-09-of-net-return.patch @@ -0,0 +1,11 @@ +--- a/drivers/of/of_net.c ++++ b/drivers/of/of_net.c +@@ -39,7 +39,7 @@ int of_get_phy_mode(struct device_node * + for (i = 0; i < PHY_INTERFACE_MODE_MAX; i++) + if (!strcasecmp(pm, phy_modes(i))) { + *interface = i; +- return 0; ++ return i; + } + + return -ENODEV;