Skip to content

Remove existing old link before creating a new one - #42

Closed
stweil wants to merge 10000 commits into
openwrt:masterfrom
stweil:master
Closed

stweil wants to merge 10000 commits into
openwrt:masterfrom
stweil:master

Conversation

@stweil

@stweil stweil commented Jul 24, 2016

Copy link
Copy Markdown
Contributor

This is needed after a kernel update, otherwise the
new link is written as linux/linux-$(LINUX_VERSION).

Signed-off-by: Stefan Weil [email protected]

blogic and others added 30 commits June 24, 2016 16:40
this broke uhci pci support on some arv units

Signed-off-by: John Crispin <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This reverts commit edb6897.

/etc/board.d cannot be used for system init stuff.

Signed-off-by: Felix Fietkau <[email protected]>
The *_UBIFS_OPTS variables need to be prefixed with DEVICE_ to match
the profile name.

The conditions need to be evaluated after the *_UBIFS_OPTS are set,
otherwise the variables are always empty.

Do not append or pass the DEVICE_ prefixed profile name to the images.
Use the name that is passed by the Image/Build/Profile/ step.

Signed-off-by: Mathias Kresin <[email protected]>
…ller

The lantiq kernel arch code selects CONFIG_RESET_CONTROLLER always, so
it is always selected when the lantiq target is build. we do not need
support for unselected CONFIG_RESET_CONTROLLER option.

Signed-off-by: Hauke Mehrtens <[email protected]>
This image format is used by Lantiq's / Intel's UGW version 6.1 to 7.1.
These images can be flashed onto a board with the SoC vendor boot
loader as a replacement for the vendor firmware.

Signed-off-by: Hauke Mehrtens <[email protected]>
This matches the EASY80920NAND boards with UGW.

Signed-off-by: Hauke Mehrtens <[email protected]>
The EASY80920 is available with the A1X and the A2X chip version
depending on the board version. Add both firmware versions to device
tree and make the driver load the correct version depending on the chip
version.

Signed-off-by: Hauke Mehrtens <[email protected]>
The bootloader uses 30 MHz as the SPI frequency for flash on the Germany and
North America models, and 50 MHz for it on the worldwide model, but the Lantiq
SPI driver in OpenWrt and LEDE may access the flash differently such that
writes are capped at 20 MHz, leading to read errors reported on the worldwide
model at 30 MHz.

Signed-off-by: Daniel Gimpelevich <[email protected]>
Acked-by: Kevin Darbyshire-Bryant <[email protected]>
update oxnas target, update ipq806x target, create trunk tag and update revisioning accordingly
32-bit only hardware that supports kvm is very rare.
It's not worth keeping a separate subtarget for this.

Signed-off-by: Felix Fietkau <[email protected]>
Add packaging of it87 hardware monitor kernel module.  It is
a common thermal and voltage monitor that is in many x86
(at least) devices, and is just another i2c hwmon module.

Signed-off-by: Daniel Dickinson <[email protected]>
Improved support for PCEngines APU

Signed-off-by: Russell Senior <[email protected]>
Generalize the partition discovery in sysupgrade in order to fix sysupgrade
and config backup/recovery on MMC block devices which use a different naming
scheme compared to mtdblock or sd* devices.

The change also adds the find applet to the ramdisk utilities so that upgrade
code can rely on it.

The commit is based on the initial submission by Russell Senior at
http://patchwork.ozlabs.org/patch/625440/ .

Signed-off-by: Russell Senior <[email protected]>
Signed-off-by: Jo-Philipp Wich <[email protected]>
Enable support for DMI decoding in the kernel so that we can access
manufacturer and model information via sysfs.

Also remove redundant per-subtarget DMI overrides and preset a few
previously unset symbols popping up due to the now enabled DMI support.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Use the DMI data available in sysfs to extract manufacturer and model info
and write it to /tmp/sysinfo/.

The data will be picked up by board_detect and can be used by e.g. LuCI to
display a more appropriate model description.

On an APU board the files will contain the following values:

    # cat /tmp/sysinfo/model
    PC Engines APU

    # cat /tmp/sysinfo/board_name
    pc-engines-apu

Signed-off-by: Jo-Philipp Wich <[email protected]>
nbd168 and others added 16 commits July 20, 2016 23:41
This reverts commit eab2b26.

CFE is known to fail in some non-standard cases, e.g. when using kernel
or format different that what was tested by Broadcom. This kernel change
triggered some problem with booting OpenWrt kernel stored in Seama.

As long as Seama checksum was covering enough data, it was working fine.
We need to change it however, because calculating MD5 over part of UBI
containing SquashFS is unsafe. UBI may move PEBs depending on flash
wearing level which would break CFE booting the image.

For some reason this kernel change was breaking CFE. Calculating MD5
over 0x47ffc0 B data or less (there is 0x40 B long header) was stopping
booting process at:
Starting program at 0x00008000

As our kernel is usually 0x3fffc0 B it was affected by this problem.

Reverting this change fixes sysupgrade (which already uses kernel size
for MD5 calculation) and will allow us to adjust "fixseama" command call
on the first boot.

Signed-off-by: Rafał Miłecki <[email protected]>
We don't want checksum to cover any part of UBI as even its part with
SquashFS may be changed due to e.g. flash wearing.

Signed-off-by: Rafał Miłecki <[email protected]>
Use append-ubi template for ubinize, remove mkfs override

Signed-off-by: Felix Fietkau <[email protected]>
We call all commands normally, with standard echoing. It's useful for
debugging with V=s. Don't make lzma compression an exception, it's a bit
confusing this way.

Signed-off-by: Rafał Miłecki <[email protected]>
from 16 kB (default both in logd source and in the startup script)
to 64 kB by adjusting the default value in startup script.

Signed-off-by: Hannu Nyman <[email protected]>
this adds the new getrandom wrapper tool

Signed-off-by: John Crispin <[email protected]>
Pull req for mwlwifi, archs38, bcm53xx and core package updates
This is needed after a kernel update, otherwise the
new link is written as linux/linux-$(LINUX_VERSION).

Signed-off-by: Stefan Weil <[email protected]>
@blogic

blogic commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@nbd168 comments ?

@stweil

stweil commented Jan 4, 2018

Copy link
Copy Markdown
Contributor Author

The pull request was applied with commit d0619fb.

github-actions Bot pushed a commit to kltk/openwrt that referenced this pull request Apr 4, 2023
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.