forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: qca-ssdk: update to QSDK 12.1.5.r3
This "newer" version allows using 3rd party PHYs that are already supported in the upstream kernel. Some devices use non-QCA PHYs, and thus must rely on the kernel PHY drivers instead. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
- Loading branch information
Showing
12 changed files
with
124 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x-add-a-LED-quirk-for-Xiaomi-AX9000.patch → ...x-add-a-LED-quirk-for-Xiaomi-AX9000.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x-add-a-LED-quirk-for-Xiaomi-AX3600.patch → ...x-add-a-LED-quirk-for-Xiaomi-AX3600.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
package/kernel/qca-ssdk/patches/0010-QSDK-config-Avoid-Werror-heroics.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From ecd1e0c57fdf7f8916fa20f085e08bb4b6ba0396 Mon Sep 17 00:00:00 2001 | ||
From: Alexandru Gagniuc <mr.nuke.me@gmail.com> | ||
Date: Fri, 23 Sep 2022 08:21:13 -0500 | ||
Subject: [PATCH 10/11] QSDK: config: Avoid -Werror heroics | ||
|
||
Trying to compile the QSDK with warnings as errors is a very brave | ||
endeavor. It's also stupid as it doesn't work on ipq60xx: | ||
|
||
isisc_acl_prv.h:99: error: "FIELD_GET" redefined [-Werror] | ||
99 | #define FIELD_GET(reg, field, val) \ | ||
| | ||
|
||
Instead of dealing with the braindead code, just disable Werror. | ||
|
||
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> | ||
--- | ||
config | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
--- a/config | ||
+++ b/config | ||
@@ -141,7 +141,7 @@ endif | ||
|
||
ifeq ($(ARCH), arm64) | ||
ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4% 5.10% 5.15%,$(KVER))) | ||
- CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -Werror -fno-common -Wno-format-security -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-error=unused-result -mcmodel=large | ||
+ CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -fno-common -Wno-format-security -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-error=unused-result -mcmodel=large | ||
endif | ||
endif | ||
|
48 changes: 48 additions & 0 deletions
48
...e/kernel/qca-ssdk/patches/0011-Revert-qca-ssdk-remove-bridge-fdb-entry-for-the-auth.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
From c06e6edfb740d0ba0b804fa16d6222e257349089 Mon Sep 17 00:00:00 2001 | ||
From: Alexandru Gagniuc <mr.nuke.me@gmail.com> | ||
Date: Fri, 23 Sep 2022 08:30:03 -0500 | ||
Subject: [PATCH 11/11] Revert "qca-ssdk: remove bridge fdb entry for the | ||
authentication failed mac" | ||
|
||
This change causes an undefined reference to "br_fdb_delete_by_netdev". | ||
This reverts commit 144f02b982c8c707aaf84b57d8c277d03d877236. | ||
|
||
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> | ||
--- | ||
src/ref/ref_acl.c | 11 ----------- | ||
1 file changed, 11 deletions(-) | ||
|
||
--- a/src/ref/ref_acl.c | ||
+++ b/src/ref/ref_acl.c | ||
@@ -23,7 +23,6 @@ | ||
#include "ssdk_init.h" | ||
#include "ssdk_plat.h" | ||
#include <linux/etherdevice.h> | ||
-#include <linux/if_bridge.h> | ||
|
||
/* entry 0-1 is for global deny all and accept eapol rule | ||
entry 2-9 is for phy port1 specific mac accept rule | ||
@@ -128,7 +127,6 @@ _ref_acl_mac_entry_create_rule(a_uint32_ | ||
{ | ||
sw_error_t rv = SW_OK; | ||
fal_acl_rule_t rule = {0}; | ||
- struct net_device *eth_dev = NULL; | ||
a_uint32_t port_id = ssdk_ifname_to_port(dev_id, entry->ifname); | ||
SSDK_DEBUG("port_id %d entry_idx %d\n", port_id, entry_idx); | ||
|
||
@@ -224,15 +222,6 @@ _ref_acl_mac_entry_create_rule(a_uint32_ | ||
ref_acl_mac_entry[dev_id][entry_idx].port_map = BIT(port_id); | ||
ref_acl_mac_entry[dev_id][entry_idx].acl_policy = 1; | ||
} | ||
- else if (!is_deny_all_mac(entry->src_mac.uc) && !entry->acl_policy) | ||
- { | ||
- eth_dev = dev_get_by_name(&init_net, entry->ifname); | ||
- if (eth_dev) | ||
- { | ||
- br_fdb_delete_by_netdev(eth_dev, entry->src_mac.uc, 0); | ||
- dev_put(eth_dev); | ||
- } | ||
- } | ||
return rv; | ||
} | ||
|