SuccessChanges

Summary

  1. wireless-regdb: backport three upstream fixes (commit: 76a0ddf) (details)
  2. elfutils: powerpc build fix (commit: a3079fb) (details)
  3. ath10k-ct: remove old patches (commit: ce2bd2b) (details)
  4. ath10k-firmware: move CT firmwares to new package (commit: 658e68f) (details)
  5. ath10k-ct-firmware: rename ct-htt packages (commit: 2e5e9b4) (details)
  6. ath10k-ct-firmware: update firmware images (commit: 06f510d) (details)
  7. ath10k-ct-firmware: add htt-mgt variants (commit: a882bfc) (details)
  8. ramips: fix MikroTik 750Gr3 ports MAC addresses (commit: a10537f) (details)
  9. wpad-wolfssl: fix crypto_bignum_sub() (commit: 4b3b8ec) (details)
  10. kirkwood: switch from swconfig to dsa (commit: 4fd7e53) (details)
  11. kirkwood: remove support for kernel 4.14 (commit: 0af2c44) (details)
  12. kirkwood: remove support for kernel 4.19 (commit: 8b37389) (details)
  13. Revert "ramips: explicitly disable built-in switch for lan-only devices" (commit: 03e742d) (details)
  14. ath79: add SUPPORTED_DEVICES based on ar71xx for some devices (commit: 522f6b7) (details)
  15. build: prereq: change minimum make version to 3.82 (commit: 35a8657) (details)
  16. kernel: hwmon: add Analog Devices AD741x support (commit: 3f66024) (details)
  17. kirkwood: disable image for Linksys EA3500 (Audi) (commit: d9ff499) (details)
  18. ugps: nmea: fix time comparision (commit: 447d335) (details)
  19. ath79: split Teltonika RUT955 to support other RUT9xx models (commit: c8b309b) (details)
  20. ath79: add support for Teltonika RUT955 H7V3C0 (commit: aa4a33a) (details)
  21. ath79: fix dts of Teltonika RUT9xx devices (commit: aa0526b) (details)
  22. dnsmasq: always inform about disabled dhcp service (commit: b17a5a9) (details)
  23. ath10k-ct: update to version 2020-04-29 (commit: 8036e7e) (details)
  24. wireless-regdb: bump to latest release 2020-04-29 (commit: 493eef5) (details)
  25. kernel: bump 5.4 to 5.4.36 (commit: 5ea3ea1) (details)
  26. wireguard: bump to 1.0.20200429 (commit: f57230c) (details)
  27. uci: update to latest git HEAD (commit: 2855be3) (details)
  28. base-files: generate config files with correct permissions (commit: ad27c13) (details)
  29. mediatek: mt7622: add partial support for Buffalo WSR-2533DHP2 (commit: e51183a) (details)
  30. mediatek: mt7622: add CONFIG_MTD_SPLIT_TRX_FW for Kernel 5.4 (commit: 0e57d6c) (details)
  31. mediatek: Use eth0 to connect to switch (commit: f208ee5) (details)
  32. mediatek: Add swconfig to buffalo-wsr-2533dhp2 (commit: f38b289) (details)
  33. mediatek: mt7622: improve support for WSR-2533DHP2 (commit: 04bd86c) (details)
  34. kernel: mtdsplit_trx: add support for the TRX magic "DHP2" (commit: 88882c8) (details)
  35. mediatek: mt7622: use new binding instead of phy-mode for WSR-2533DHP2 (commit: 693e395) (details)
  36. mediatek: mt7622: use wmac label for WSR-2533DHP2 (commit: 96007be) (details)
  37. mediatek: mt7622: add gpio-hog to enable RTL8367S for WSR-2533DHP2 (commit: ed3c74c) (details)
  38. kernel: rtl8367b: fix external interface modes (commit: 00df8f4) (details)
  39. kernel: rtl8367/rtl8367b: use enum values in external interface IDs (commit: d432ce2) (details)
  40. kernel: rtl8366_smi: allow chip-specific phy address (commit: 07417f4) (details)
  41. kernel: rtl8367b: initial support for Realtek switch rtl8367s (commit: dfd0d62) (details)
  42. kernel: Detect RTL8367s switch (commit: 45238c7) (details)
  43. generic: switch: add support 2500 as a switch port speed (commit: 3bdd2dd) (details)
  44. swconfig: add support 2500baseT as a port speed (commit: f04644d) (details)
  45. kernel: rtl8367: add property values for RTL8367S (commit: 2bbc045) (details)
  46. kernel: rtl8367b: add initial SGMII/HSGMII support for RTL8367S (commit: c2c6c3e) (details)
Commit 76a0ddf1308782a4da2693978955aee9cf631862 by ynezz
wireless-regdb: backport three upstream fixes

Another release is overdue for quite some time, so I'm backporting three
fixes from upstream which I plan to backport into 19.07 as well.

Ref: FS#2880
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 76a0ddf)
The file was addedpackage/firmware/wireless-regdb/patches/600-wireless-regdb-Fix-overlapping-ranges-for-Switzerlan.patch
The file was addedpackage/firmware/wireless-regdb/patches/601-wireless-regdb-Fix-ranges-of-EU-countries-as-they-ar.patch
The file was modifiedpackage/firmware/wireless-regdb/Makefile (diff)
The file was addedpackage/firmware/wireless-regdb/patches/602-wireless-regdb-Update-regulatory-rules-for-Russia-RU.patch
Commit a3079fb7ba7ade4d4765252b7c53a82ca15ae741 by ynezz
elfutils: powerpc build fix

Fixes following build error on mpc85xx/generic:

ppc_initreg.c: In function 'ppc_set_initial_registers_tid':
ppc_initreg.c:79:22: error: field 'r' has incomplete type
        struct pt_regs r;

Ref: FS#2924
Fixes: d27623b54254 ("elfutils: update to 0.179")
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
[commit description facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: a3079fb)
The file was addedpackage/libs/elfutils/patches/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch
Commit ce2bd2bd03da95aa64f029de567a0f79898166a6 by noltari
ath10k-ct: remove old patches

