diff options
author | David Bauer <mail@david-bauer.net> | 2023-05-12 09:26:43 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2023-05-12 09:38:58 +0200 |
commit | 7890dd75adc6bf202e8b9841f361dde2f7b5e6fb (patch) | |
tree | f1a21649aa57d4012e81efd01c5a285ea42c3282 /target/linux/mediatek | |
parent | 5ca3386c8a156f0feb659bacffd88306a82f5545 (diff) | |
download | upstream-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/mediatek')
-rw-r--r-- | target/linux/mediatek/patches-5.15/730-net-phy-add-driver-for-MediaTek-SoC-built-in-GE-PHYs.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/mediatek/patches-5.15/730-net-phy-add-driver-for-MediaTek-SoC-built-in-GE-PHYs.patch b/target/linux/mediatek/patches-5.15/730-net-phy-add-driver-for-MediaTek-SoC-built-in-GE-PHYs.patch index 790f4765ef..4e462881c2 100644 --- a/target/linux/mediatek/patches-5.15/730-net-phy-add-driver-for-MediaTek-SoC-built-in-GE-PHYs.patch +++ b/target/linux/mediatek/patches-5.15/730-net-phy-add-driver-for-MediaTek-SoC-built-in-GE-PHYs.patch @@ -55,8 +55,8 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org> help --- a/drivers/net/phy/mediatek-ge.c +++ b/drivers/net/phy/mediatek-ge.c -@@ -1,6 +1,9 @@ - // SPDX-License-Identifier: GPL-2.0+ +@@ -2,6 +2,9 @@ + #include <linux/of.h> #include <linux/bitfield.h> #include <linux/module.h> +#include <linux/nvmem-consumer.h> @@ -65,7 +65,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org> #include <linux/phy.h> #define MTK_EXT_PAGE_ACCESS 0x1f -@@ -11,6 +14,275 @@ +@@ -12,6 +15,275 @@ #define MTK_PHY_PAGE_EXTENDED_2A30 0x2a30 #define MTK_PHY_PAGE_EXTENDED_52B5 0x52b5 @@ -341,7 +341,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org> static int mtk_gephy_read_page(struct phy_device *phydev) { return __phy_read(phydev, MTK_EXT_PAGE_ACCESS); -@@ -68,6 +340,1059 @@ static int mt7531_phy_config_init(struct +@@ -102,6 +374,1059 @@ static int mt7531_phy_config_init(struct return 0; } @@ -1401,7 +1401,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org> static struct phy_driver mtk_gephy_driver[] = { { PHY_ID_MATCH_EXACT(0x03a29412), -@@ -97,6 +1422,30 @@ static struct phy_driver mtk_gephy_drive +@@ -131,6 +1456,30 @@ static struct phy_driver mtk_gephy_drive .read_page = mtk_gephy_read_page, .write_page = mtk_gephy_write_page, }, @@ -1432,7 +1432,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org> }; module_phy_driver(mtk_gephy_driver); -@@ -107,6 +1456,8 @@ static struct mdio_device_id __maybe_unu +@@ -141,6 +1490,8 @@ static struct mdio_device_id __maybe_unu }; MODULE_DESCRIPTION("MediaTek Gigabit Ethernet PHY driver"); |