Skip to content

Add support for ZyXEL Keenetic series - #65

Closed
tolkonepiu wants to merge 10000 commits into
openwrt:masterfrom
tolkonepiu:zyxel_keenetic
Closed

tolkonepiu wants to merge 10000 commits into
openwrt:masterfrom
tolkonepiu:zyxel_keenetic

Conversation

@tolkonepiu

@tolkonepiu tolkonepiu commented Aug 20, 2016 •

Copy link
Copy Markdown

This pull request based on svn diff 47 from S-Trace ([email protected]). Added support for models:

  • ZyXEL Keenetic
  • ZyXEL Keenetic 4G rev.A
  • ZyXEL Keenetic 4G rev.B/NBG4114
  • ZyXEL Keenetic Lite rev.A
  • ZyXEL Keenetic Lite rev.B/NBG4104

wigyori and others added 30 commits June 26, 2016 13:30
This provides better protection of flash data.

Signed-off-by: Rafał Miłecki <[email protected]>
This avoids extra calculation in bash script.

Signed-off-by: Rafał Miłecki <[email protected]>
This will allow adding support for other formats (e.g. Seama) in a clean
way.

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Rafał Miłecki <[email protected]>
The boot loader expects LZMA compressed kernel images

Signed-off-by: Felix Fietkau <[email protected]>
It updates kernel and then formats UBI without loosing erase counters.

Signed-off-by: Rafał Miłecki <[email protected]>
This device needs the firmware padded to 4MB.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Boot tested on AR-5381u, AR-5387un and WAP-5813n

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
This switches brcm63xx to the new profile definition system in image/Makefile

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Some devices with ath9k WiFi require changing the default active low
polarity to high in order to correctly operate the WiFi status LEDs.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Huawei HG556a has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
D-Link DSL-274XB rev F1 has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
This patch adds support for the Netgear EVG2000 VoIP Gateway to the
bcm63xx targets.

This device was not sold to the general public, but rather is/was
provided by telcos to customers in Sweden, Australia, Singapore and
other parts of asia.

Known issues:
 - Unable to detect 53115 switch. This appear to be a problem with
probing for the PHY using MDIO and results in error 5. Doesn't seem to
be a problem with the configuration, and could use someone with
experience to have a look at it.
 - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
fails to load the firmware for the 4322, so 802.11n is not supported.

More info on the device and the research can be found at:
https://wiki.openwrt.org/toh/netgear/evg2000
https://wikidevi.com/wiki/Netgear_EVG2000
https://github.com/Xotic750/mirror-lede/tree/evg2000
https://forum.openwrt.org/viewtopic.php?id=63950

Signed-off-by: Graham Fairweather <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
- Use KERNEL_INITRAMFS_SUFFIX for customizing initramfs name.
- Modifying $(PROFILES) is no longer needed.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Jonas Gorski <[email protected]>
External IRQs are currently broken, fix the BCM6345_EXT_IRQ driver.

Since the adoption of the new driver irq-bcm6345-ext, in Chaos Calmer,
external IRQs don't work. It seems there were some minor errors at the initial
development of the driver.

This patch fixes the ticket https://dev.openwrt.org/ticket/21613

Signed-off-by: Daniel Gonzalez <[email protected]>
Signed-off-by: Jonas Gorski <[email protected]>
This makes the eventual migration to bmips easier, as dts files
will require less changes.

Signed-off-by: Jonas Gorski <[email protected]>
Instead of using a fixed commandline, allow one per device.

Signed-off-by: Jonas Gorski <[email protected]>
The only difference is a field in the image tag header, so just define
two images for it instead of treating them as separate devices.

Signed-off-by: Jonas Gorski <[email protected]>
Some devices require padded images in order to prevent CFE from flashing them
to the wrong offset.
For small flashes (4/8) this is no big deal, but for larger flashes (16/32) this
implies 8 and 16 MB images, which is way too large and some devices aren't
capable of flashing them through sysupgrade.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Instead of having CFE_EXTRAS for every device that need specific block sizes
and image offset, let's define a couple of vars which can be customized for
each device.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
This updates oseama in firmware-utils to the version from packages
keeping them synced.

Signed-off-by: Rafał Miłecki <[email protected]>
So far "kernel" partition didn't contain just a kernel. It also included
Seama header and meta data. This was making kernel update complex and it
wasn't trivial to read kernel size.
Fix it by making "kernel" parition contain just a kernel image.

Signed-off-by: Rafał Miłecki <[email protected]>
@wigyori

wigyori commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

@tolkonepiu - thanks for the fixup, can you please make sure the docs for the devices are created/filled on the wiki? We'd also need the SoB on the commits and a bit more detail on the devices.

Thanks,
-w-

@tolkonepiu

Copy link
Copy Markdown
Author

Ok:smile:

@wigyori

wigyori commented Sep 3, 2016

Copy link
Copy Markdown
Contributor

Ping @tolkonepiu ? :)

-w-

@tolkonepiu

Copy link
Copy Markdown
Author

@wigyori sorry. I simply didn't have time. :(

@KOLANICH

KOLANICH commented Sep 6, 2016

Copy link
Copy Markdown

Btw, how about reusing dir620 page? It is known to be nearly identical to keenetic and often was flashed with keenetic firmware. BTW, how about hwnat?

@lgp698asd

Copy link
Copy Markdown

@wigyori

wigyori commented Oct 28, 2016

Copy link
Copy Markdown
Contributor

@wigyori

wigyori commented Dec 7, 2016

Copy link
Copy Markdown
Contributor

Ping @lgp698asd

@mxl

mxl commented Jan 17, 2017

Copy link
Copy Markdown

What's the state of this PR?

@blogic

blogic commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

already part of the LEDE tree which will replace the OWRT tree shortly

@blogic blogic closed this Nov 7, 2017
@nerijus

nerijus commented Nov 8, 2017

Copy link
Copy Markdown

Could you please show the changes in LEDE tree? I don't see them.

@nerijus

nerijus commented Jan 2, 2018

Copy link
Copy Markdown

Why is it closed without any comment?

@robototechnic

Copy link
Copy Markdown
Contributor

Also interested. There is no information about ZyXEL Keenetic 4G rev.B / NBG4114 in the source.

@nos1609

nos1609 commented Jan 19, 2018 •

Copy link
Copy Markdown

@blogic @jow- Any obstacles to merging this pr? Because I've checked both openwrt and lede repos, and they're only 4 models present in ramips board configs, while with those listed here they already should be 8 in total. Please check commits once again. Thanks

https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/base-files/lib/ramips.sh
https://github.com/lede-project/source/blob/master/target/linux/ramips/base-files/lib/ramips.sh

@mkresin

mkresin commented Jan 19, 2018

Copy link
Copy Markdown
Member

It can't be merged as it is. The whole PR is based on outdated code and contains more than 250 (unintended) commits. Someone need to re-spin the PR based on the current development code.

Ansuel pushed a commit to Ansuel/openwrt that referenced this pull request Jan 24, 2025
WIP: airoha: pcs: update with new version
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 6, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 9, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 19, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Nov 7, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Nov 7, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.