Only keep 5.4 patches.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(commit: ce2bd2b)
The file was addedpackage/kernel/ath10k-ct/patches/201-ath10k-add-LED-and-GPIO-controlling-support-for-various-chipsets.patch
The file was removedpackage/kernel/ath10k-ct/patches/201-ath10k-4.16_add-LED-and-GPIO-controlling-support-for-various-chipsets.patch
The file was modifiedpackage/kernel/ath10k-ct/patches/960-0011-ath10k-limit-pci-buffer-size.patch (diff)
The file was removedpackage/kernel/ath10k-ct/patches/163-ath10k-fix-incorrect-multicast-broadcast-rate-settin.patch
The file was addedpackage/kernel/ath10k-ct/patches/202-ath10k-use-tpt-trigger-by-default.patch
The file was removedpackage/kernel/ath10k-ct/patches/161-ath10k-add-support-for-configuring-management-packet.patch
The file was modifiedpackage/kernel/ath10k-ct/patches/960-0010-ath10k-limit-htt-rx-ring-size.patch (diff)
The file was removedpackage/kernel/ath10k-ct/patches/976-ath10k-Check-if-station-exists-before-forwarding-tx-.patch
The file was removedpackage/kernel/ath10k-ct/patches/162-ath10k-fix-possible-out-of-bound-access-of-ath10k_ra.patch
The file was modifiedpackage/kernel/ath10k-ct/patches/164-ath10k-commit-rates-from-mac80211.patch (diff)
The file was removedpackage/kernel/ath10k-ct/patches/203-ath10k-Limit-available-channels-via-DT-ieee80211-fre.patch
The file was removedpackage/kernel/ath10k-ct/patches/170-mac80211-pass-the-vif-to-cancel_remain_on_channel.patch
The file was removedpackage/kernel/ath10k-ct/patches/202-ath10k-4.16-use-tpt-trigger-by-default.patch
Commit 658e68f85c2645e0132edc6b30a9c76cc17292de by noltari
ath10k-firmware: move CT firmwares to new package

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(commit: 658e68f)
The file was addedpackage/firmware/ath10k-ct-firmware/Makefile
The file was modifiedpackage/firmware/ath10k-firmware/Makefile (diff)
Commit 2e5e9b459ed53b42f8938294a98e2546be976c85 by noltari
ath10k-ct-firmware: rename ct-htt packages

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(commit: 2e5e9b4)
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
The file was modifiedpackage/firmware/ath10k-ct-firmware/Makefile (diff)
Commit 06f510df6e2aa0b1e40124bbd758672458d01482 by noltari
ath10k-ct-firmware: update firmware images

No release notes this time.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(commit: 06f510d)
The file was modifiedpackage/firmware/ath10k-ct-firmware/Makefile (diff)
Commit a882bfce052e78bd344dcbd36efb32acf1340d7a by noltari
ath10k-ct-firmware: add htt-mgt variants

For wave-2, there is now a new variant: htt-mgt-community (vs the old
full-htt-mgt-community).

The non-full one (hence forth 'diet') compiles out a lot of firmware features
that ath10k does not use. This saves a lot of resources and lets one
configure more stations/vdevs/etc using fwcfg.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(commit: a882bfc)
The file was modifiedpackage/firmware/ath10k-ct-firmware/Makefile (diff)
Commit a10537f67400e910da153ebf3b478d931dd557f2 by freifunk
ramips: fix MikroTik 750Gr3 ports MAC addresses

According to a user in OpenWrt forum, on RouterOS the MAC addresses are
ether1(WAN) = MAC
ether2(LAN2) = MAC+1
ether3(LAN3) = MAC+2
etc.

Fix the MAC addresses in OpenWrt.

Ref: https://forum.openwrt.org/t/few-dumb-question-about-mt7530-rb750gr3-dsa/61608
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
[remove label_mac in 02_network]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: a10537f)
The file was modifiedtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts (diff)
Commit 4b3b8ec81cd1965d0bd548fa31db491295b83354 by daniel
wpad-wolfssl: fix crypto_bignum_sub()

Backport patch from hostapd.git master that fixes copy/paste error in
crypto_bignum_sub() in crypto_wolfssl.c.

This missing fix was discovered while testing SAE over a mesh interface.

With this fix applied and wolfssl >3.14.4 mesh+SAE works fine with
wpad-mesh-wolfssl.

Cc: Sean Parkinson <sean@wolfssl.com>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 4b3b8ec)
The file was addedpackage/network/services/hostapd/patches/090-wolfssl-fix-crypto_bignum_sum.patch
Commit 4fd7e539e4f90128bdd7cb71c729a4b32f5de86e by freifunk
kirkwood: switch from swconfig to dsa

This patch removes support for swconfig and switches to dsa driver.

swconfig and switch drivers are removed. DSA driver is enabled and
configuration is adjusted.

In kirkwood only two devices have switches: Linksys EA3500 and EA4500.

WAN MAC configuration in 02_network is required because otherwise WAN
would have the same MAC address as lan interfaces. In swconfig solution
the WAN address was assigned in u-Boot to eth1. Now, as eth1 is disabled
and wan is part of the switch, we have to set it manually.

Compile tested: EA3500, EA4500
Run tested: EA4500

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[minor commit title/message adjustments, remove swconfig package
for devices]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 4fd7e53)
The file was modifiedtarget/linux/kirkwood/patches-5.4/105-ea4500.patch (diff)
The file was modifiedtarget/linux/kirkwood/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-linksys-audi.dts (diff)
The file was modifiedtarget/linux/kirkwood/config-5.4 (diff)
The file was modifiedtarget/linux/kirkwood/image/Makefile (diff)
The file was modifiedtarget/linux/kirkwood/profiles/00-default.mk (diff)
Commit 0af2c44604e64617bfb8084da2021e557160a5da by freifunk
kirkwood: remove support for kernel 4.14

