openwrt/staging/jow.git
2 years agoipq806x: disable ea8500 image by default
Christian Marangi [Thu, 27 Oct 2022 23:06:07 +0000 (01:06 +0200)]
ipq806x: disable ea8500 image by default

Linksys EA8500 is currently broken after the kernel 5.15 bump. Disable
compiling it by default from buildbot to prevent brick from the user.

Don't mark it as BROKEN to permit user to compile images and permit devs
to bisect the problem with the users.

The current problem with the device is that the switch is not detected
and we can't comunicate with it via MDIO.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agobcm4908: add pending BQL support for bcm4908_enet
Rafał Miłecki [Thu, 27 Oct 2022 20:33:14 +0000 (22:33 +0200)]
bcm4908: add pending BQL support for bcm4908_enet

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agobcm4908: backport bcm4908_enet fix for NULL dereference
Rafał Miłecki [Thu, 27 Oct 2022 19:05:20 +0000 (21:05 +0200)]
bcm4908: backport bcm4908_enet fix for NULL dereference

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agobcm4908: optimize Ethernet driver by using build_skb()
Rafał Miłecki [Thu, 27 Oct 2022 16:57:39 +0000 (18:57 +0200)]
bcm4908: optimize Ethernet driver by using build_skb()

This should slightly improve performance thanks to the better cache
usage.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agorealtek: use assisted learning on CPU port
Jan Hoffmann [Tue, 25 Oct 2022 22:20:05 +0000 (00:20 +0200)]
realtek: use assisted learning on CPU port

L2 learning on the CPU port is currently not consistently configured and
relies on the default configuration of the device. On RTL83xx, it is
disabled for packets transmitted with a TX header, as hardware learning
corrupts the forwarding table otherwise. As a result, unneeded flooding
of traffic for the CPU port can already happen on some devices now. It
is also likely that similar issues exist on RTL93xx, which doesn't have
a field to disable learning in the TX header.

To address this, disable hardware learning for the CPU port globally on
all devices. Instead, enable assisted learning to let DSA write FDB
entries to the switch.

For now, this does not sync local/bridge entries to the switch. However,
support for that was added in Linux 5.14, so the next switch to a newer
kernel version is going to fix this.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2 years agorealtek: set up L2 table entries properly
Jan Hoffmann [Tue, 25 Oct 2022 22:20:04 +0000 (00:20 +0200)]
realtek: set up L2 table entries properly

Initialize the data structure using memset to avoid the possibility of
writing garbage values to the hardware.

Always set a valid entry type, which should fix writing unicast entries
on RTL930x.

For unicast entries, set the is_static flag to prevent the switch from
aging them out.

Also set the rvid field for unicast entries. This is not strictly
necessary, as the switch fills it in automatically from a non-zero vid.
However, this makes the code consistent with multicast entry setup.

While at it, reorder the statements and fix some style issues (double
space, comma instead of semicolon at end of statement). Also remove the
unneeded priv parameter and debug print for the multicast entry setup
function.

Fixes: cde31976e37 ("realtek: Add support for Layer 2 Multicast")
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2 years agobase-files: wifi: for wifi reconf, scan_wifi after network reload
Bob Cantor [Sun, 4 Jul 2021 17:26:46 +0000 (03:26 +1000)]
base-files: wifi: for wifi reconf, scan_wifi after network reload

Commit e8b542960921 included an unintended change and we now call
scan_wifi before a network reload.

Restore the original behaviour and call scan_wifi only after a network
reload.

Fixes: e8b542960921 ("base-files: wifi: tidy up the reconf code")
Signed-off-by: Bob Cantor <bobc@confidesk.com>
2 years agobase-files: wifi: for wifi up, scan_wifi after network reload
Bob Cantor [Sun, 4 Jul 2021 17:03:58 +0000 (03:03 +1000)]
base-files: wifi: for wifi up, scan_wifi after network reload

Commit b82cc8071366 included an unintended change and we now call
scan_wifi before a network reload.

Restore the original behaviour and call scan_wifi only after a network
reload.

Fixes: b82cc8071366 ("base-files: wifi: swap the order of some ubus calls")
Signed-off-by: Bob Cantor <bobc@confidesk.com>
2 years agorealtek: 5.10: refresh kernel patches
Christian Marangi [Tue, 25 Oct 2022 02:56:16 +0000 (04:56 +0200)]
realtek: 5.10: refresh kernel patches

Refresh kernel patches for realtek 5.10 kernel

Refreshed patch:
- 300-mips-add-rtl838x-platform.patch

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agoipq40xx: convert to DSA and enable Netgear Orbi devices
Davide Fioravanti [Tue, 4 Oct 2022 21:20:39 +0000 (23:20 +0200)]
ipq40xx: convert to DSA and enable Netgear Orbi devices

Convert to DSA and enable again Netgear Orbi devices:
 - RBR50
 - RBS50
 - SRR60
 - SRS60

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
2 years agogeneric: 5.15: add missing CMDLINE_OVERRIDE patch
Christian Marangi [Mon, 24 Oct 2022 21:08:06 +0000 (23:08 +0200)]
generic: 5.15: add missing CMDLINE_OVERRIDE patch

This patch was wrongly dropped with the assumption that it was moved to
generic. This wasn't the case and caused the malfunction of the Asrock
G10 router.

Reintroduce it to fix Asrock G10 functionality.

