Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
7e754916c7
@ -300,7 +300,7 @@ nand_upgrade_fit() {
|
||||
# Write images in the TAR file to MTD partitions and/or UBI volumes as required
|
||||
nand_upgrade_tar() {
|
||||
local tar_file="$1"
|
||||
local cmd="$2"
|
||||
local cmd="${2:-cat}"
|
||||
local jffs2_markers="${CI_JFFS2_CLEAN_MARKERS:-0}"
|
||||
|
||||
# WARNING: This fails if tar contains more than one 'sysupgrade-*' directory.
|
||||
|
||||
@ -0,0 +1,79 @@
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Sun, 6 Oct 2024 17:34:08 +0200
|
||||
Subject: [PATCH] wifi: mac80211: skip non-uploaded keys in ieee80211_iter_keys
|
||||
|
||||
Sync iterator conditions with ieee80211_iter_keys_rcu.
|
||||
|
||||
Fixes: 830af02f24fb ("mac80211: allow driver to iterate keys")
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
|
||||
--- a/net/mac80211/key.c
|
||||
+++ b/net/mac80211/key.c
|
||||
@@ -987,6 +987,26 @@ void ieee80211_reenable_keys(struct ieee
|
||||
}
|
||||
}
|
||||
|
||||
+static void
|
||||
+ieee80211_key_iter(struct ieee80211_hw *hw,
|
||||
+ struct ieee80211_vif *vif,
|
||||
+ struct ieee80211_key *key,
|
||||
+ void (*iter)(struct ieee80211_hw *hw,
|
||||
+ struct ieee80211_vif *vif,
|
||||
+ struct ieee80211_sta *sta,
|
||||
+ struct ieee80211_key_conf *key,
|
||||
+ void *data),
|
||||
+ void *iter_data)
|
||||
+{
|
||||
+ /* skip keys of station in removal process */
|
||||
+ if (key->sta && key->sta->removed)
|
||||
+ return;
|
||||
+ if (!(key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE))
|
||||
+ return;
|
||||
+ iter(hw, vif, key->sta ? &key->sta->sta : NULL,
|
||||
+ &key->conf, iter_data);
|
||||
+}
|
||||
+
|
||||
void ieee80211_iter_keys(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
void (*iter)(struct ieee80211_hw *hw,
|
||||
@@ -1005,16 +1025,13 @@ void ieee80211_iter_keys(struct ieee8021
|
||||
if (vif) {
|
||||
sdata = vif_to_sdata(vif);
|
||||
list_for_each_entry_safe(key, tmp, &sdata->key_list, list)
|
||||
- iter(hw, &sdata->vif,
|
||||
- key->sta ? &key->sta->sta : NULL,
|
||||
- &key->conf, iter_data);
|
||||
+ ieee80211_key_iter(hw, vif, key, iter, iter_data);
|
||||
} else {
|
||||
list_for_each_entry(sdata, &local->interfaces, list)
|
||||
list_for_each_entry_safe(key, tmp,
|
||||
&sdata->key_list, list)
|
||||
- iter(hw, &sdata->vif,
|
||||
- key->sta ? &key->sta->sta : NULL,
|
||||
- &key->conf, iter_data);
|
||||
+ ieee80211_key_iter(hw, &sdata->vif, key,
|
||||
+ iter, iter_data);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_iter_keys);
|
||||
@@ -1031,17 +1048,8 @@ _ieee80211_iter_keys_rcu(struct ieee8021
|
||||
{
|
||||
struct ieee80211_key *key;
|
||||
|
||||
- list_for_each_entry_rcu(key, &sdata->key_list, list) {
|
||||
- /* skip keys of station in removal process */
|
||||
- if (key->sta && key->sta->removed)
|
||||
- continue;
|
||||
- if (!(key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE))
|
||||
- continue;
|
||||
-
|
||||
- iter(hw, &sdata->vif,
|
||||
- key->sta ? &key->sta->sta : NULL,
|
||||
- &key->conf, iter_data);
|
||||
- }
|
||||
+ list_for_each_entry_rcu(key, &sdata->key_list, list)
|
||||
+ ieee80211_key_iter(hw, &sdata->vif, key, iter, iter_data);
|
||||
}
|
||||
|
||||
void ieee80211_iter_keys_rcu(struct ieee80211_hw *hw,
|
||||
@ -6,7 +6,6 @@
|
||||
RAMFS_COPY_BIN='fw_printenv fw_setenv seq strings'
|
||||
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
||||
|
||||
PART_NAME=firmware
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
platform_check_image() {
|
||||
@ -74,6 +73,10 @@ platform_do_upgrade() {
|
||||
esac
|
||||
default_do_upgrade "$1"
|
||||
;;
|
||||
iptime,nas1dual)
|
||||
PART_NAME=firmware
|
||||
;;
|
||||
|
||||
linksys,wrt1200ac|\
|
||||
linksys,wrt1900ac-v1|\
|
||||
linksys,wrt1900ac-v2|\
|
||||
|
||||
@ -1,49 +0,0 @@
|
||||
From: Sebastian Reichel <sebastian.reichel@collabora.com>
|
||||
To: Michael Turquette <mturquette@baylibre.com>,
|
||||
Stephen Boyd <sboyd@kernel.org>,
|
||||
linux-clk@vger.kernel.org
|
||||
Cc: Elaine Zhang <zhangqing@rock-chips.com>,
|
||||
Kever Yang <kever.yang@rock-chips.com>,
|
||||
Heiko Stuebner <heiko@sntech.de>,
|
||||
Rob Herring <robh+dt@kernel.org>,
|
||||
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
|
||||
Conor Dooley <conor+dt@kernel.org>,
|
||||
huangtao@rock-chips.com, andy.yan@rock-chips.com,
|
||||
Michal Tomek <mtdev79b@gmail.com>, Ilya K <me@0upti.me>,
|
||||
Chad LeClair <leclair@gmail.com>,
|
||||
devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
|
||||
Sebastian Reichel <sebastian.reichel@collabora.com>,
|
||||
kernel@collabora.com
|
||||
Subject: [PATCH v9 5/7] clk: rockchip: fix error for unknown clocks
|
||||
Date: Mon, 25 Mar 2024 20:33:36 +0100 [thread overview]
|
||||
Message-ID: <20240325193609.237182-6-sebastian.reichel@collabora.com> (raw)
|
||||
In-Reply-To: <20240325193609.237182-1-sebastian.reichel@collabora.com>
|
||||
|
||||
There is a clk == NULL check after the switch to check for
|
||||
unsupported clk types. Since clk is re-assigned in a loop,
|
||||
this check is useless right now for anything but the first
|
||||
round. Let's fix this up by assigning clk = NULL in the
|
||||
loop before the switch statement.
|
||||
|
||||
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
|
||||
---
|
||||
drivers/clk/rockchip/clk.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/clk/rockchip/clk.c
|
||||
+++ b/drivers/clk/rockchip/clk.c
|
||||
@@ -444,12 +444,13 @@ void rockchip_clk_register_branches(stru
|
||||
struct rockchip_clk_branch *list,
|
||||
unsigned int nr_clk)
|
||||
{
|
||||
- struct clk *clk = NULL;
|
||||
+ struct clk *clk;
|
||||
unsigned int idx;
|
||||
unsigned long flags;
|
||||
|
||||
for (idx = 0; idx < nr_clk; idx++, list++) {
|
||||
flags = list->flags;
|
||||
+ clk = NULL;
|
||||
|
||||
/* catch simple muxes */
|
||||
switch (list->branch_type) {
|
||||
@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=cmake
|
||||
PKG_VERSION:=3.30.3
|
||||
PKG_VERSION:=3.30.5
|
||||
PKG_VERSION_MAJOR:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
|
||||
PKG_RELEASE:=1
|
||||
PKG_CPE_ID:=cpe:/a:kitware:cmake
|
||||
@ -15,7 +15,7 @@ PKG_CPE_ID:=cpe:/a:kitware:cmake
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \
|
||||
https://cmake.org/files/v$(PKG_VERSION_MAJOR)/
|
||||
PKG_HASH:=6d5de15b6715091df7f5441007425264bdd477809f80333fdf95f846aaff88e4
|
||||
PKG_HASH:=9f55e1a40508f2f29b7e065fa08c29f82c402fa0402da839fffe64a25755a86d
|
||||
|
||||
HOST_BUILD_PARALLEL:=1
|
||||
HOST_CONFIGURE_PARALLEL:=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user