aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-05-12 09:26:43 +0200
committerDavid Bauer <mail@david-bauer.net>2023-05-12 09:38:58 +0200
commit7890dd75adc6bf202e8b9841f361dde2f7b5e6fb (patch)
treef1a21649aa57d4012e81efd01c5a285ea42c3282 /target/linux/generic
parent5ca3386c8a156f0feb659bacffd88306a82f5545 (diff)
downloadupstream-7890dd75adc6bf202e8b9841f361dde2f7b5e6fb.tar.gz
upstream-7890dd75adc6bf202e8b9841f361dde2f7b5e6fb.tar.bz2
upstream-7890dd75adc6bf202e8b9841f361dde2f7b5e6fb.zip
ramips: fix mt7621 kernel compilation
The OF LED configuration patch fails on MT7621, as the necessary headers were only included for the mediatek subtarget with an additional patch. Fixes: 242fe8634eba ("generic: add hack for MT753x LED configuration") Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/hack-5.15/766-net-phy-mediatek-ge-add-LED-configuration-interface.patch10
1 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/generic/hack-5.15/766-net-phy-mediatek-ge-add-LED-configuration-interface.patch b/target/linux/generic/hack-5.15/766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
index a69ec97ca3..3405d5c535 100644
--- a/target/linux/generic/hack-5.15/766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
+++ b/target/linux/generic/hack-5.15/766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
@@ -17,7 +17,13 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
--- a/drivers/net/phy/mediatek-ge.c
+++ b/drivers/net/phy/mediatek-ge.c
-@@ -53,6 +53,36 @@ static int mt7530_phy_config_init(struct
+@@ -1,4 +1,5 @@
+ // SPDX-License-Identifier: GPL-2.0+
++#include <linux/of.h>
+ #include <linux/bitfield.h>
+ #include <linux/module.h>
+ #include <linux/phy.h>
+@@ -53,6 +54,36 @@ static int mt7530_phy_config_init(struct
return 0;
}
@@ -54,7 +60,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
static int mt7531_phy_config_init(struct phy_device *phydev)
{
mtk_gephy_config_init(phydev);
-@@ -65,6 +95,9 @@ static int mt7531_phy_config_init(struct
+@@ -65,6 +96,9 @@ static int mt7531_phy_config_init(struct
phy_write_mmd(phydev, MDIO_MMD_VEND1, 0x13, 0x404);
phy_write_mmd(phydev, MDIO_MMD_VEND1, 0x14, 0x404);