Fixes: 8cc2caed58e7 ("ipq806x: 5:15: add testing kernel version")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agoipq806x: 5.15: drop mmc-ddr-1_8v from sdcc1 node
Christian Marangi [Sat, 22 Oct 2022 14:58:19 +0000 (16:58 +0200)]
ipq806x: 5.15: drop mmc-ddr-1_8v from sdcc1 node

Zyxel NGB6817 is the only router that use mmc for rootfs. Upstream
kernel dtsi have mmc-ddr-1_8v enabled for sddc1. This is wrong as mmc on
ipq806x is supplied by a fixed 3.3v regulator and can't operate at 1.8v.
This cause the sddc1 to malfunction and cause kernel panic.
In old 5.15 version this was disabled but it was put in addition to many
other changes so it was dropped silently. Restore this patch to fix
working condition of such router.

Fixes: 88bf652 ("ipq806x: 5.15: replace dtsi patches with upstream version")
Fixes: #11000
Tested-by: Hendrik Koerner <koerhen@web.de>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agoipq806x: 5.15: revert unwanted DSA conversion for ASRock G10
Christian Marangi [Thu, 20 Oct 2022 14:53:01 +0000 (16:53 +0200)]
ipq806x: 5.15: revert unwanted DSA conversion for ASRock G10

In refreshing DTS to the upstream version an unwanted change slipped in
the commit. The ASRock G10 dts got converted to DSA without any support.

Revert this to swconfig driver to restore normal functionality.

Fixes: 88bf6525251f ("ipq806x: 5.15: replace dtsi patches with upstream version")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agoipq806x: 5.15: backport qcom_nandc patch for unprotected spare data fix
Christian Marangi [Fri, 21 Oct 2022 16:56:08 +0000 (18:56 +0200)]
ipq806x: 5.15: backport qcom_nandc patch for unprotected spare data fix

We currently ignore ret of the nandc partition parser if unprotected
spare data is true. This is the case for ipq806x nand.

Backport patch that fix this error and correctly handle error from
partition parser.

Fixes: ae6a63bc97cf ("ipq806x: 5.15: replace nandc patch with upstream version")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: backport smempart parser fixup patch with EPROBE_DEFER error
Christian Marangi [Thu, 20 Oct 2022 14:48:16 +0000 (16:48 +0200)]
generic: 5.15: backport smempart parser fixup patch with EPROBE_DEFER error

Backport patch from kernel 5.15 that mute error on EPROBE_DEFER with
smempart parser.

This parser require the smem device to be probed first and currently it
may happen that mtd gets probed before the smem device causing an error
on the smempart parser. This error may be confusing and should be muted.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: backport qcom smem patch for reserved-space support
Christian Marangi [Thu, 20 Oct 2022 14:44:56 +0000 (16:44 +0200)]
generic: 5.15: backport qcom smem patch for reserved-space support

In new kernel version from 5.16, smem node can be declared directly in
the reserved-space node. Upstream ipq806x (and to-be-merged) ipq807x
allign to this new implementation. Backport this patch to kernel 5.15 to
fix support for smem parser for ipq806x target.

Fixes: 88bf6525251f ("ipq806x: 5.15: replace dtsi patches with upstream version")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move not backport patch to pending dir
Christian Marangi [Sat, 22 Oct 2022 13:43:47 +0000 (15:43 +0200)]
generic: 5.15: move not backport patch to pending dir

Move patch wrongly placed in backport dir to pending dir as they still
didn't got merged upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move MGLRU patches from pending to backport
Christian Marangi [Fri, 21 Oct 2022 22:24:49 +0000 (00:24 +0200)]
generic: 5.15: move MGLRU patches from pending to backport

Move MGLRU patches from pending to backport as they got merged upstream.
These are direct porting from one of the dev so it's better to just move
than trying to backport them again from upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move mvebu aardvark patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 21:55:37 +0000 (23:55 +0200)]
generic: 5.15: move mvebu aardvark patch from pending to backport

Move mvebu aardvark patch from pending to backport as they got merged
upstream.
One additional patch is needed as a later fixup for it.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move ZTE MF286D modem patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 21:36:04 +0000 (23:36 +0200)]
generic: 5.15: move ZTE MF286D modem patch from pending to backport

Move ZTE MF286D modem patch from pending to backport as it was merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move bluetooth mt79 usb id patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 21:29:39 +0000 (23:29 +0200)]
generic: 5.15: move bluetooth mt79 usb id patch from pending to backport

Move bluetooth mt79 usb id patch from pending to backport as it got
merged upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move mtk eth soc patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 21:19:44 +0000 (23:19 +0200)]
generic: 5.15: move mtk eth soc patch from pending to backport

Move mtk eth soc patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move sfp HALNy patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 21:08:54 +0000 (23:08 +0200)]
generic: 5.15: move sfp HALNy patch from pending to backport

Move sfp HALNy patch from pending to backport as they got merged
upstream. The patch was reordered and one was squashed in the upstream
variant.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move pending xtx nand patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 20:43:07 +0000 (22:43 +0200)]
generic: 5.15: move pending xtx nand patch from pending to backport

Move pending xtx nand patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move dtc drop interrupt check from pending to backport
Christian Marangi [Fri, 21 Oct 2022 20:37:06 +0000 (22:37 +0200)]
generic: 5.15: move dtc drop interrupt check from pending to backport

Move dtc drop interrupto check from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agogeneric: 5.15: move MIPS cpuinfo patch from pending to backport
Christian Marangi [Fri, 21 Oct 2022 20:14:22 +0000 (22:14 +0200)]
generic: 5.15: move MIPS cpuinfo patch from pending to backport