kirkwood has moved to DSA on 5.4, which will make kernel 4.14 and 4.19
support broken on the affected devices.
Support on kernel 5.4 seems to have been running fine for almost 2 months
on multiple devices.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Pawel Dembicki <paweldembicki@gmail.com>
(commit: 0af2c44)
The file was removedtarget/linux/kirkwood/config-4.14
The file was removedtarget/linux/kirkwood/files-4.14/arch/arm/boot/dts/kirkwood-on100.dts
The file was removedtarget/linux/kirkwood/patches-4.14/103-iomega-ix2-200.patch
The file was removedtarget/linux/kirkwood/patches-4.14/201-enable-sata-port-specific-led-triggers.patch
The file was removedtarget/linux/kirkwood/patches-4.14/101-iconnect.patch
The file was removedtarget/linux/kirkwood/patches-4.14/107-03-nsa325.patch
The file was removedtarget/linux/kirkwood/patches-4.14/107-01-zyxel-nsa3x0-common-nand-partitions.patch
The file was removedtarget/linux/kirkwood/patches-4.14/202-linksys-find-active-root.patch
The file was removedtarget/linux/kirkwood/files-4.14/arch/arm/boot/dts/kirkwood-nsa310b.dts
The file was removedtarget/linux/kirkwood/patches-4.14/105-ea4500.patch
The file was removedtarget/linux/kirkwood/patches-4.14/110-pogo_e02.patch
The file was removedtarget/linux/kirkwood/patches-4.14/109-pogoplug_v4.patch
The file was removedtarget/linux/kirkwood/files-4.14/arch/arm/boot/dts/kirkwood-goflexhome.dts
The file was removedtarget/linux/kirkwood/patches-4.14/102-dockstar.patch
The file was removedtarget/linux/kirkwood/patches-4.14/106-goflexnet.patch
The file was removedtarget/linux/kirkwood/patches-4.14/200-disable-tso.patch
The file was removedtarget/linux/kirkwood/patches-4.14/100-ib62x0.patch
The file was removedtarget/linux/kirkwood/files-4.14/arch/arm/boot/dts/kirkwood-linksys-audi.dts
Commit 8b373892d31e4588c388681d3271643a5c3f6314 by freifunk
kirkwood: remove support for kernel 4.19

kirkwood has moved to DSA on 5.4, which will make kernel 4.14 and 4.19
support broken on the affected devices.
Support on kernel 5.4 seems to have been running fine for almost 2 months
on multiple devices, while support for 4.19 has never left testing state.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Pawel Dembicki <paweldembicki@gmail.com>
(commit: 8b37389)
The file was removedtarget/linux/kirkwood/patches-4.19/100-ib62x0.patch
The file was removedtarget/linux/kirkwood/patches-4.19/107-03-nsa325.patch
The file was removedtarget/linux/kirkwood/patches-4.19/109-pogoplug_v4.patch
The file was removedtarget/linux/kirkwood/files-4.19/arch/arm/boot/dts/kirkwood-linksys-audi.dts
The file was removedtarget/linux/kirkwood/patches-4.19/201-enable-sata-port-specific-led-triggers.patch
The file was removedtarget/linux/kirkwood/patches-4.19/102-dockstar.patch
The file was removedtarget/linux/kirkwood/files-4.19/arch/arm/boot/dts/kirkwood-goflexhome.dts
The file was removedtarget/linux/kirkwood/files-4.19/arch/arm/boot/dts/kirkwood-on100.dts
The file was removedtarget/linux/kirkwood/patches-4.19/107-01-zyxel-nsa3x0-common-nand-partitions.patch
The file was removedtarget/linux/kirkwood/patches-4.19/202-linksys-find-active-root.patch
The file was removedtarget/linux/kirkwood/patches-4.19/101-iconnect.patch
The file was removedtarget/linux/kirkwood/patches-4.19/105-ea4500.patch
The file was removedtarget/linux/kirkwood/config-4.19
The file was removedtarget/linux/kirkwood/files-4.19/arch/arm/boot/dts/kirkwood-nsa310b.dts
The file was removedtarget/linux/kirkwood/patches-4.19/110-pogo_e02.patch
The file was removedtarget/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch
The file was removedtarget/linux/kirkwood/patches-4.19/106-goflexnet.patch
Commit 03e742dcd82df43ce48c42e96e439e1a4bad14ec by freifunk
Revert "ramips: explicitly disable built-in switch for lan-only devices"

This reverts commit a1693bf626f8cd00363b0b98642b682522dfcf75.

The rt288x and rt3883 devices in question don't have switches.
Only keep the merged case for rt305x.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 03e742d)
The file was modifiedtarget/linux/ramips/rt288x/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/rt3883/base-files/etc/board.d/02_network (diff)
Commit 522f6b7eee479768dd7851e83c4530c3329b9f53 by freifunk
ath79: add SUPPORTED_DEVICES based on ar71xx for some devices

This adds some still-missing board names for old TP-Link devices
to ath79 SUPPORTED_DEVICES.

Fixes: FS#3017

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 522f6b7)
The file was modifiedtarget/linux/ath79/image/tiny-tp-link.mk (diff)
The file was modifiedtarget/linux/ath79/image/generic-tp-link.mk (diff)
Commit 35a8657a404a78a01a886a3f82f903ea345137e6 by ldir
build: prereq: change minimum make version to 3.82

undefine was added in make 3.82 which is now some 10 years ago, some
make scripts are beginning to use 'undefine'

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(commit: 35a8657)
The file was modifiedinclude/prereq-build.mk (diff)
Commit 3f660249e668d25dec65af3b2259433ed17046c1 by mail
kernel: hwmon: add Analog Devices AD741x support

Signed-off-by: David Bauer <mail@david-bauer.net>
(commit: 3f66024)
The file was modifiedpackage/kernel/linux/modules/hwmon.mk (diff)
Commit d9ff49967145600ff4bbc0f4eecef11fd96f6b16 by freifunk
kirkwood: disable image for Linksys EA3500 (Audi)

Due to the switch to DSA, the kernel image has become too big (2641k) for the
kernel partition (2624k) on this device:

  WARNING: Image file [...]/linux-kirkwood/linksys_audi-uImage is too big

Disable the device until this is fixed, so buildbots can continue their work.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: d9ff499)
The file was modifiedtarget/linux/kirkwood/image/Makefile (diff)
Commit 447d335d0018171645fd26a46a41a20f57b13378 by daniel
ugps: nmea: fix time comparision

Fix bug causing system time to be set over and over again, and causing
massive log pollution.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 447d335)
The file was modifiedpackage/utils/ugps/Makefile (diff)
Commit c8b309b53d6739b91d81311e4228f66f31c894f1 by daniel
ath79: split Teltonika RUT955 to support other RUT9xx models

Split device-tree of Teltonika RUT955 into a generic RUT9xx part and
a part specific to that version of RUT955 already supported.
Also harmonize GPIO and LED names with what is used by the vendor
firmware and assign RS485 DTR signal.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: c8b309b)
The file was addedtarget/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi
The file was modifiedtarget/linux/ath79/dts/ar9344_teltonika_rut955.dts (diff)
Commit aa4a33ac6256fadd7201908dad1be9659b942ecd by daniel
ath79: add support for Teltonika RUT955 H7V3C0

This board was previously supported in ar71xx as 'RUT9XX'. The
difference between that and the other RUT955 board already supported in
ath79 is that instead of the SPI shift registers driving the LEDs and
digital outputs that model got an I2C GPIO expander instead.

