From 785eb703a401eac09dc859795b8f77af0de9e70b Mon Sep 17 00:00:00 2001 From: ACwifidude Date: Sun, 6 Feb 2022 10:55:41 -0600 Subject: [PATCH] ipq806x: of net return patch --- .../ipq806x/patches-5.10/999-09-of-net-return.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/ipq806x/patches-5.10/999-09-of-net-return.patch 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;