Move MIPS cpuinfo patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agomac80211: fix masking nested A-MSDU support for mesh
Andre Heider [Thu, 20 Oct 2022 10:52:17 +0000 (12:52 +0200)]
mac80211: fix masking nested A-MSDU support for mesh

CONFIG_MAC80211_MESH isn't defined for this package, rendering the patch
useless. Match protecting the access of sta_info.mesh with the very same
define declaring it.

Fixes 45109f69a6 "mac80211: fix compile error when mesh is disabled"
Signed-off-by: Andre Heider <a.heider@gmail.com>
2 years agomac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS
Felix Fietkau [Mon, 24 Oct 2022 18:43:14 +0000 (20:43 +0200)]
mac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS

Fixes issues with disabling stack validation on non-linux systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 years agobutton-hotplug: simplify build
Felix Fietkau [Mon, 24 Oct 2022 16:16:56 +0000 (18:16 +0200)]
button-hotplug: simplify build

Remove unnecessary kconfig junk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 years agoramips: add missing WAN LED for Xiaomi Mi Router 4A / 4C
Shiji Yang [Sat, 17 Sep 2022 10:50:00 +0000 (18:50 +0800)]
ramips: add missing WAN LED for Xiaomi Mi Router 4A / 4C

The blue WAN LED connected to GPIO37 is missing, so re-add it.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2 years agotoolchain: gcc: Remove gcc 10.x support
Hauke Mehrtens [Sat, 22 Oct 2022 14:16:55 +0000 (16:16 +0200)]
toolchain: gcc: Remove gcc 10.x support

This compiler is old and was never used by default in OpenWrt.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agotoolchain: gcc: Remove gcc 8.x support
Hauke Mehrtens [Sat, 22 Oct 2022 14:15:16 +0000 (16:15 +0200)]
toolchain: gcc: Remove gcc 8.x support

This compiler is old and not used by OpenWrt for some time now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agomac80211: Update to version 5.15.74-1
Hauke Mehrtens [Sat, 15 Oct 2022 09:31:42 +0000 (11:31 +0200)]
mac80211: Update to version 5.15.74-1

This updates mac80211 to version 5.15.74-1 which is based on kernel
5.15.74.
The removed patches were applied upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agorealtek: consistently flood RMA frames
Sander Vanheule [Fri, 9 Sep 2022 19:25:17 +0000 (21:25 +0200)]
realtek: consistently flood RMA frames

The switches support different actions for incoming ethernet multicast
frames with Reserved Multicast Addresses (01-80-C2-00-00-{01-2F}). The
current code will set the 2-bit action field to FLOOD (0x3) for most
classes, but the highest bit is always unset for the relevant control
registers. This means the DROP (0x1) action being used for these
classes; whatever class the MSB happens to be in.

For RTL838x, this results in {20,23-2F} frames being dropped, instead of
flooding all ports. On other switch generations, {0F,1F,2F} frames are
dropped. This is inconsistent, and appears to be a mistake. Remove this
inconsistency by flooding all multicast frames with RMA addresses.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: remove RTL839x path in RTL838x multicast
Sander Vanheule [Fri, 9 Sep 2022 17:35:23 +0000 (19:35 +0200)]
realtek: remove RTL839x path in RTL838x multicast

The multicast setup function rtl838x_eth_set_multicast_list() checks if
the current SoC is a RTL839x family device. However, the function is
only included in the RTL838x ops table, so this path should never be
taken, making this dead code. rtl839x_eth_set_multicast_list() is
already present in the RTL839x ops table, so it should be safe to remove
this branch.

While touching the code, also re-sort the functions to match sorting
elsewhere, with rtl838x coming before rtl839x.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: reduce excessive logging for FDB operations
Jan Hoffmann [Fri, 14 Oct 2022 21:06:17 +0000 (23:06 +0200)]
realtek: reduce excessive logging for FDB operations

Currently several messages at KERN_INFO level are printed for every FDB
del/dump operation. This can cause a significant slowdown for example
while using "bridge fdb", and may even trigger a watchdog.

Remove most of these log messages, as the new L2 table debugfs node
should be a good replacement. Change the remaining messages to
KERN_DEBUG level.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2 years agorealtek: add debugfs node for L2 table
Jan Hoffmann [Fri, 14 Oct 2022 21:06:16 +0000 (23:06 +0200)]
realtek: add debugfs node for L2 table

This allows to view all unicast and multicast entries that are currently
in the L2 hash table and the CAM.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2 years agorealtek: avoid busy waiting for RTL839x PHY read/write
Jan Hoffmann [Fri, 14 Oct 2022 21:06:14 +0000 (23:06 +0200)]
realtek: avoid busy waiting for RTL839x PHY read/write

Switch to a polling implementation similar to the one for RTL838x, to
allow other kernel tasks to run while waiting.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2 years agorealtek: disable otto timer for RTL93xx targets
Markus Stockhausen [Mon, 3 Oct 2022 13:15:06 +0000 (15:15 +0200)]
realtek: disable otto timer for RTL93xx targets

The new timer is not yet ready for all targets. Avoid interactive
questions during build

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[rename symbol to CONFIG_REALTEK_OTTO_TIMER]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: timer driver: activate for RTL839X devices
Markus Stockhausen [Mon, 3 Oct 2022 12:50:17 +0000 (14:50 +0200)]
realtek: timer driver: activate for RTL839X devices

