aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2021-09-11 23:24:35 +0200
committerMathias Kresin <dev@kresin.me>2021-11-27 21:45:04 +0100
commit1c68494f677c40966fdd5b86e4ac3d618a2f469d (patch)
tree95e5ee91b1ac85b335a0341889053b70e17f5f44 /target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch
parent2f3331ea7fec5bc53a2797a497ec76393bc07599 (diff)
downloadupstream-1c68494f677c40966fdd5b86e4ac3d618a2f469d.tar.gz
upstream-1c68494f677c40966fdd5b86e4ac3d618a2f469d.tar.bz2
upstream-1c68494f677c40966fdd5b86e4ac3d618a2f469d.zip
lantiq: drop kernel 5.4 support
The current state of the kernel 5.4 support is in the openwrt-21.02 branch. No need to keep a not default used kernel in this branch. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [VRX268/ bthub5]
Diffstat (limited to 'target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch')
-rw-r--r--target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch b/target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch
deleted file mode 100644
index 2cc541ae3c..0000000000
--- a/target/linux/lantiq/patches-5.4/0701-NET-lantiq-etop-of-mido.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- a/drivers/net/ethernet/lantiq_etop.c
-+++ b/drivers/net/ethernet/lantiq_etop.c
-@@ -30,6 +30,7 @@
- #include <linux/of_net.h>
- #include <linux/of_irq.h>
- #include <linux/of_platform.h>
-+#include <linux/of_mdio.h>
-
- #include <asm/checksum.h>
-
-@@ -553,7 +554,8 @@ static int
- ltq_etop_mdio_init(struct net_device *dev)
- {
- struct ltq_etop_priv *priv = netdev_priv(dev);
-- int err;
-+ struct device_node *mdio_np = NULL;
-+ int err, ret;
-
- priv->mii_bus = mdiobus_alloc();
- if (!priv->mii_bus) {
-@@ -573,7 +575,15 @@ ltq_etop_mdio_init(struct net_device *de
- priv->mii_bus->name = "ltq_mii";
- snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
- priv->pdev->name, priv->pdev->id);
-- if (mdiobus_register(priv->mii_bus)) {
-+
-+ mdio_np = of_get_child_by_name(priv->pdev->dev.of_node, "mdio-bus");
-+
-+ if (mdio_np)
-+ ret = of_mdiobus_register(priv->mii_bus, mdio_np);
-+ else
-+ ret = mdiobus_register(priv->mii_bus);
-+
-+ if (ret) {
- err = -ENXIO;
- goto err_out_free_mdiobus;
- }