To support LEDs during early boot and interrupt-driven digital inputs,
I2C support as well as support for PCA953x has to be built-in and
cannot be kernel modules, hence select those symbols for ath79/generic.

Specification:

- 550/400/200 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1
- 2T2R 2,4 GHz (AR9344)
- built-in 4G/3G module (example: Quectel EC-25EU)
- internal microSD slot (spi-mmc, buggy and disabled for now)
- RS232 on D-Sub9 port (Cypress ACM via USB, /dev/ttyACM0)
- RS422/RS485 (AR934x high speed UART, /dev/ttyATH1)
- analog 0-24V input (MCP3221)
- various digital inputs and outputs incl. a relay
- 11x LED (4 are driven by AR9344, 7 by PCA9539)
- 2x miniSIM slot (can be swapped via GPIO)
- 2x RP-SMA/F (Wi-Fi), 3x SMA/F (2x WWAN, GPS)
- 1x button (reset)
- DC jack for main power input (9-30 V)
- debugging UART available on PCB edge connector

Serial console (/dev/ttyS0) pinout:

- RX: pin1 (square) on top side of the main PCB (AR9344 is on top)
- TX: pin1 (square) on bottom side

Flash instruction:

Vendor firmware is based on OpenWrt CC release. Use the "factory" image
directly in GUI (make sure to uncheck "keep settings") or in U-Boot web
based recovery. To avoid any problems, make sure to first update vendor
firmware to latest version - "factory" image was successfully tested on
device running "RUT9XX_R_00.06.051" firmware and U-Boot "3.0.1".

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: aa4a33a)
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches (diff)
The file was addedtarget/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
The file was modifiedtarget/linux/ath79/generic/config-default (diff)
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/02_network (diff)
Commit aa0526b5f27c9c9edad719dd9c521ef4dae10a00 by daniel
ath79: fix dts of Teltonika RUT9xx devices

The previous commits were missing a semicolon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: aa0526b)
The file was modifiedtarget/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts (diff)
The file was modifiedtarget/linux/ath79/dts/ar9344_teltonika_rut955.dts (diff)
Commit b17a5a9bdb9f6f5ff73ceee0265b3f5de943d1bb by ynezz
dnsmasq: always inform about disabled dhcp service

Init script checks for an already active DHCP server on the interface
and if such DHCP server is found, then it logs "refusing to start DHCP"
message, starts dnsmasq without DHCP service unless `option force 1` is
set and caches the DHCP server check result.

Each consecutive service start then uses this cached DHCP server check
result, but doesn't provide log feedback about disabled DHCP service
anymore.

So this patch ensures, that the log message about disabled DHCP service
on particular interface is always provided.

Acked-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: b17a5a9)
The file was modifiedpackage/network/services/dnsmasq/files/dnsmasq.init (diff)
Commit 8036e7ebb53fc8125e985ef4e238970aeaaaed18 by ynezz
ath10k-ct: update to version 2020-04-29

Pulls in workaround for TX rate code firmware bug which might as well
help track it down via different printk()s and thus possibly provide
more clue for proper fix.

Firmware currently sends wrong (0xff) TX rate code which causes
WARN_ONCE, so the workaround just changes this bogus value (0xff) into 0.

For 5.4 it also pulls in tx-queue-wake throttling patch "ath10k: Restart
xmit queues below low-water mark", which should improve performance with
high number of concurrent TCP streams.

Ref: https://github.com/greearb/ath10k-ct/pull/129
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 8036e7e)
The file was modifiedpackage/kernel/ath10k-ct/Makefile (diff)
Commit 493eef5b279a0455b76bfacabdec3af8bf642385 by ynezz
wireless-regdb: bump to latest release 2020-04-29

Update to latest release.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 493eef5)
The file was removedpackage/firmware/wireless-regdb/patches/601-wireless-regdb-Fix-ranges-of-EU-countries-as-they-ar.patch
The file was removedpackage/firmware/wireless-regdb/patches/600-wireless-regdb-Fix-overlapping-ranges-for-Switzerlan.patch
The file was removedpackage/firmware/wireless-regdb/patches/010-regdb-fix-compatibility-with-python2.patch
The file was modifiedpackage/firmware/wireless-regdb/Makefile (diff)
The file was removedpackage/firmware/wireless-regdb/patches/602-wireless-regdb-Update-regulatory-rules-for-Russia-RU.patch
Commit 5ea3ea154f9cc8a6f1d3425fa4763614e0e51f8d by ynezz
kernel: bump 5.4 to 5.4.36

Refreshed patches, removed upstreamed patch:

generic/hack: 551-loop-Better-discard-support-for-block-devices.patch