Use the new timer driver for the RTL839X devices and remove the
no longer needed modules.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct timer compatible order, update selected symbols]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: timer driver: activate for RTL838X devices
Markus Stockhausen [Mon, 3 Oct 2022 12:49:35 +0000 (14:49 +0200)]
realtek: timer driver: activate for RTL838X devices

Use the new timer driver for the RTL838X devices. Remove the no
longer needed modules.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct timer compatible order, update selected symbols]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: timer driver: documentation
Markus Stockhausen [Mon, 3 Oct 2022 12:47:18 +0000 (14:47 +0200)]
realtek: timer driver: documentation

Provide some helpful information about the devicetree configuration of
our new driver

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct compatible order in examples]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: resurrect timer driver
Markus Stockhausen [Mon, 3 Oct 2022 12:45:21 +0000 (14:45 +0200)]
realtek: resurrect timer driver

Now that we provide a clock driver for the Reltek SOCs the CPU frequency might
change on demand. This has direct visible effects during operation

- the CEVT 4K timer is no longer a stable clocksource
- after CPU frequencies changes time calculation works wrong
- sched_clock falls back to kernel default interval (100 Hz)
- timestamps in dmesg have only 2 digits left

[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps ...
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.080000] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.090000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ...

Looking around where we can start the CEVT timer for RTL930X is a good basis.
Initially it was developed as a clocksource driver for the broken timer in that
specific SOC series. Afterwards it was shifted around to the CEVT location,
got SMP enablement and lost its clocksource feature. So we at least have
something to copy from. As the timers on these devices are well understood
the implementation follows this way:

- leave the RTL930X implementation as is
- provide a new driver for RTL83XX devices only
- swap RTL930X driver at a later time

Like the clock driver this patch contains a self contained module that is SOC
independet and already provides full support for the RTL838X, RTL839X and
RTL930X devices. Some of the new (or reestablished) features are:

- simplified initialization routines
- SMP setup with CPU hotplug framework
- derived from LXB clock speed
- supplied clocksource
- dedicated register functions for better readability
- documentation about some caveats

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[remove unused header includes, remove old CONFIG_MIPS dependency, add
REALTEK_ prefix to driver symbol]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agoreadline: update to 8.2
Nick Hainke [Fri, 21 Oct 2022 12:48:58 +0000 (14:48 +0200)]
readline: update to 8.2

Release Announcement:
https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00013.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agogdb: add patch adding support for readline 8.2
Nick Hainke [Sun, 23 Oct 2022 12:26:20 +0000 (14:26 +0200)]
gdb: add patch adding support for readline 8.2

Add "001-Add-support-for-readline-8.2.patch" adding support for readline
8.2.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mkimage: bring back removed patches
Daniel Golle [Sun, 23 Oct 2022 15:21:26 +0000 (16:21 +0100)]
tools/mkimage: bring back removed patches

Patches for mtk_image supporting newer SoCs have been dropped in the
process of updating mkimage to U-Boot 2022.10. While it is true that
the patches have been merged upstream a while ago, they were not merged
in time to be part of the U-Boot 2022.10 release.
See also commit 537b423d9f ("uboot-mediatek: update to U-Boot 2022.10")
which explicitly mentions that.

Fixes: 6e245777bd ("tools/mkimage: update to 2022.10")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoipq40xx: Convert Google Wifi to DSA, reenable
Brian Norris [Sat, 22 Oct 2022 20:00:38 +0000 (13:00 -0700)]
ipq40xx: Convert Google Wifi to DSA, reenable

Undo parts of these:

116feb4a1cad ipq40xx: remove non-converted network configs
db19efee9512 ipq40xx: disable boards not converted to DSA

Reintroduce the DT paths /soc/edma@c080000/gmac{0,1}, because the stock
bootloader has memorized them (instead of following aliases); then plug
the MAC address back in via 05_set_iface_mac_ipq40xx.sh, since the
'local-mac-address' property is no longer in the correct node.

Cc: David Bauer <mail@david-bauer.net>
Cc: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2 years agoksmbd: update to 3.4.6
Nick Hainke [Fri, 21 Oct 2022 12:23:47 +0000 (14:23 +0200)]
ksmbd: update to 3.4.6

Release Announcement:
https://github.com/cifsd-team/ksmbd/releases/tag/3.4.6

Remove upstreamed:
- 10-fix-build-on-kernel-5.15.52-or-higher.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoipq40xx: convert to DSA and enable mobipromo,cm520-79f
Jack Chen [Fri, 14 Oct 2022 07:58:46 +0000 (15:58 +0800)]
ipq40xx: convert to DSA and enable mobipromo,cm520-79f

Convert to DSA and enable the MobiPromo CM520-79F device again.

Signed-off-by: Jack Chen <redchenjs@live.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2 years agoath79: fix reference clock for RouterBoard 912UAG
Pavel Kamaev [Sun, 16 Oct 2022 18:27:47 +0000 (21:27 +0300)]
ath79: fix reference clock for RouterBoard 912UAG

This fixes reference clock frequency of RB912. 25 MHz frequency leads
to system clock running too fast, uptime incrementing too fast and
delays (like `sleep 10`) returning too early.

Board has quartz with NSK 3KHAA Z 40 000 marking.

Signed-off-by: Pavel Kamaev <pavel@kamaev.me>
2 years agoramips: fix WAN mac address allocation for Unielec 01 and 06 models
David Bentham [Mon, 17 Oct 2022 14:43:29 +0000 (15:43 +0100)]
ramips: fix WAN mac address allocation for Unielec 01 and 06 models

