Repository navigation
Conversation
namiltd
force-pushed
the
dsa-mediatek1
branch
2 times, most recently
from
August 2, 2025 14:32
dd419c4 to
cdc4b71
Compare
musashino205
reviewed
Aug 2, 2025
namiltd
force-pushed
the
dsa-mediatek1
branch
5 times, most recently
from
August 3, 2025 10:15
a51d7eb to
d68dc91
Compare
namiltd
marked this pull request as ready for review
August 3, 2025 14:56
namiltd
force-pushed
the
dsa-mediatek1
branch
2 times, most recently
from
August 8, 2025 23:01
bccc79c to
d79ab11
Compare
namiltd
force-pushed
the
dsa-mediatek1
branch
from
September 6, 2025 11:25
11f863d to
3945b56
Compare
namiltd
force-pushed
the
dsa-mediatek1
branch
11 times, most recently
from
June 11, 2026 08:12
4af5dbb to
ed4e314
Compare
namiltd
force-pushed
the
dsa-mediatek1
branch
2 times, most recently
from
August 22, 2026 07:19
c0e7d2b to
409301f
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate compatibility-metadata issues remain unresolved.
Pull request overview
Migrates selected MT7622 boards from the legacy RTL8367S/swconfig driver to the RTL8365MB DSA driver.
Changes:
- Adds DSA switch topologies, packages, and network configuration.
- Updates compatibility-version migration handling.
- Removes legacy RTL8367S/RTL8367C driver integration and sources.
File summaries
| File | Summary |
|---|---|
target/linux/mediatek/patches-6.18/500-gsw-rtl8367s-mt7622-support.patch |
Removes legacy driver integration. |
target/linux/mediatek/mt7629/config-6.18 |
Removes obsolete configuration. |
target/linux/mediatek/mt7623/config-6.18 |
Removes obsolete configuration. |
target/linux/mediatek/mt7622/config-6.18 |
Removes legacy driver configuration. |
target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version |
Compatibility migration; Buffalo branch ordering requires changes. |
target/linux/mediatek/mt7622/base-files/etc/board.d/05_compat-version |
Updates compatibility versions. |
target/linux/mediatek/mt7622/base-files/etc/board.d/02_network |
Removes legacy swconfig setup. |
target/linux/mediatek/image/mt7622.mk |
Adds DSA packages and migration metadata; Elecom metadata helper requires changes. |
target/linux/mediatek/filogic/config-6.18 |
Removes obsolete configuration. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_unknownMulticast.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_portIsolation.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_oam.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_misc.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_interrupt.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_inbwctrl.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_hsb.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eee.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/oam.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/smi.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_vlan.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_unknownMulticast.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_trunking.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_svlan.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_storm.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_scheduling.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_rma.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_rldp.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_qos.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_portIsolation.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_port.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_phy.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_oam.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_misc.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_mirror.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_mii_mgr.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_mib.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_meter.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_lut.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_led.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_interrupt.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_inbwctrl.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_igmp.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_i2c.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_hsb.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_green.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_fc.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_eee.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_eav.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_dot1x.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_cputag.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtl8367c_asicdrv_acl.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtk_types.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rtk_hal.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/rldp.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/oam.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/mirror.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/interrupt.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/i2c.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/include/eee.h |
Removes legacy driver header. |
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/eee.c |
Removes legacy driver source. |
target/linux/mediatek/files/drivers/net/phy/rtk/Makefile |
Removes legacy driver build integration. |
target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts |
Adds the DSA switch topology. |
target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts |
Adds the DSA switch topology. |
target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts |
Adds the DSA switch topology. |
Review details
- Files reviewed: 65/137 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
The Elecom CPU port and its connected GMAC use incompatible link modes and speeds.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 65/137 changed files
- Comments generated: 1
- Review effort level: Balanced
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU from swconfig to DSA. These devices use an external Realtek RTL8367S switch handled by the rtl8365mb DSA driver. Per-device changes: - Drop the proprietary mediatek,rtk-gsw node - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU - Move CPU port to gmac0 at 2500base-x (HSGMII) - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port) - Drop unused rgmii_via_gmac2 pin group - Replace swconfig with kmod-dsa-rtl8365mb - Bump DEVICE_COMPAT_VERSION (config migration not possible) - Remove swconfig board setup from 02_network - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config MAC address assignment notes: - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC (previously the WAN MAC existed on the implicit eth1/gmac1 interface) - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit (original gmac1 had no nvmem-cells assignment) - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1) Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
All mt7622 devices using the RTL8367S switch have been migrated to the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW driver and disable swconfig in the mt7622 kernel config, since no device in this target needs it anymore. Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Owner
Author
|
Moved to openwrt#24861 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates selected MT7622 boards from the legacy RTL8367S/swconfig driver to the RTL8365MB DSA driver.
Changes: