]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
generic: import rtl8261n patches from mediatek 18163/head
authorAndrew LaMarche <andrewjlamarche@gmail.com>
Tue, 4 Mar 2025 19:18:08 +0000 (19:18 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Mar 2025 18:05:56 +0000 (19:05 +0100)
RTL8261N is used on some Airoha and Realtek devices. Move the driver
from Mediatek to generic so it can be used everywhere.

Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18163
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
26 files changed:
target/linux/generic/config-6.6
target/linux/generic/files/drivers/net/phy/rtl8261n/Kconfig [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/Kconfig with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/Makefile [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/Makefile with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/construct/conf_rtl8261n_c.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/construct/conf_rtl8261n_c.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/construct/conf_rtl8264b.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/construct/conf_rtl8264b.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/error.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/error.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/phy_patch.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/phy_patch.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/phy_patch.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/phy_patch.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/phy_rtl826xb_patch.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/phy_rtl826xb_patch.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/phy_rtl826xb_patch.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/phy_rtl826xb_patch.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_osal.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_osal.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_osal.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_osal.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phy.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phy.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phylib.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phylib.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phylib.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phylib.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phylib_def.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phylib_def.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phylib_rtl826xb.c [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phylib_rtl826xb.c with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phylib_rtl826xb.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/rtk_phylib_rtl826xb.h with 100% similarity]
target/linux/generic/files/drivers/net/phy/rtl8261n/type.h [moved from target/linux/mediatek/files-6.6/drivers/net/phy/rtl8261n/type.h with 100% similarity]
target/linux/generic/hack-6.6/735-net-phy-realtek-rtl8261n.patch [moved from target/linux/mediatek/patches-6.6/735-net-phy-realtek-rtl8261n.patch with 87% similarity]
target/linux/mediatek/mt7622/config-6.6
target/linux/mediatek/mt7623/config-6.6
target/linux/mediatek/mt7629/config-6.6
target/linux/mediatek/patches-6.6/500-gsw-rtl8367s-mt7622-support.patch
target/linux/realtek/patches-6.6/720-add-rtl-phy.patch
target/linux/siflower/patches-6.6/019-net-phy-add-support-for-Siflower-SF23P1211-SF23P1240.patch

index 5051a8aba249501c81925fc1b13ab4dbb5449a00..579209607332a5893e3879f96784d09ac6df0826 100644 (file)
@@ -5147,6 +5147,7 @@ CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
 # CONFIG_RTL8187 is not set
 # CONFIG_RTL8192E is not set
 # CONFIG_RTL8192U is not set
+# CONFIG_RTL8261N_PHY is not set
 # CONFIG_RTL8306_PHY is not set
 # CONFIG_RTL8366RB_PHY is not set
 # CONFIG_RTL8366S_PHY is not set
similarity index 87%
rename from target/linux/mediatek/patches-6.6/735-net-phy-realtek-rtl8261n.patch
rename to target/linux/generic/hack-6.6/735-net-phy-realtek-rtl8261n.patch
index 676bd7c093d24c1f99eee9cacf373809b40fd643..946869c3037377a302c653c0bbeb1769f0c3aebe 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/phy/Kconfig
 +++ b/drivers/net/phy/Kconfig
-@@ -396,6 +396,8 @@ config QSEMI_PHY
+@@ -406,6 +406,8 @@ config QSEMI_PHY
  
  source "drivers/net/phy/realtek/Kconfig"
  
@@ -18,4 +18,4 @@
 +obj-y                         += rtl8261n/
  obj-$(CONFIG_RENESAS_PHY)     += uPD60620.o
  obj-$(CONFIG_ROCKCHIP_PHY)    += rockchip.o
- obj-$(CONFIG_RTL8367S_GSW)    += rtk/
+ obj-$(CONFIG_SMSC_PHY)                += smsc.o
index 9b9ae6342733ab8081aaa85d83cac6c92dd9e8c9..71a6479d85ff3f106a526c8a9f31032a928fd33a 100644 (file)
@@ -423,7 +423,6 @@ CONFIG_RPS=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_MT7622=y
 CONFIG_RTC_I2C_AND_SPI=y
-# CONFIG_RTL8261N_PHY is not set
 CONFIG_RTL8367S_GSW=y
 CONFIG_RWSEM_SPIN_ON_OWNER=y
 CONFIG_SCHED_MC=y
index 94372767a6d2339596a0b0a14c40cdd26ddfc878..4dd1ee3631fdc354576a37c65c7678437307c160 100644 (file)
@@ -528,7 +528,6 @@ CONFIG_RTC_CLASS=y
 # CONFIG_RTC_DRV_MT7622 is not set
 CONFIG_RTC_I2C_AND_SPI=y
 CONFIG_RTC_MC146818_LIB=y
-# CONFIG_RTL8261N_PHY is not set
 # CONFIG_RTL8367S_GSW is not set
 CONFIG_RWSEM_SPIN_ON_OWNER=y
 # CONFIG_SERIAL_8250_DMA is not set
index 008e57a20c64ca03fe4a506417d2ff43f22918c8..56ea36f27eb70c07a87d6d6dff4dba7ba3dddb62 100644 (file)
@@ -299,7 +299,6 @@ CONFIG_REGMAP_MMIO=y
 CONFIG_RESET_CONTROLLER=y
 CONFIG_RFS_ACCEL=y
 CONFIG_RPS=y
-# CONFIG_RTL8261N_PHY is not set
 # CONFIG_RTL8367S_GSW is not set
 CONFIG_RWSEM_SPIN_ON_OWNER=y
 CONFIG_SCSI=y
index bb7e7be6d2430795a2c88613273d03a3cb8261b6..639403807ffdfcb6dc06f7921c49e3ca6e72aa67 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/phy/Kconfig
 +++ b/drivers/net/phy/Kconfig
-@@ -416,6 +416,12 @@ config ROCKCHIP_PHY
+@@ -418,6 +418,12 @@ config ROCKCHIP_PHY
        help
          Currently supports the integrated Ethernet PHY.
  
@@ -15,8 +15,8 @@
        select CRC16
 --- a/drivers/net/phy/Makefile
 +++ b/drivers/net/phy/Makefile
-@@ -102,6 +102,7 @@ obj-$(CONFIG_QSEMI_PHY)            += qsemi.o
- obj-$(CONFIG_REALTEK_PHY)     += realtek/
+@@ -103,6 +103,7 @@ obj-$(CONFIG_REALTEK_PHY)  += realtek/
+ obj-y                         += rtl8261n/
  obj-$(CONFIG_RENESAS_PHY)     += uPD60620.o
  obj-$(CONFIG_ROCKCHIP_PHY)    += rockchip.o
 +obj-$(CONFIG_RTL8367S_GSW)    += rtk/
index 4d6866db24f8c012bed142c837f380c49a411f26..c7078cea4e28151550124c602ba77a88b671eb5a 100644 (file)
@@ -14,9 +14,9 @@ Submitted-by: Birger Koblitz <mail@birger-koblitz.de>
 
 --- a/drivers/net/phy/Kconfig
 +++ b/drivers/net/phy/Kconfig
-@@ -407,6 +407,12 @@ config QSEMI_PHY
+@@ -409,6 +409,12 @@ source "drivers/net/phy/realtek/Kconfig"
  
- source "drivers/net/phy/realtek/Kconfig"
+ source "drivers/net/phy/rtl8261n/Kconfig"
  
 +config REALTEK_SOC_PHY
 +      tristate "Realtek SoC PHYs"
@@ -29,11 +29,11 @@ Submitted-by: Birger Koblitz <mail@birger-koblitz.de>
        help
 --- a/drivers/net/phy/Makefile
 +++ b/drivers/net/phy/Makefile
-@@ -100,6 +100,7 @@ obj-$(CONFIG_NXP_TJA11XX_PHY)      += nxp-tja
- obj-y                         += qcom/
+@@ -101,6 +101,7 @@ obj-y                              += qcom/
  obj-$(CONFIG_QSEMI_PHY)               += qsemi.o
  obj-$(CONFIG_REALTEK_PHY)     += realtek/
-+obj-$(CONFIG_REALTEK_SOC_PHY)   += rtl83xx-phy.o
+ obj-y                         += rtl8261n/
++obj-$(CONFIG_REALTEK_SOC_PHY) += rtl83xx-phy.o
  obj-$(CONFIG_RENESAS_PHY)     += uPD60620.o
  obj-$(CONFIG_ROCKCHIP_PHY)    += rockchip.o
  obj-$(CONFIG_SMSC_PHY)                += smsc.o
index 70c60ad72671ea237d13e043b2e13eb20520fd11..4113d82326365849e893559fc3413e1ce9ce46df 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: haoming.chen <haoming.chen@siflower.com.cn>
 
 --- a/drivers/net/phy/Kconfig
 +++ b/drivers/net/phy/Kconfig
-@@ -482,3 +482,8 @@ endif # PHYLIB
+@@ -484,3 +484,8 @@ endif # PHYLIB
  config MICREL_KS8995MA
        tristate "Micrel KS8995MA 5-ports 10/100 managed Ethernet switch"
        depends on SPI
@@ -22,7 +22,7 @@ Signed-off-by: haoming.chen <haoming.chen@siflower.com.cn>
 +        Currently supports the SF1211F, SF1240 gigabit PHY.
 --- a/drivers/net/phy/Makefile
 +++ b/drivers/net/phy/Makefile
-@@ -107,3 +107,4 @@ obj-$(CONFIG_STE10XP)              += ste10Xp.o
+@@ -108,3 +108,4 @@ obj-$(CONFIG_STE10XP)              += ste10Xp.o
  obj-$(CONFIG_TERANETICS_PHY)  += teranetics.o
  obj-$(CONFIG_VITESSE_PHY)     += vitesse.o
  obj-$(CONFIG_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o