Manufacturer has predetermined mac address values for lan and wan ports.

This change keeps inline with other mt7621 devices mac address allocation
from factory mtd partition.

Example from hexdump output:

0xe000 0x6 (lan) -           0xe006 0x6 (wan)

0000e000  70 b3 d5 10 02 96 70 b3  d5 10 02 95 ff ff ff ff

Previous change had created an overlapping mac address situation as it
would increment by one based on the lan mac address location found in the
factory partition, which would sometimes increment to the same as the
mt7603 wifi chip.

Tested on Unielec u7621-01 model

Signed-off-by: David Bentham <db260179@gmail.com>
2 years agoramips: rt3883: enable lzma-loader for Belkin F9K1109v1
Robert Senderek [Mon, 17 Oct 2022 19:15:35 +0000 (21:15 +0200)]
ramips: rt3883: enable lzma-loader for Belkin F9K1109v1

Fixes boot loader LZMA decompression issues

Fixes: #10968
Signed-off-by: Robert Senderek <robert.senderek@10g.pl>
2 years agoramips: mt7621: enable lzma-loader for Asus RT-N56U-B1
Alex Khodin [Fri, 21 Oct 2022 17:47:38 +0000 (17:47 +0000)]
ramips: mt7621: enable lzma-loader for Asus RT-N56U-B1

Fixes boot loader LZMA decompression issues.

Without this change the board end up in a boot loop.

Signed-off-by: Alex Khodin <mxktz1@gmail.com>
2 years agoramips: add A-040W-Q alternative name for MSG1500 X.00
Chukun Pan [Thu, 2 Jun 2022 15:01:29 +0000 (23:01 +0800)]
ramips: add A-040W-Q alternative name for MSG1500 X.00

The hardware of Nokia A-040W-Q and RAISECOM MSG1500 X.00 are
exactly the same, both of which are customized by operators.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2 years agokernel: move mac-address-ascii patches to generic
Chukun Pan [Wed, 1 Jun 2022 15:16:04 +0000 (23:16 +0800)]
kernel: move mac-address-ascii patches to generic

This enables other targets to use the mac-address-ascii
feature.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2 years agolantiq: add 6.1 tag to upstream patch
Aleksander Jan Bajkowski [Wed, 5 Oct 2022 21:05:26 +0000 (23:05 +0200)]
lantiq: add 6.1 tag to upstream patch

Add 6.1 tag to upstream patch now that 6.1 got tagged. This permits to
track patch in a better way and directly drop them on kernel bump.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agotools/genext2fs: Add dependency to libtool
Hauke Mehrtens [Sat, 22 Oct 2022 23:43:36 +0000 (01:43 +0200)]
tools/genext2fs: Add dependency to libtool

This fixes the following build error:
  ./autogen.sh: line 13: aclocal: command not found

Fixes: b6d29af9475f ("tools/genext2fs: update to 1.5.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agotools/genext2fs: update to 1.5.0
Nick Hainke [Sun, 21 Aug 2022 07:33:46 +0000 (09:33 +0200)]
tools/genext2fs: update to 1.5.0

Update to latest version.

Remove patches:
- 100-c99_scanf.patch
- 200-autoconf.patch
- 300-blocksize-creator.patch
- 400-byteswap_fix.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/genext2fs: switch to codeload.github.com
Nick Hainke [Sun, 21 Aug 2022 06:43:52 +0000 (08:43 +0200)]
tools/genext2fs: switch to codeload.github.com

As written on the genext2fs.sourceforge.net page:
"If you want bugfixes and nicer features though, you will have to grab
the source from github and build it yourself."

This commit switches the download from sourceforge to
codeload.github.com.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/dwarves: update to 1.24
Nick Hainke [Fri, 21 Oct 2022 21:24:29 +0000 (23:24 +0200)]
tools/dwarves: update to 1.24

Release Notes:
https://lwn.net/Articles/905738/

Switch to https "fedorapeople.org"-mirror. Use $(AUTORELEASE).

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/bash: update to 5.2
Nick Hainke [Fri, 21 Oct 2022 20:14:12 +0000 (22:14 +0200)]
tools/bash: update to 5.2

Release Notes:
https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00056.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/zlib: update to 1.2.13
Nick Hainke [Fri, 21 Oct 2022 20:41:06 +0000 (22:41 +0200)]
tools/zlib: update to 1.2.13

Switch to "https github.com" for downloading source files.

Release Announcements:
https://github.com/madler/zlib/releases/tag/v1.2.13

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/bc: update to 1.07.1
Nick Hainke [Fri, 21 Oct 2022 20:23:47 +0000 (22:23 +0200)]
tools/bc: update to 1.07.1

Changes:
  Fixed ibase extension causing problems for read()
  Fixed parallel make problem.

Remove the "003-bc-fix-hang.patch" because the hang is fixed upstream.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mtools: update to 4.0.41
Nick Hainke [Fri, 21 Oct 2022 20:01:48 +0000 (22:01 +0200)]
tools/mtools: update to 4.0.41

Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00011.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/xz: update to 5.2.7
Nick Hainke [Fri, 21 Oct 2022 20:06:49 +0000 (22:06 +0200)]
tools/xz: update to 5.2.7

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mkimage: update to 2022.10
Nick Hainke [Fri, 21 Oct 2022 20:53:58 +0000 (22:53 +0200)]
tools/mkimage: update to 2022.10

Remove upstreamed patches:
- 020-tools-mtk_image-split-gfh-header-verification-into-a.patch
- 021-tools-mtk_image-split-the-code-of-generating-NAND-he.patch
- 022-tools-mtk_image-add-support-for-nand-headers-used-by.patch

Refreshed manually:
- 030-allow-to-use-different-magic.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoiproute2: update to 6.0.0
Nick Hainke [Wed, 5 Oct 2022 10:37:47 +0000 (12:37 +0200)]
iproute2: update to 6.0.0

Release Notes:
https://lore.kernel.org/netdev/20221004082610.56b04719@hermes.local/t/

Remove upstreamed patch:
- 010-ipstats-Add-param.h-for-musl.patch

Refreshed:
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 155-keep_tirpc_optional.patch
- 170-ip_tiny.patch
- 190-fix-nls-rpath-link.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agothc-ipv6: update to 3.8
Nick Hainke [Mon, 26 Sep 2022 05:22:08 +0000 (07:22 +0200)]
thc-ipv6: update to 3.8

Remove upstreamed patches:
- 000-cflags_override.patch

Manually refresh patches:
- 100-no-ssl.patch

Add patches:
- 101-remove-march-native.patch

Add THC_APPLETS:
- toobigsniff6
- flood_unreach6
- connect6

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agogettext-full: update to 0.21.1
Nick Hainke [Sun, 16 Oct 2022 20:10:01 +0000 (22:10 +0200)]
gettext-full: update to 0.21.1

Release Announcement:
https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00009.html

Further, refresh 001-autotools.patch and manually refresh 010-m4.patch.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolibbsd: update to 0.11.7
Nick Hainke [Sun, 16 Oct 2022 18:19:01 +0000 (20:19 +0200)]
libbsd: update to 0.11.7

Changes:
084911c Release libbsd 0.11.7
3538d38 man: Discourage using the library in non-overlay mode
03fccd1 include: Adjust reallocarray() per glibc adoption
6b6e686 include: Adjust arc4random() per glibc adoption
da1f45a include: explicit_bzero() requires _DEFAULT_SOURCE
2f9eddc include: Simplify glibc version dependent macro handling
28298ac doc: Switch references from pkg-config to pkgconf
ef981f9 doc: Add missing empty line to separate README sections
6928d78 doc: Refer to the main git repository as primary
d586575 test: Fix explicit_bzero() test on the Hurd
be327c6 fgetwln: Add comment about lack of getwline(3) for recommendation
a14612d setmode: Dot not use saveset after free
f4baceb man: Rewrite gerprogname(3bsd) from scratch
f35c545 man: Lowercase man page title
b466b14 man: Document that some arc4random(3) functions are now in glibc 2.36
1f6a48b Sync arc4random(3) implementation from OpenBSD
873639e Fix ELF support for big endian SH
c9c78fd man: Use -compact also for alternative functions in libbsd(7)
5f21307 getentropy: Fix function cast for getauxval()

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotrace-cmd: update to v3.1.4
Nick Hainke [Tue, 18 Oct 2022 15:51:49 +0000 (17:51 +0200)]
trace-cmd: update to v3.1.4

ae6db8e trace-cmd record: Use result of fcntl(GETPIPE_SZ)

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agouboot-envtools: update to 2022.10
Nick Hainke [Fri, 21 Oct 2022 12:10:28 +0000 (14:10 +0200)]
uboot-envtools: update to 2022.10

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolinux-firmware: update to 20221012
Nick Hainke [Fri, 21 Oct 2022 12:17:33 +0000 (14:17 +0200)]
linux-firmware: update to 20221012

Changes:
cfbd668 rtl_bt: Update RTL8852C BT USB firmware to 0xD5B8_A40A
f49effc amdgpu: update GC 10.3.6 RLC firmware
f9a1c7f amdgpu: update GC 10.3.7 RLC firmware
eb1e45c amdgpu: update Yellow Carp RLC firmware
88557e1 amdgpu: update Beige Goby RLC firmware
2d3c1f8 amdgpu: update Dimgrey Cavefish RLC firmware
d513825 amdgpu: update Navy Flounder RLC firmware
c132bef amdgpu: update Sienna Cichlid RLC firmware
675bd6a mediatek: Update mt8195 SOF firmware to v0.4.1
44fa25d qcom: add squashed version of a530 zap shader
d2aac63 rtw89: 8852c: update fw to v0.27.56.1
c9a1ddf rtw89: 8852c: update fw to v0.27.56.0
b7d6c9f mediatek: Update mt8186 SCP firmware
fdf1a65 linux-firmware: Update AMD cpu microcode
375d450 mediatek: mt8195: Update scp.img to v2.0.11956
daee413 mediatek: Add new mt8195 SOF firmware
213255f mediatek: Update mt8186 SOF firmware to v0.2.1
9f88ec4 linux-firmware: update firmware for mediatek bluetooth chip (MT7922)
bb3f948 rtl_bt: Update RTL8852A BT USB firmware to 0xD9B8_8207
6be4c4c linux-firmware: update firmware for mediatek bluetooth chip (MT7921)
ea94bda linux-firmware: update firmware for MT7922 WiFi device
9490e8a linux-firmware: update firmware for MT7921 WiFi device
e6e48db cxgb4: Update firmware to revision 1.27.0.0
51fff4e i915: Add versionless HuC files for current platforms
067440c i915: Add GuC v70.5.1 for DG1, DG2, TGL and ADL-P
0e8f546 qca: Update firmware files for BT chip WCN3991.
3593bb7 Removing crnv32

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agomtd-utils: update to 2.1.5
Nick Hainke [Fri, 21 Oct 2022 19:51:05 +0000 (21:51 +0200)]
mtd-utils: update to 2.1.5

Release Notes:
https://lore.kernel.org/buildroot/c0992bbb-9487-9a51-ea9f-39cf074b61ec@sigma-star.at/

Refresh patches:
- 130-lzma_jffs2.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolantiq: Add Linux 5.15 as testing kernel version
Martin Blumenstingl [Mon, 21 Mar 2022 19:31:23 +0000 (20:31 +0100)]
lantiq: Add Linux 5.15 as testing kernel version

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-adsl-mei: Fix compilation with Linux 5.15
Martin Blumenstingl [Sat, 26 Mar 2022 10:19:04 +0000 (11:19 +0100)]
kernel: ltq-adsl-mei: Fix compilation with Linux 5.15

struct of_device_id is not implicitly included anymore. Include
<linux/mod_devicetable.h> to fix compilation on Linux 5.15.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-vmmc: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:28:07 +0000 (20:28 +0100)]
kernel: ltq-vmmc: Fix compilation with Linux 5.15

MODULE_SUPPORTED_DEVICE is gone after Linux 5.15. Drop it's usage on
newer kernels to fix compilation with Linux 5.15.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-vdsl-vr9-mei: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:21:04 +0000 (20:21 +0100)]
kernel: ltq-vdsl-vr9-mei: Fix compilation with Linux 5.15

The result of copy_to_user() now has to be checked explicitly. Also
MODULE_SUPPORTED_DEVICE is gone after Linux 5.10.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-tapi: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:14:08 +0000 (20:14 +0100)]
kernel: ltq-tapi: Fix compilation with Linux 5.15

MODULE_SUPPORTED_DEVICE was removed after Linux 5.10. Drop it from the
driver as well.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-deu: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:05:27 +0000 (20:05 +0100)]
kernel: ltq-deu: Fix compilation with Linux 5.15

struct of_device_id is not implicitly included anymore. Include
<linux/mod_devicetable.h> to fix compilation on Linux 5.15.
Also upstream commit a24d22b225ce15 ("crypto: sha - split sha.h into
sha1.h and sha2.h") from Linux 5.11 moves functionality from sha.h to
sha1.h.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agoltq-ifxos: add compatibility with kernel 5.15
Jan Hoffmann [Tue, 3 May 2022 13:26:29 +0000 (15:26 +0200)]
ltq-ifxos: add compatibility with kernel 5.15

set_fs is no longer supported since kernel 5.13 for mips.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agolantiq: 5.15: refresh patches
Martin Blumenstingl [Mon, 21 Mar 2022 17:39:03 +0000 (18:39 +0100)]
lantiq: 5.15: refresh patches

0001-MIPS-lantiq-add-pcie-driver.patch needs to drop
MODULE_SUPPORTED_DEVICE because that macro is gone on newer kernels.

Add checks for copy_{to,from}_user in
0008-MIPS-lantiq-backport-old-timer-code.patch which is now mandatory.

0705-v5.13-net-dsa-lantiq-allow-to-use-all-GPHYs-on-xRX300-and-.patch
get dropped because it's a backport from Linux 5.13.

All other patches are refreshed.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agolantiq: copy Linux 5.10 files in preparation for Linux 5.15 support
Martin Blumenstingl [Mon, 21 Mar 2022 17:32:41 +0000 (18:32 +0100)]
lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agoipq40xx: convert to DSA and enable asus,rt-ac42u
Chen Minqiang [Mon, 3 Oct 2022 01:41:31 +0000 (09:41 +0800)]
ipq40xx: convert to DSA and enable asus,rt-ac42u

This convert board asus,rt-ac42u to DSA and re-enable it

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2 years agokernel: x86: Add glue_helper.ko only on kernel < 5.12
Hauke Mehrtens [Sat, 22 Oct 2022 00:26:05 +0000 (02:26 +0200)]
kernel: x86: Add glue_helper.ko only on kernel < 5.12

This module was removed with kernel 5.12.
This fixes the build of the x86 target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agokernel: Add missing kernel configuration options
Hauke Mehrtens [Fri, 21 Oct 2022 22:21:42 +0000 (00:21 +0200)]
kernel: Add missing kernel configuration options

The at91/sam9x targets misses these configuration options when using
kernel 5.15.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agoat91: kernel v5.15: use KERNEL_TESTING_PATCHVER:=5.15
Claudiu Beznea [Thu, 29 Sep 2022 07:19:18 +0000 (10:19 +0300)]
at91: kernel v5.15: use KERNEL_TESTING_PATCHVER:=5.15

Use KERNEL_TESTING_PATCHVER:=15 for at91 targets.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.10: refresh configs
Claudiu Beznea [Thu, 29 Sep 2022 07:18:39 +0000 (10:18 +0300)]
at91: kernel v5.10: refresh configs

Refresh kernel v5.10 configs.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: refresh configs
Claudiu Beznea [Thu, 29 Sep 2022 07:18:11 +0000 (10:18 +0300)]
at91: kernel v5.15: refresh configs

Refresh kernel v5.15 configs.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: remove upstreamed patches
Claudiu Beznea [Thu, 15 Sep 2022 14:37:27 +0000 (17:37 +0300)]
at91: kernel v5.15: remove upstreamed patches

Remove patches that are now integrated in kernel v5.15.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: copy config and patches from 5.10
Claudiu Beznea [Thu, 15 Sep 2022 14:09:28 +0000 (17:09 +0300)]
at91: kernel v5.15: copy config and patches from 5.10

Copy kernel config and patches from 5.10. Along with it
individual targets' config-default from 5.10 has been moved to
config-5.10.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agooxnas: shuttle-kd20: fix thermal zone
Daniel Golle [Fri, 21 Oct 2022 19:47:26 +0000 (20:47 +0100)]
oxnas: shuttle-kd20: fix thermal zone

Fix typo ('_' vs '-') and add #cooling-cells to gpio-fan to get
thermal zone into functional state.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agooxnas: switch to Linux 5.15 and drop Linux 5.10
Daniel Golle [Fri, 21 Oct 2022 17:59:37 +0000 (18:59 +0100)]
oxnas: switch to Linux 5.15 and drop Linux 5.10

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoCI: kernel: fix deprecation of set-output
Christian Marangi [Fri, 21 Oct 2022 14:09:19 +0000 (16:09 +0200)]
CI: kernel: fix deprecation of set-output

From [0], github deprecated set-output with a better approach of
appending variables to $GITHUB_OUTPUT

[0] https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agokernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config
Aleksander Jan Bajkowski [Mon, 22 Feb 2021 18:48:42 +0000 (19:48 +0100)]
kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config

Endianness depends on CPU architecture. CONFIG_CPU_(BIG/LITTLE)_ENDIAN should
be enabled on target or subtarget based on SoC architecture.

Fixes warning:
$ make kernel_oldconfig CONFIG_TARGET=subtarget
...
.config:1008:warning: override: CPU_LITTLE_ENDIAN changes choice state
....

Summary:
- ARC - only the CONFIG_CPU_BIG_ENDIAN symbol is defined for this architeture.
  If it is disabled then the processor operates in LITTLE_ENDIAN mode (default),
- ARM32 - CONFIG_CPU_LITTLE_ENDIAN symbol available since kernel 5.19. This
  option should be enabled after OpenWRT moves to kernel 6.x. After refreshing
  the kernel, the symbol disappears,
- ARM64 - enabled CONFIG_CPU_LITTLE_ENDIAN,
- MIPS - enabled relevant symbols,
- POWERPC -  enabled CONFIG_CPU_BIG_ENDIAN,
- UML - Symbols are not defined for this architecture,
- X86 - always little endian. Symbols are not defined for this architecture.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agolantiq: add rgmii delays on BT Home Hub 5A
Aleksander Jan Bajkowski [Sun, 16 Oct 2022 18:05:26 +0000 (20:05 +0200)]
lantiq: add rgmii delays on BT Home Hub 5A

This comit fixes warnings that occur on kernel 5.15:
...
[    2.269736] Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6 1e108000.switch-mii:00:
               PHY has delays (e.g. via pin strapping), but phy-mode = 'rgmii'
[    2.269736] Should be 'rgmii-id' to use internal delays txskew:1500 ps rxskew:1500 ps
...

Ref: https://github.com/torvalds/linux/commit/be393dd685d215d44a43f5c5dcb8f7e57668d00e
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agobcm53xx: only fixup seama on D-Link DIR-885L
Linus Walleij [Thu, 20 Oct 2022 20:43:45 +0000 (22:43 +0200)]
bcm53xx: only fixup seama on D-Link DIR-885L

Just one device builds seama images so let's just fix up
seama on that one device. I guess the tool errors out but
this feels cleaner.

Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[rmilecki: drop "fixtrx" from D-Link case]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agobcm53xx: enable Broadcom 4366b1 firmware for Asus RT-AC88U
Arınç ÜNAL [Tue, 18 Oct 2022 08:54:20 +0000 (11:54 +0300)]
bcm53xx: enable Broadcom 4366b1 firmware for Asus RT-AC88U

On some of the hardware revisions of Asus RT-AC88U, brcmfmac detects the
4366b1 wireless chip and tries to load the firmware file which doesn't
exist because it's not included in the image.

Therefore, include firmware for 4366b1 along with 4366c0. This way, all
hardware revisions of the router will be supported by having brcmfmac use
the firmware file for the wireless chip it detects.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2 years agomediatek: filogic: consolidate adc '32k' clock
Daniel Golle [Thu, 20 Oct 2022 19:20:41 +0000 (20:20 +0100)]
mediatek: filogic: consolidate adc '32k' clock

Add dependency to '32k' ADC clock so it is always enabled for thermal
and raw access to ADC values. This allows to remove the patch for the
ADC driver and reduce the patch adding thermal support for MT7986 to
only add the new efuse layout and temperature decoding for V3.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoscripts/download.pl: pass aria2 config in ENV only
Zhang Hua [Sun, 2 Oct 2022 11:04:12 +0000 (19:04 +0800)]
scripts/download.pl: pass aria2 config in ENV only

The aria2c command tries to load config from
${XDG_CONFIG_HOME:-${HOME}/.config}/aria2/aria2.conf by default,
which may result unexpected behavior.

As a replacement, people can use environment variable ARIA2C_OPTIONS
to custom arguments passed to aria2c like curl and wget below.
Including --conf-path=/path/to/config.conf in ARIA2C_OPTIONS can
also set a custom config file path easily if needed.

Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>