Added generic config symbol `ARM64_ERRATUM_1542419` due to Fixes:
f2791551cedb ("arm64: errata: Hide CTR_EL0.DIC on systems affected by
Neoverse-N1 #1542419").

Run tested: qemu-x86-64, apalis, nbg6617
Build tested: x86/64, imx6, ipq40xx, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 5ea3ea1)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0318-dma-direct-Temporary-DMA-fix-on-arm64.patch (diff)
The file was modifiedtarget/linux/generic/config-5.4 (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0452-PCI-of-Add-inbound-resource-parsing-to-helpers.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0455-dma-direct-exclude-dma_direct_map_resource-from-the-.patch (diff)
The file was modifiedtarget/linux/generic/hack-5.4/702-phy_add_aneg_done_function.patch (diff)
The file was modifiedinclude/kernel-version.mk (diff)
The file was removedtarget/linux/generic/hack-5.4/551-loop-Better-discard-support-for-block-devices.patch
The file was modifiedtarget/linux/apm821xx/patches-5.4/802-usb-xhci-force-msi-renesas-xhci.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0212-bcmgenet-Better-coalescing-parameter-defaults.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0341-drm-v3d-The-third-IRQ-is-optional.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0268-xhci-add-quirk-for-host-controllers-that-don-t-updat.patch (diff)
The file was modifiedtarget/linux/generic/hack-5.4/550-loop-Report-EOPNOTSUPP-properly.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0222-usb-add-plumbing-for-updating-interrupt-endpoint-int.patch (diff)
The file was modifiedtarget/linux/bcm53xx/patches-5.4/180-usb-xhci-add-support-for-performing-fake-doorbell.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0456-dma-mapping-treat-dev-bus_dma_mask-as-a-DMA-limit.patch (diff)
The file was modifiedtarget/linux/generic/hack-5.4/902-debloat_proc.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0450-dma-direct-turn-ARCH_ZONE_DMA_BITS-into-a-variable.patch (diff)
The file was modifiedtarget/linux/ramips/patches-5.4/991-at803x.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0037-Add-dwc_otg-driver.patch (diff)
The file was modifiedtarget/linux/generic/backport-5.4/750-v5.5-net-phy-add-support-for-clause-37-auto-negotiation.patch (diff)
The file was modifiedtarget/linux/bcm27xx/patches-5.4/950-0296-net-bcmgenet-Workaround-2-for-Pi4-Ethernet-fail.patch (diff)
Commit f57230c4e6ee5af36d22bc0bef0bf7adc583c5b0 by dedeckeh
wireguard: bump to 1.0.20200429

* compat: support latest suse 15.1 and 15.2
* compat: support RHEL 7.8's faulty siphash backport
* compat: error out if bc is missing
* compat: backport hsiphash_1u32 for tests

We now have improved support for RHEL 7.8, SUSE 15.[12], and Ubuntu 16.04.

* compat: include sch_generic.h header for skb_reset_tc

A fix for a compiler error on kernels with weird configs.

* compat: import latest fixes for ptr_ring
* compat: don't assume READ_ONCE barriers on old kernels
* compat: kvmalloc_array is not required anyway

ptr_ring.h from upstream was imported, with compat modifications, to our
compat layer, to receive the latest fixes.

* compat: prefix icmp[v6]_ndo_send with __compat

Some distros that backported icmp[v6]_ndo_send still try to build the compat
module in some corner case circumstances, resulting in errors.  Work around
this with the usual __compat games.

* compat: ip6_dst_lookup_flow was backported to 3.16.83
* compat: ip6_dst_lookup_flow was backported to 4.19.119

Greg and Ben backported the ip6_dst_lookup_flow patches to stable kernels,
causing breaking in our compat module, which these changes fix.

* git: add gitattributes so tarball doesn't have gitignore files

Distros won't need to clean this up manually now.

* crypto: do not export symbols

These don't do anything and only increased file size.

* queueing: cleanup ptr_ring in error path of packet_queue_init

Sultan Alsawaf reported a memory leak on an error path.

* main: mark as in-tree

Now that we're upstream, there's no need to set the taint flag.

* receive: use tunnel helpers for decapsulating ECN markings

ECN markings are now decapsulated using RFC6040 instead of the old RFC3168.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
(commit: f57230c)
The file was modifiedpackage/network/services/wireguard/Makefile (diff)
Commit 2855be31510f7defe99f4c01fb0639b8fdf9c69f by dedeckeh
uci: update to latest git HEAD

ec8d323 file: preserve original file mode after commit

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(commit: 2855be3)
The file was modifiedpackage/system/uci/Makefile (diff)
Commit ad27c133eb606ee39fa346b7bdb26c1764ee869e by dedeckeh
base-files: generate config files with correct permissions

As touch creates files with permission 0644 use umask to create
config files with permission 0600 to be inline with INSTALL_CONF

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(commit: ad27c13)
The file was modifiedpackage/base-files/files/bin/config_generate (diff)
Commit e51183ad36b59c558e602984864a268750f0189f by musashino.open
mediatek: mt7622: add partial support for Buffalo WSR-2533DHP2

only for Kernel 5.4

This commit contains following old commits:

mediatek: fix initramfs image for WSR-2533DHP2

mediatek: fix buffalo-initramfs-trx

mediatek: fix trx magic for WSR-2533DHP2

mediatek: update dts for WSR-2533DHP2

- add MAC address configuration
- add read-only flag into partition nodes

mediatek: add missing dt-label for WSR-2533DHP2

mediatek: update "firmware" partition for WSR-2533DHP2

mediatek: add keys for WSR-2533DHP2

mediatek: add LEDs for WSR-2533DHP2

mediatek: add led-pins pinctrl node for WSR-2533DHP2

mediatek: fix ethernet MAC address configurations for WSR-2533DHP2

mediatek: drop unused pci1 node for WSR-2533DHP2

mediatek: add MT7615 wireless support for WSR-2533DHP2

mediatek: drop magic for trx for WSR-2533DHP2

mediatek: add missing dt-label for WSR-2533DHP2

mediatek: use dt-label for cpu nodes for WSR-2533DHP2

mediatek: fix serial settings in chosen node for WSR-2533DHP2

mediatek: fix pcie0 reg value for WSR-2533DHP2

mediatek: add console parameter into bootargs for WSR-2533DHP2

mediatek: mt7622: add dts file for WSR-2533DHP2 into files-4.19

mediatek: mt7622: fix mtd-mac-address offset in gmac0 for WSR-2533DHP2

mediatek: mt7622: drop unused dt-label for WSR-2533DHP2

mediatek: mt7622: drop wpad-basic from DEVICE_PACKAGES

already added in DEFAULT_PACKAGES in mediatek/Makefile

mediatek: mt7622: split DEVICE_TITLE for WSR-2533DHP2

mediatek: mt7622: change device name schema for WSR-2533DHP2

mediatek: mt7622: remove some changes in Kernel 4.14 for WSR-2533DHP2

- mt7622-buffalo-wsr-2533dhp2.dts
- 0065-add-dtb-for-buffalo-wsr-2533dhp2.patch

mediatek: mt7622: re-configure ethernet for WSR-2533DHP2

mediatek: mt7622: fix fixed-link speed for WSR-2533DHP2

[    0.998807] libphy: Fixed MDIO Bus: probed
[    1.003476] sean debug physpeed = 2500
[    1.030058] libphy: mdio: probed
[    1.033619] swphy: unknown speed
[    1.036947] mtk_soc_eth 1b100000.ethernet: error bringing up device

mediatek: mt7622: add rtl8367s node for WSR-2533DHP2

mediatek: mt7622: add kmod-switch-rtl8367b to DEVICE_PACKAGES
(commit: e51183a)
The file was addedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts
The file was modifiedtarget/linux/mediatek/image/mt7622.mk (diff)
Commit 0e57d6c9531aface3204f943272c4d0213a69951 by musashino.open
mediatek: mt7622: add CONFIG_MTD_SPLIT_TRX_FW for Kernel 5.4
(commit: 0e57d6c)
The file was modifiedtarget/linux/mediatek/mt7622/config-5.4 (diff)
Commit f208ee5f40accbaf35c1ebeb7cb53c2e07f15e85 by musashino.open
mediatek: Use eth0 to connect to switch

The switch is connected to GMAC1 which is eth0.
It uses a 2.5G link, GMAC2 is not used.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(commit: f208ee5)
The file was modifiedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts (diff)
Commit f38b2896fa3eecf61f4c3660cdb3d6b96af2de1e by musashino.open
mediatek: Add swconfig to buffalo-wsr-2533dhp2

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(commit: f38b289)
The file was modifiedtarget/linux/mediatek/image/mt7622.mk (diff)
Commit 04bd86cb9eef9f9f5d1f8a357766f068651c69e1 by musashino.open
mediatek: mt7622: improve support for WSR-2533DHP2

This is a combination of 19 commits:

mediatek: mt7622: add switch configuration for WSR-2533DHP2

mediatek: mt7622: use 2500 in fixed-link for WSR-2533DHP2

mediatek: mt7622: add cpu_port into rtl8367s node for WSR-2533DHP2

mediatek: mt7622: use HSGMII mode in extif1 for WSR-2533DHP2

mediatek: mt7622: use 6 as a cpu port for WSR-2533DHP2

mediatek: mt7622: adjust extif configurations for WSR-2533DHP2

mediatek: mt7622: add red_index/red_cnt for WSR-2533DHP2

mediatek: mt7622b: drop redData properties for WSR-2533DHP2

mediatek: mt7622: drop rtkgsw node for WSR-2533DHP2

mediatek: mt7622: use "realtek,rtl8367s" in rtl8367s node for WSR-2533DHP2

mediatek: mt7622: drop unnecessary properties in rtl8367s for WSR-2533DHP2

mediatek: mt7622: use correct link speed in extif1 for WSR-2533DHP2

mediatek: mt7622: drop unnecessary gmac1 for WSR-2533DHP2

mediatek: mt7622: add sysupgrade image for WSR-2533DHP2

- use TRX Magic Number "DHP2" (requred for U-Boot)

  - if "HDR0":
=================================================
Checking Image1
--> nand read 4007ff28 200000 1c

NAND read: device 0 offset 0x200000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    30524448
Image len    2d4000
header crc32 13487169
---------------------
Bad trx header!                <------------ this

=================================================
Checking Image2
--> nand read 4007ff28 3c00000 1c

NAND read: device 0 offset 0x3c00000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    32504844
Image len    a19000
header crc32 5028d247
---------------------
trx magic OK!
--> nand read 4007ff28 3c00000 a19000

NAND read: device 0 offset 0x3c00000, size 0xa19000
10588160 bytes read: OK
---------------------
Image2 crc32 5028d247
---------------------
crc32 OK!
=================================================
\## check Image1 return 1, check Image2 return 0, Image1 crc32=0, Image2 crc32=5028d247.
Image1 is broken!!!
Image2 is ok, copy Image2 to Image1!

...

- add sysupgrade image
- add sysupgrade support for WSR-2533DHP2"

succeeded to boot, however badblock handling is ok?

mediatek: mt7622: fix memory size for WSR-2533DHP2

mediatek: mt7622: update i2c pinctrl based on stock for WSR-2533DHP2

mediatek: mt7622: fix reg in wifi node for WSR-2533DHP2

"0" should be used in size.lo
(ref:
https://elixir.bootlin.com/linux/v5.4.25/source/Documentation/devicetree/bindings/pci/pci.txt)

mediatek: mt7622: add MT7622 wmac support for WSR-2533DHP2

ref: https://patchwork.kernel.org/patch/11358169/
(commit: 04bd86c)
The file was modifiedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts (diff)
The file was modifiedtarget/linux/mediatek/image/mt7622.mk (diff)
The file was modifiedtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh (diff)
The file was modifiedtarget/linux/mediatek/mt7622/base-files/etc/board.d/02_network (diff)
Commit 88882c8c751546b7435e5efbdf1b64ca76b791e5 by musashino.open
kernel: mtdsplit_trx: add support for the TRX magic "DHP2"

for WSR-2533DHP2

The U-Boot on WSR-2533DHP2 can be booted the TRX image with a normal
magic? (WCR-1166DS, WSR-1166DHP and WSR-2533DHP(L/L-C) can)
(commit: 88882c8)
The file was modifiedtarget/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c (diff)
Commit 693e3950c9af74701f3da5332e5bade802b4f19d by musashino.open
mediatek: mt7622: use new binding instead of phy-mode for WSR-2533DHP2
(commit: 693e395)
The file was modifiedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts (diff)
Commit 96007be1463342cd58e4bdd748fcd1e10dba0f67 by musashino.open
mediatek: mt7622: use wmac label for WSR-2533DHP2
(commit: 96007be)
The file was modifiedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts (diff)
Commit ed3c74c17ae13a9925efdfd1f7ec9232e77e419a by musashino.open
mediatek: mt7622: add gpio-hog to enable RTL8367S for WSR-2533DHP2

GPIO #54 (463) is a RESET line of RTL8367S switch, setting to HIGH is
required to enable RTL8367S but rtl8367b driver doesn't support
reset-gpios, so configure the pin by gpio-hog.
(commit: ed3c74c)
The file was modifiedtarget/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-buffalo-wsr-2533dhp2.dts (diff)
Commit 00df8f4953c21bea84c517138d32d2e4b438a272 by musashino.open
kernel: rtl8367b: fix external interface modes

The interface mode number of RGMII_33V is 7 on RTL8367, but it's 9 on
RTL8367B.

the external interface modes for RTL8367 are follows:

- 0, Disabled
- 1, RGMII
- 2, MII_MAC
- 3, MII_PHY
- 4, TMII_MAC
- 5, TMII_PHY
- 6, GMII
- 7, RGMII_33V

the external interface modes for RTL8367B are follows:

- 0, Disabled
- 1, RGMII
- 2, MII_MAC
- 3, MII_PHY
- 4, TMII_MAC
- 5, TMII_PHY
- 6, GMII
- 7, RMII_MAC
- 8, RMII_PHY
- 9, RGMII_33V

But the driver in U-Boot of RT-N56U GPL tar blocks using RGMII_33V (9)
mode and it seems to be unsupported on RTL8367B, so drop it from
switch-case in rtl8367b_extif_set_mode.

ref (RTL8367):

- TL-WR2453ND v1

ref (RTL8367B):

- ASUS RT-N56U
- TP-Link Archer C2 v1

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(commit: 00df8f4)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367b.c (diff)
The file was modifiedtarget/linux/generic/files/include/linux/rtl8367.h (diff)
Commit d432ce26806a1c2a0cf523c48ad29a8bf049778d by musashino.open
kernel: rtl8367/rtl8367b: use enum values in external interface IDs
(commit: d432ce2)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367.c (diff)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367b.c (diff)
The file was modifiedtarget/linux/generic/files/include/linux/rtl8367.h (diff)
Commit 07417f428a1bc3ad3b7f3485aacd73b82f2ba708 by musashino.open
kernel: rtl8366_smi: allow chip-specific phy address
(commit: 07417f4)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8366_smi.h (diff)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8366_smi.c (diff)
Commit dfd0d628876fdb1792822931fea1d4529522335f by musashino.open
kernel: rtl8367b: initial support for Realtek switch rtl8367s

>From driver point of view no differance between rtl8367b and rtl8367s
if it connected through EXT2 (rgmii only).
So this trivial patch add some identification and initialization only.
SGMII/HSGMII mode for EXT1 is not implemented for the sake of patch
clairity.
It may be simple but without test device...

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>

/* TODO: disable RLTP */
@@ -983,6 +1004,17 @@ static int rtl8367b_setup(struct rtl8366
RTL8367B_PORT_MISC_CFG_EGRESS_MODE_ORIGINAL <<
RTL8367B_PORT_MISC_CFG_EGRESS_MODE_SHIFT);

+ /*
+ * Enable for each phy port.
+ */
+ for (i = 0; i < 5; i++) {
+ int data;
+ rtl8367b_read_phy_reg(smi, i, 0, &data);
+ data &= 0xF7FF;
+ data |= 0x200;
+ rtl8367b_write_phy_reg(smi, i, 0, data);
+ }
+
return 0;
}

@@ -1501,19 +1533,26 @@ static int rtl8367b_detect(struct rtl836
"chip mode");
return ret;
}
-
- switch (chip_ver) {
- case 0x1000:
- chip_name = "8367RB";
- break;
- case 0x1010:
- chip_name = "8367R-VB";
- break;
- default:
- dev_err(smi->parent,
- "unknown chip num:%04x ver:%04x, mode:%04x\n",
- chip_num, chip_ver, chip_mode);
- return -ENODEV;
+ if (chip_num == 0x6367 || chip_num == 0x0597 || chip_num == 0x0276) {
+ chip_name = "8367C";
+ } else {
+ switch (chip_ver) {
+ case 0x1000:
+ chip_name = "8367RB";
+ break;
+ case 0x1010:
+ chip_name = "8367R-VB";
+ break;
+ case 0x0070: /* just hint - with wrong phy_id always read 0x0070 */
+ dev_err(smi->parent,
+ "wrong switch address %d (0 or 29)?\n", smi->phy_id);
+ /* fall through */
+ default:
+ dev_err(smi->parent,
+ "unknown chip num:%04x ver:%04x, mode:%04x\n",
+ chip_num, chip_ver, chip_mode);
+ return -ENODEV;
+ }
}

dev_info(smi->parent, "RTL%s chip found\n", chip_name);
(commit: dfd0d62)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367b.c (diff)
Commit 45238c7d86f44e42755e2bc7046fef0a60fe55f7 by musashino.open
kernel: Detect RTL8367s switch

This fixes some problems with detecting the switch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(commit: 45238c7)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367b.c (diff)
Commit 3bdd2ddb43a885cc9ee6ff34ab6584c39c43c04e by musashino.open
generic: switch: add support 2500 as a switch port speed
(commit: 3bdd2dd)
The file was modifiedtarget/linux/generic/files/include/linux/switch.h (diff)
Commit f04644d5b2ecd34d26eaf4910cd311b690cc67d6 by musashino.open
swconfig: add support 2500baseT as a port speed
(commit: f04644d)
The file was modifiedpackage/network/config/swconfig/src/cli.c (diff)
Commit 2bbc04581c58788390d7ec7e9d7d1581a11b1eba by musashino.open
kernel: rtl8367: add property values for RTL8367S

- rtl8367_port_speed
- rtl8367_extif_mode
(commit: 2bbc045)
The file was modifiedtarget/linux/generic/files/include/linux/rtl8367.h (diff)
Commit c2c6c3ea2be575e79f0573ed40d294e82eb5b22e by musashino.open
kernel: rtl8367b: add initial SGMII/HSGMII support for RTL8367S

This commit includes following old commits:

kernel: rtl8367b: add initial SGMII support for RTL8367S

kernel: rtl8367b: remove unnecessary bracket

kernel: rtl8367b: add debugging outputs

kernel: rtl8367b: add more debugging outputs

kernel: rtl8367b: fix wrong bit operations in RTL8367S_SDS_MISC reg

kernel: rtl8367b: simplify SGMII case in rtl8367s_extif_set_mode

kernel: rtl8367b: correct debugging output location

kernel: rtl8367b: add disabling pre-emphasis

kernel: rtl8367b: disable HSGMII case in rtl8367s_extif_set_mode

kernel: rtl8367b: update redData

SGMII on EXTIF1 works!!!!

kernel: rtl8367b: remove unnecessary reg write (0x13C2)

RTL8367B_CHIP_VER_REG (0x1301) can be read without writing
RTL8367B_RTL_MAGIC_ID_REG

kernel: rtl8367b: drop unnecessary redData in rtl8367s_extif_set_mode

also dropped redData for HSGMII, should be re-added to get correct
support for HSGMII

kernel: rtl8367b: drop "option" value reading in rtl8367s_extif_set_mode

it maybe needed for HSGMII

kernel: rtl8367b: add EXT_TXC_DLY related configurations in GMII mode

kernel: rtl8367b: enable RGMII case in rtl8367s_extif_set_mode

kernel: rtl8367b: disable case in RGMII_33V mode (7)

kernel: rtl8367b: add missing semi-colon in rtl8367s_extif_set_mode

kernel: rtl8366-smi: add the phy_id related comment

kernel: rtl8367b: unify extif_set_force for rtl8367b/rtl8367s

kernel: rtl8367b: fix wrong value in MII_MAC/MII_PHY/DISABLED mode

kernel: rtl8367b: re-enable and update HSGMII case

kernel: rtl8367b: add initialization for extif2

kernel: rtl8367b: add 2500M speed support to rtl8367b_sw_get_port_link

kernel: rtl8367b: fix compile warnings and errors

kernel: rtl8367b: add debugging output to rtl8367b_sw_get_port_link

kernel: rtl8367b: read SDS_MISC when port==6 && chip_ver==0x00a0

kernel: rtl8367b: update HSGMII case in rtl8367s_extif_set_mode

kernel: rtl8367b: add all redData arrays for HSGMII mode

kernel: rtl8367b: add extra redData and arrays of redData

kernel: rtl8367b: add missing brackets in rtl8367b_sw_get_port_link

kernel: rtl8367b: use customized redDataHB and cleanup rtl8367s_extif_set_mode

kernel: rtl8367b: convert rtl8367s support to DeviceTree based

note: this limits support for RTL8367S to DeviceTree only

kernel: rtl8367b: fix compiler warnings

drivers/net/phy/rtl8367b.c: In function 'rtl8367b_init_regs':
drivers/net/phy/rtl8367b.c:754:6: warning: unused variable 'chip_num' [-Wunused-variable]
  u32 chip_num;
      ^~~~~~~~
drivers/net/phy/rtl8367b.c: In function 'rtl8367b_sw_get_port_link':
drivers/net/phy/rtl8367b.c:1442:6: warning: unused variable 'ret' [-Wunused-variable]
  int ret;
      ^~~
drivers/net/phy/rtl8367b.c: In function 'rtl8367b_probe':
drivers/net/phy/rtl8367b.c:1790:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  if (of_property_read_u32(pdev->dev.of_node, "cpu_port", &smi->cpu_port)
     ^

kernel: rtl8367b: set port speed as 1000M if HSGMII mode selected in RTL8367S

kernel: rtl8367b: check if cfg is null in rtl8367b_extif_init

following kernel panic occured due to this issue:

[    7.398809] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
[    7.407592] Mem abort info:
[    7.410381]   ESR = 0x96000006
[    7.413426]   EC = 0x25: DABT (current EL), IL = 32 bits
[    7.418726]   SET = 0, FnV = 0
[    7.421775]   EA = 0, S1PTW = 0
[    7.424904] Data abort info:
[    7.427774]   ISV = 0, ISS = 0x00000006
[    7.431603]   CM = 0, WnR = 0
[    7.434562] user pgtable: 4k pages, 39-bit VAs, pgdp=000000004e7ba000
[    7.440997] [0000000000000008] pgd=000000004e7ef003, pud=000000004e7ef003, pmd=0000000000000000
[    7.449693] Internal error: Oops: 96000006 [#1] SMP
[    7.454560] Modules linked in: rtl8367b(+) rtl8366_smi nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 swconfig leds_gpio gpio_button_hotplug
[    7.472205] CPU: 1 PID: 748 Comm: kmodloader Not tainted 5.4.22 #0
[    7.478373] Hardware name: Buffalo WSR-2533DHP2 (DT)
[    7.483328] pstate: 00000005 (nzcv daif -PAN -UAO)
[    7.488114] pc : 0xffffffc0086a6248
[    7.491592] lr : 0xffffffc0086a61fc
[    7.495070] sp : ffffffc01157b870
[    7.498374] x29: ffffffc01157b870 x28: ffffffc01011f7d0
[    7.503676] x27: 0000000000000018 x26: 0000000000000001
[    7.508978] x25: ffffffc0086aa840 x24: 0000000000000006
[    7.514280] x23: 0000000000000000 x22: 0000000000000000
[    7.519582] x21: ffffff8001f34000 x20: ffffffc0086a8578
[    7.524884] x19: 0000000000000000 x18: 0000000000000014
[    7.530186] x17: 000000009337cc01 x16: 000000009441ed25
[    7.535488] x15: 000000005190a69e x14: 00000000735cb2fc
[    7.540790] x13: 000000000869943c x12: 00000000bae01c96
[    7.546093] x11: 0000000000000010 x10: 0101010101010101
[    7.551395] x9 : 0000000000000008 x8 : 0000000000000008
[    7.556697] x7 : ffffffc0106b2118 x6 : 0000000000000020
[    7.561999] x5 : 0000000000000020 x4 : 0000000000000011
[    7.567301] x3 : 0000000000000000 x2 : ffffffc0112bd9f0
[    7.572603] x1 : 0000000000000000 x0 : 000000003fffffff
[    7.577904] Call trace:
[    7.580342]  0xffffffc0086a6248
[    7.583473]  0xffffffc0086a6390
[    7.586604]  0xffffffc0086a6498
[    7.589738]  rtl8366_smi_init+0xd4/0x800 [rtl8366_smi]
[    7.594866]  0xffffffc0086a59b0
[    7.598001]  platform_drv_probe+0x50/0xa0
[    7.602000]  really_probe+0xd8/0x2f8
[    7.605566]  driver_probe_device+0x54/0xe8
[    7.609651]  device_driver_attach+0x6c/0x78
[    7.613824]  __driver_attach+0x54/0xd0
[    7.617566]  bus_for_each_dev+0x60/0x98
[    7.621390]  driver_attach+0x20/0x28
[    7.624955]  bus_add_driver+0x178/0x1d8
[    7.628781]  driver_register+0x60/0x110
[    7.632606]  __platform_driver_register+0x44/0x50
[    7.637301]  init_module+0x20/0x1000 [rtl8367b]
[    7.641823]  do_one_initcall+0x74/0x1b0
[    7.645651]  do_init_module+0x50/0x200
[    7.649389]  load_module+0x1b74/0x2078
[    7.653129]  __do_sys_init_module+0x140/0x1d0
[    7.657475]  __arm64_sys_init_module+0x18/0x20
[    7.661911]  el0_svc_common.constprop.1+0x7c/0xe8
[    7.666605]  el0_svc_handler+0x20/0x80
[    7.670343]  el0_svc+0x8/0xc
[    7.673218] Code: aa1503e0 97ffde71 34ffe420 17ffff2a (b9400ac0)
[    7.679300] ---[ end trace f32a45cd4743fd6f ]---
[    7.683907] Kernel panic - not syncing: Fatal exception
[    7.689123] SMP: stopping secondary CPUs
[    7.693037] Kernel Offset: disabled
[    7.696516] CPU features: 0x0002,20002000
[    7.700514] Memory Limit: none
[    7.703559] Rebooting in 1 seconds..

kernel: rtl8367b: move phy addr configuration of RTL8367S to rtl8367b

--- and several improvements
(commit: c2c6c3e)
The file was modifiedtarget/linux/generic/files/drivers/net/phy/rtl8367b.c (diff)