From b3b5d0f94e548dccf1cdeeea3b8afbada670de1e Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 27 Dec 2020 00:14:57 +0100 Subject: [PATCH] Update v5.9 patches Changes: - SAM: - Add support for Surface Laptop Go Links: - SAM: https://github.com/linux-surface/surface-aggregator-module/commit/c6dd4e77bb268f7dd4463c137cc96d6cd044beee - kernel: https://github.com/linux-surface/kernel/commit/6c8bb51c597512757171f4fe98ddc003215d6b84 --- patches/5.9/0001-surface3-oemb.patch | 2 +- patches/5.9/0002-wifi.patch | 24 ++++++++++----------- patches/5.9/0003-ipts.patch | 6 +++--- patches/5.9/0004-surface-gpe.patch | 2 +- patches/5.9/0005-surface-sam-over-hid.patch | 4 ++-- patches/5.9/0006-surface-sam.patch | 24 +++++++++++++++------ patches/5.9/0007-surface-hotplug.patch | 8 +++---- patches/5.9/0008-surface-typecover.patch | 2 +- 8 files changed, 42 insertions(+), 30 deletions(-) diff --git a/patches/5.9/0001-surface3-oemb.patch b/patches/5.9/0001-surface3-oemb.patch index d1c970cc8..dbd5f6f49 100644 --- a/patches/5.9/0001-surface3-oemb.patch +++ b/patches/5.9/0001-surface3-oemb.patch @@ -1,4 +1,4 @@ -From 7143a9c957c48a95c04425e2661a001cc6aa9238 Mon Sep 17 00:00:00 2001 +From d93b56bac7f6c758169c8c31a223a5bf897e997c Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Sun, 18 Oct 2020 16:42:44 +0900 Subject: [PATCH] (surface3-oemb) add DMI matches for Surface 3 with broken DMI diff --git a/patches/5.9/0002-wifi.patch b/patches/5.9/0002-wifi.patch index 4f1c65e9f..039657516 100644 --- a/patches/5.9/0002-wifi.patch +++ b/patches/5.9/0002-wifi.patch @@ -1,4 +1,4 @@ -From cffaefc6fcdc3c6f1ad9f199349bb237a84fc887 Mon Sep 17 00:00:00 2001 +From 55a8d7c9af472a0d194ac6d74e11445dcf5e8aea Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Thu, 24 Sep 2020 18:02:06 +0900 Subject: [PATCH] mwifiex: pcie: skip cancel_work_sync() on reset failure path @@ -156,7 +156,7 @@ index fc59b522f670..048f4db6027a 100644 -- 2.29.2 -From 0d082e5613cf80c79e4d83e89ad6059ab2ab9529 Mon Sep 17 00:00:00 2001 +From 5f0c4f9b2190f49e42605c722d90ac7cde94353d Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Mon, 28 Sep 2020 17:46:49 +0900 Subject: [PATCH] mwifiex: pcie: add DMI-based quirk impl for Surface devices @@ -364,7 +364,7 @@ index 000000000000..5326ae7e5671 -- 2.29.2 -From ab17c662c93cacabad08b52a8a7524e7dcd27d49 Mon Sep 17 00:00:00 2001 +From aa4a3ba7776db9ba12c57d0ad705ed298f27d9dd Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Tue, 29 Sep 2020 17:25:22 +0900 Subject: [PATCH] mwifiex: pcie: add reset_d3cold quirk for Surface gen4+ @@ -565,7 +565,7 @@ index 5326ae7e5671..8b9dcb5070d8 100644 -- 2.29.2 -From 60a18e5ec9bfc6e9a165ba2f9f139fa2cf194b3d Mon Sep 17 00:00:00 2001 +From b71f152c8b9f3b07bf64c00db1cc54808104fb9e Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Tue, 29 Sep 2020 17:32:22 +0900 Subject: [PATCH] mwifiex: pcie: add reset_wsid quirk for Surface 3 @@ -744,7 +744,7 @@ index 8b9dcb5070d8..3ef7440418e3 100644 -- 2.29.2 -From f6e3cf59eb1dab0ab6db6d77e203ae7dc9a03cd3 Mon Sep 17 00:00:00 2001 +From 8436fce91900d6d49d815022e474eb49ce20af9b Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Wed, 30 Sep 2020 18:08:24 +0900 Subject: [PATCH] mwifiex: pcie: (OEMB) add quirk for Surface 3 with broken DMI @@ -806,7 +806,7 @@ index f0a6fa0a7ae5..34dcd84f02a6 100644 -- 2.29.2 -From d526a63dbf679639b4923038b2ef224d4ec4f856 Mon Sep 17 00:00:00 2001 +From 358752a3b7f02e10d03d71846b5c21a391582025 Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Thu, 24 Sep 2020 01:56:29 +0900 Subject: [PATCH] mwifiex: fix mwifiex_shutdown_sw() causing sw reset failure @@ -883,7 +883,7 @@ index 9ee5600351a7..5965999f1b9b 100644 -- 2.29.2 -From abd2b36e2fb9276f2883a9969e6f105cf179da30 Mon Sep 17 00:00:00 2001 +From c9e45a33790fda3ec588790e162bd2c1b95aa2ad Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Thu, 24 Sep 2020 01:56:34 +0900 Subject: [PATCH] mwifiex: pcie: use shutdown_sw()/reinit_sw() on @@ -1025,7 +1025,7 @@ index daae572ce94e..b46d56389c3b 100644 -- 2.29.2 -From af59cbb6d7783749d826c0507d47de36db58edb0 Mon Sep 17 00:00:00 2001 +From cb39f7580b59a883fe26f9de928c5c45620cae70 Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Mon, 24 Aug 2020 17:11:35 +0900 Subject: [PATCH] mwifiex: pcie: add enable_device_dump module parameter @@ -1074,7 +1074,7 @@ index b46d56389c3b..1847a0274991 100644 -- 2.29.2 -From cf12654f10787b4b56e86c6a6e1796d5aae115ec Mon Sep 17 00:00:00 2001 +From 5d6178c68fcf14f9daacdbf7c23902ffe8fa5831 Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Sun, 4 Oct 2020 00:11:49 +0900 Subject: [PATCH] mwifiex: pcie: disable bridge_d3 for Surface gen4+ @@ -1229,7 +1229,7 @@ index 3ef7440418e3..a95ebac06e13 100644 -- 2.29.2 -From 027182e61254cc684d23d636cac619a4c650c97f Mon Sep 17 00:00:00 2001 +From c87cf357966a2047e0159e59e3d1a1fedb41ac22 Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Sun, 4 Oct 2020 00:25:48 +0900 Subject: [PATCH] mwifiex: add allow_ps_mode module parameter @@ -1291,7 +1291,7 @@ index 96848fa0e417..786f7a197613 100644 -- 2.29.2 -From c9a379efb72f8fbc089d696b41a42872529ea3fa Mon Sep 17 00:00:00 2001 +From 099df989cf42ced34fd67f725771678d45cdb17b Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Sun, 4 Oct 2020 00:38:48 +0900 Subject: [PATCH] mwifiex: print message when changing ps_mode @@ -1326,7 +1326,7 @@ index 786f7a197613..8f4b8bc5ff03 100644 -- 2.29.2 -From 3dfd7e22e17ceae59c7a46a71cf8936e276f7c30 Mon Sep 17 00:00:00 2001 +From e69efbe8054c16a7af76ac8c5a9bcec0a2c0eb7e Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Sun, 4 Oct 2020 00:59:37 +0900 Subject: [PATCH] mwifiex: disable ps_mode explicitly by default instead diff --git a/patches/5.9/0003-ipts.patch b/patches/5.9/0003-ipts.patch index dd05cafcc..e73585cf5 100644 --- a/patches/5.9/0003-ipts.patch +++ b/patches/5.9/0003-ipts.patch @@ -1,4 +1,4 @@ -From 1e775665121b8dfb56b6b94a8b42b4b5ccb63e91 Mon Sep 17 00:00:00 2001 +From 9b9ca5df12025cbabe45514295ac1e814dbc3168 Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Fri, 25 Sep 2020 18:06:05 +0200 Subject: [PATCH] mei: Remove client devices before shutting down @@ -27,7 +27,7 @@ index bcee77768b91..21ed765003e1 100644 -- 2.29.2 -From c73153e8e1ba5184be23c7fb68f794f8dac52944 Mon Sep 17 00:00:00 2001 +From b1d72bf312f183f9ed275b8634180e8948166dda Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Thu, 30 Jul 2020 13:21:53 +0200 Subject: [PATCH] misc: mei: Add missing IPTS device IDs @@ -65,7 +65,7 @@ index 1de9ef7a272b..e12484840f88 100644 -- 2.29.2 -From 3396b5a4dea2588b1c9700611cac1abbd3e4b1cb Mon Sep 17 00:00:00 2001 +From 220c0c697cb7cef1d53013e64e7d72c50930fcd4 Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Thu, 6 Aug 2020 11:20:41 +0200 Subject: [PATCH] misc: Add support for Intel Precise Touch & Stylus diff --git a/patches/5.9/0004-surface-gpe.patch b/patches/5.9/0004-surface-gpe.patch index daab52128..5b39c5895 100644 --- a/patches/5.9/0004-surface-gpe.patch +++ b/patches/5.9/0004-surface-gpe.patch @@ -1,4 +1,4 @@ -From 0367c9bbeae2fdc08ed6a6c1f3353d8020384634 Mon Sep 17 00:00:00 2001 +From 849654292dbcc5e30b1bcf878b6cc313be7eae50 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 16 Aug 2020 23:39:56 +0200 Subject: [PATCH] platform/x86: Add Driver to set up lid GPEs on MS Surface diff --git a/patches/5.9/0005-surface-sam-over-hid.patch b/patches/5.9/0005-surface-sam-over-hid.patch index 4a735a605..27604a1f5 100644 --- a/patches/5.9/0005-surface-sam-over-hid.patch +++ b/patches/5.9/0005-surface-sam-over-hid.patch @@ -1,4 +1,4 @@ -From 2322d01b7541bf115ba26de485b528fbd6267c30 Mon Sep 17 00:00:00 2001 +From 83cabb34f6f071aae48046184fa9d57b3d4d912d Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 25 Jul 2020 17:19:53 +0200 Subject: [PATCH] i2c: acpi: Implement RawBytes read access @@ -109,7 +109,7 @@ index 37c510d9347a..aed579942436 100644 -- 2.29.2 -From ed864f607c21fa47bb9071fe624f1e19023abf2b Mon Sep 17 00:00:00 2001 +From 1beefbd7977ae12cefc9916f4fbf48e593cbf388 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 6 Sep 2020 04:01:19 +0200 Subject: [PATCH] platform/x86: Add driver for Surface Book 1 dGPU switch diff --git a/patches/5.9/0006-surface-sam.patch b/patches/5.9/0006-surface-sam.patch index a4e266a33..37f8623e8 100644 --- a/patches/5.9/0006-surface-sam.patch +++ b/patches/5.9/0006-surface-sam.patch @@ -1,4 +1,4 @@ -From 1c147292552ad7d9f06abaed56d297625247e8c9 Mon Sep 17 00:00:00 2001 +From 09ecd0a5dda6303ee651624092f4c02562d01014 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Mon, 17 Aug 2020 01:23:20 +0200 Subject: [PATCH] misc: surface_sam: Add file2alias support for Surface SAM @@ -100,7 +100,7 @@ index 2417dd1dee33..a6c583362b92 100644 -- 2.29.2 -From 73eae507e63f3322f4f3d86f2d2d2905e515832e Mon Sep 17 00:00:00 2001 +From e95b561277fc7223a61e0300abe942eb329af80e Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Mon, 17 Aug 2020 01:44:30 +0200 Subject: [PATCH] misc: Add support for Surface System Aggregator Module @@ -139,7 +139,7 @@ Patchset: surface-sam .../misc/surface_aggregator/clients/Makefile | 10 + .../clients/surface_acpi_notify.c | 886 ++++++ .../clients/surface_aggregator_cdev.c | 303 ++ - .../clients/surface_aggregator_registry.c | 653 +++++ + .../clients/surface_aggregator_registry.c | 665 +++++ .../clients/surface_battery.c | 1168 ++++++++ .../surface_aggregator/clients/surface_dtx.c | 1277 ++++++++ .../surface_aggregator/clients/surface_hid.c | 924 ++++++ @@ -164,7 +164,7 @@ Patchset: surface-sam include/uapi/linux/surface_aggregator/dtx.h | 146 + scripts/mod/devicetable-offsets.c | 3 +- scripts/mod/file2alias.c | 10 +- - 47 files changed, 19161 insertions(+), 7 deletions(-) + 47 files changed, 19173 insertions(+), 7 deletions(-) create mode 100644 Documentation/driver-api/surface_aggregator/client-api.rst create mode 100644 Documentation/driver-api/surface_aggregator/client.rst create mode 100644 Documentation/driver-api/surface_aggregator/clients/cdev.rst @@ -4598,10 +4598,10 @@ index 000000000000..340d15b148b9 +MODULE_LICENSE("GPL"); diff --git a/drivers/misc/surface_aggregator/clients/surface_aggregator_registry.c b/drivers/misc/surface_aggregator/clients/surface_aggregator_registry.c new file mode 100644 -index 000000000000..0165f350d28e +index 000000000000..b58930751404 --- /dev/null +++ b/drivers/misc/surface_aggregator/clients/surface_aggregator_registry.c -@@ -0,0 +1,653 @@ +@@ -0,0 +1,665 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Surface System Aggregator Module (SSAM) client device registry. @@ -4749,6 +4749,15 @@ index 000000000000..0165f350d28e + NULL, +}; + ++static const struct software_node *ssam_node_group_slg1[] = { ++ &ssam_node_root, ++ &ssam_node_hub_main, ++ &ssam_node_tmp_perf, ++ &ssam_node_bat_ac, ++ &ssam_node_bat_main, ++ NULL, ++}; ++ +static const struct software_node *ssam_node_group_sp5[] = { + &ssam_node_root, + &ssam_node_hub_main, @@ -5148,6 +5157,9 @@ index 000000000000..0165f350d28e + /* Surface Laptop 3 (15", AMD) */ + { "MSHW0110", (unsigned long)ssam_node_group_sl3 }, + ++ /* Surface Laptop Go 1 */ ++ { "MSHW0118", (unsigned long)ssam_node_group_slg1 }, ++ + { }, +}; +MODULE_DEVICE_TABLE(acpi, ssam_platform_hub_match); diff --git a/patches/5.9/0007-surface-hotplug.patch b/patches/5.9/0007-surface-hotplug.patch index f6c8ffde8..e55e62115 100644 --- a/patches/5.9/0007-surface-hotplug.patch +++ b/patches/5.9/0007-surface-hotplug.patch @@ -1,4 +1,4 @@ -From eabf84c1d6b670fea3704367f5648f2d6c2693fb Mon Sep 17 00:00:00 2001 +From d99516b57a6b5d02f40423201b0d7f2a9a43fda1 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Thu, 29 Oct 2020 22:04:38 +0100 Subject: [PATCH] PCI: Allow D3cold for hot-plug ports on Surface Books @@ -83,7 +83,7 @@ index b2fed944903e..e288e5058520 100644 -- 2.29.2 -From 0507f34f7cf6a215f3c4ccf50bb3137e7e6ac032 Mon Sep 17 00:00:00 2001 +From ac21f0d507c8b1f57566b1bbd947281b708f0fc8 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Mon, 9 Nov 2020 14:23:00 +0100 Subject: [PATCH] PCI: Run platform power transition on initial D0 entry @@ -143,7 +143,7 @@ index e288e5058520..d260c0fcf2d5 100644 -- 2.29.2 -From 77944cdcd192e9304926aa00f3f19a19ef0a8654 Mon Sep 17 00:00:00 2001 +From edebb042089e982ae1623df8eee05ceaae289b3c Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 31 Oct 2020 20:46:33 +0100 Subject: [PATCH] PCI: Add sysfs attribute for PCI device power state @@ -216,7 +216,7 @@ index 6d78df981d41..17f186ce8e87 100644 -- 2.29.2 -From e1391f8f6bbbf148f56be2742a3e73a69f4813d0 Mon Sep 17 00:00:00 2001 +From 2f0014c35ac01e1524483b064c0b7e0be21987da Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Mon, 14 Dec 2020 20:50:59 +0100 Subject: [PATCH] platform/x86: Add Surface Hotplug driver diff --git a/patches/5.9/0008-surface-typecover.patch b/patches/5.9/0008-surface-typecover.patch index 9da3433fc..03aaeab69 100644 --- a/patches/5.9/0008-surface-typecover.patch +++ b/patches/5.9/0008-surface-typecover.patch @@ -1,4 +1,4 @@ -From 08e442e2e3675959e5880bc8fea51e7e0aa03efd Mon Sep 17 00:00:00 2001 +From 892a5021b9785c826e8b0ffd381858c89d169ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 5 Nov 2020 13:09:45 +0100 Subject: [PATCH] hid/multitouch: Turn off Type Cover keyboard backlight when