Update v5.4 patches

Changes:
 - SAM:
   - Fix bug in SAN driver, triggered by thermal events.
   - Rename Surface Laptop / Book 3 HID input devices.
   - Implement Surface Laptop 1 and 2 caps-lock light.
   - Continued cleanup and misc. fixes.
   - Update docs.

Links:
- SAM: 73ea41f1ec
- kernel: b2f2899bd3
This commit is contained in:
Maximilian Luz 2020-10-08 22:34:44 +02:00
parent fb4d296f40
commit d1d4fa2d2d
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02
7 changed files with 974 additions and 728 deletions

View file

@ -1,4 +1,4 @@
From a04d5c9616f422239b00675f1929f3392ba5b224 Mon Sep 17 00:00:00 2001
From 463107b4f3a4b794406270c8333e66619bdadf05 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <cwhuang@linux.org.tw>
Date: Tue, 18 Sep 2018 11:01:37 +0800
Subject: [PATCH 1/6] surface3-oemb

View file

@ -1,4 +1,4 @@
From 9b82f30679795c4c1ca55d7095cdd67e6e06fcde Mon Sep 17 00:00:00 2001
From e9076b84d446d05265717b73de4f77e302e78598 Mon Sep 17 00:00:00 2001
From: kitakar5525 <34676735+kitakar5525@users.noreply.github.com>
Date: Thu, 20 Feb 2020 16:51:11 +0900
Subject: [PATCH 2/6] wifi
@ -6,15 +6,13 @@ Subject: [PATCH 2/6] wifi
---
drivers/net/wireless/marvell/mwifiex/Makefile | 1 +
.../net/wireless/marvell/mwifiex/cfg80211.c | 26 ++
drivers/net/wireless/marvell/mwifiex/fw.h | 2 +-
drivers/net/wireless/marvell/mwifiex/main.c | 6 +-
drivers/net/wireless/marvell/mwifiex/pcie.c | 84 ++++--
drivers/net/wireless/marvell/mwifiex/pcie.h | 3 +
.../wireless/marvell/mwifiex/pcie_quirks.c | 255 ++++++++++++++++++
.../wireless/marvell/mwifiex/pcie_quirks.h | 17 ++
.../net/wireless/marvell/mwifiex/sta_cmd.c | 14 +-
.../wireless/marvell/mwifiex/sta_cmdresp.c | 4 +-
10 files changed, 377 insertions(+), 35 deletions(-)
8 files changed, 374 insertions(+), 32 deletions(-)
create mode 100644 drivers/net/wireless/marvell/mwifiex/pcie_quirks.c
create mode 100644 drivers/net/wireless/marvell/mwifiex/pcie_quirks.h
@ -74,19 +72,6 @@ index 4e4f59c17ded..528eedfbf41c 100644
return mwifiex_drv_set_power(priv, &ps_mode);
}
diff --git a/drivers/net/wireless/marvell/mwifiex/fw.h b/drivers/net/wireless/marvell/mwifiex/fw.h
index 8047e307892e..d9f8bdbc817b 100644
--- a/drivers/net/wireless/marvell/mwifiex/fw.h
+++ b/drivers/net/wireless/marvell/mwifiex/fw.h
@@ -954,7 +954,7 @@ struct mwifiex_tkip_param {
struct mwifiex_aes_param {
u8 pn[WPA_PN_SIZE];
__le16 key_len;
- u8 key[WLAN_KEY_LEN_CCMP];
+ u8 key[WLAN_KEY_LEN_CCMP_256];
} __packed;
struct mwifiex_wapi_param {
diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index 529099137644..a26eb66865e2 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
@ -640,28 +625,6 @@ index 8bd355d7974e..484ba60b51ab 100644
if (drcs) {
adapter->drcs_enabled = true;
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
index 962d8bfe6f10..119ccacd1fcc 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
@@ -619,7 +619,7 @@ static int mwifiex_ret_802_11_key_material_v2(struct mwifiex_private *priv,
key_v2 = &resp->params.key_material_v2;
len = le16_to_cpu(key_v2->key_param_set.key_params.aes.key_len);
- if (len > WLAN_KEY_LEN_CCMP)
+ if (len > sizeof(key_v2->key_param_set.key_params.aes.key))
return -EINVAL;
if (le16_to_cpu(key_v2->action) == HostCmd_ACT_GEN_SET) {
@@ -635,7 +635,7 @@ static int mwifiex_ret_802_11_key_material_v2(struct mwifiex_private *priv,
return 0;
memset(priv->aes_key_v2.key_param_set.key_params.aes.key, 0,
- WLAN_KEY_LEN_CCMP);
+ sizeof(key_v2->key_param_set.key_params.aes.key));
priv->aes_key_v2.key_param_set.key_params.aes.key_len =
cpu_to_le16(len);
memcpy(priv->aes_key_v2.key_param_set.key_params.aes.key,
--
2.28.0

View file

@ -1,4 +1,4 @@
From 5ad0753795c3808b796a78bd31efbe7c6edb031e Mon Sep 17 00:00:00 2001
From 64af858e6b6b7ae3f2c477119221da33344f24c7 Mon Sep 17 00:00:00 2001
From: Dorian Stoll <dorian.stoll@tmsp.io>
Date: Thu, 30 Jul 2020 13:21:53 +0200
Subject: [PATCH 3/6] ipts

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
From 2d0655adddf7d426ddeb3a1b85134674293e7aca Mon Sep 17 00:00:00 2001
From 0c676d0a9104f3bae99ce722c0daca6b536869e4 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jul 2020 17:19:53 +0200
Subject: [PATCH 5/6] surface-sam-over-hid

View file

@ -1,4 +1,4 @@
From 980f9293ff6b0c2abb2b8b91b3df63f62f832cad Mon Sep 17 00:00:00 2001
From 068ef6fccf870d379a749378f71d0e21a7d4f38c Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sun, 16 Aug 2020 23:39:56 +0200
Subject: [PATCH 6/6] surface-gpe

View file

@ -41,12 +41,12 @@ sha256sums=('aa509b88cd57f909d5aaaf6d337d9553b828bfc58eea79a1e660f5fe09bcb4c5'
'181330a9cf4517abbbe29b93165bc859ad8ca14a43582f4e1d69aae2b5ecc2c9'
'ba10bbf15bdc395691d14be9ce62d9f68d02eb9f59530743b6db34987953c9a8'
'8cd2b019aac6d3807a5cdcbbbe0aad81e63193ff3e8dffd7a79d4a1421b858f6'
'cc6a195f5145d6d99f7f4758bc31009f4227247f2af43de9e9f72af5b0cdd7a7'
'53fcd223d74941ed10a8f7ee0a8c3fa01bd8a2515ff5f629a680c3fbcf7cd1e1'
'7e20487e8aa4814a6442823802931e6e2d4f784cd903f922f7d78c4241519e58'
'2f4aeec03ca00933e893a56e1e9236e2dd208886f9957c0f6b9bbec2d80785d8'
'b7437281fce14010fbbeafdfbcc06c0210507ff56d7df1e689bba8b79bd09ccd'
'ae0d4045afcd32e5d7a61d03738c8f47b679676291e144fe353fb1e8e1187dff')
'95577055962cd42cca9db7c69169e6c78e6e5e98cdeac4cb52805fffabaa7369'
'62098e2effe680bd04445f902d3f181287c8c55f557215e5e5bb98cf38e64b1f'
'26d630e3fa500d02c6f9214033cadb3fb5403fd8528823a277968f728da7e07e'
'cc793c63156b5dab5d396f22d78695f275aed171b17509f4fb944cdf3df6eb94'
'4db474c1805cbb07ba862f7aecd6217eacdf69a21afe74608dad93f3fd30d7bd'
'98ad82c271930e44aab77334a05d255858fef9f9d7bc103a6b96bcdfb626fd8a')
export KBUILD_BUILD_HOST=archlinux