From 1d90e1addc507aa74906af4d3c309639002423f3 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Wed, 9 Nov 2022 13:19:01 +0100 Subject: [PATCH] Update v6.0 patches Changes: - Add initial support for Surface Pro 9. This includes: - Battery and charger status, - Internal HID devices (sensors and USCI HID client), and the - ACPI platform profile Links: - kernel: https://github.com/linux-surface/kernel/commit/c1599be5c6c9af2d31d36a5a9663eb8a98a7cae5 --- patches/6.0/0005-surface-sam.patch | 63 ++++++++++++++++++++- patches/6.0/0006-surface-sam-over-hid.patch | 4 +- patches/6.0/0007-surface-button.patch | 4 +- patches/6.0/0008-surface-typecover.patch | 4 +- patches/6.0/0009-cameras.patch | 16 +++--- patches/6.0/0010-amd-gpio.patch | 4 +- 6 files changed, 78 insertions(+), 17 deletions(-) diff --git a/patches/6.0/0005-surface-sam.patch b/patches/6.0/0005-surface-sam.patch index bd0234751..363f5c38b 100644 --- a/patches/6.0/0005-surface-sam.patch +++ b/patches/6.0/0005-surface-sam.patch @@ -975,7 +975,7 @@ index 46c45d1b6368..4da20b7a0ee5 100644 -- 2.38.1 -From ca7f5b648d77cf1954568710b1dbc4833efa6ad0 Mon Sep 17 00:00:00 2001 +From 9f563eff0aa1d005b1dec0f6f3166640f5922fe4 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 5 Nov 2022 21:46:37 +0100 Subject: [PATCH] platform/surface: aggregator_registry: Fix target-ID of @@ -1022,3 +1022,64 @@ index 585911020cea..3afe293ac114 100644 -- 2.38.1 +From aa2d91ef777bfb1b39581241db0827ccec864690 Mon Sep 17 00:00:00 2001 +From: Maximilian Luz +Date: Wed, 9 Nov 2022 13:13:12 +0100 +Subject: [PATCH] wip! platform/surface: ggregator_registry: Add preliminary + support for Surface Pro 9 + +Adds support for battery and charger status, as well as platform profile +and internal HID devices. Support for type-cover HID devices is still +missing, requiring validation. + +Signed-off-by: Maximilian Luz +Patchset: surface-sam +--- + .../surface/surface_aggregator_registry.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c +index 3afe293ac114..443fe7647315 100644 +--- a/drivers/platform/surface/surface_aggregator_registry.c ++++ b/drivers/platform/surface/surface_aggregator_registry.c +@@ -268,6 +268,7 @@ static const struct software_node *ssam_node_group_sp7[] = { + NULL, + }; + ++/* Devices for Surface Pro 8 */ + static const struct software_node *ssam_node_group_sp8[] = { + &ssam_node_root, + &ssam_node_hub_kip, +@@ -284,6 +285,19 @@ static const struct software_node *ssam_node_group_sp8[] = { + NULL, + }; + ++/* Devices for Surface Pro 9 */ ++static const struct software_node *ssam_node_group_sp9[] = { ++ &ssam_node_root, ++ &ssam_node_hub_kip, ++ &ssam_node_bat_ac, ++ &ssam_node_bat_main, ++ &ssam_node_tmp_pprof, ++ /* TODO: typecover/KIP devices, we can likely reuse the SP8 node but need validation */ ++ &ssam_node_hid_sam_sensors, ++ &ssam_node_hid_sam_ucm_ucsi, ++ NULL, ++}; ++ + + /* -- SSAM platform/meta-hub driver. ---------------------------------------- */ + +@@ -303,6 +317,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { + /* Surface Pro 8 */ + { "MSHW0263", (unsigned long)ssam_node_group_sp8 }, + ++ /* Surface Pro 9 */ ++ { "MSHW0343", (unsigned long)ssam_node_group_sp9 }, ++ + /* Surface Book 2 */ + { "MSHW0107", (unsigned long)ssam_node_group_gen5 }, + +-- +2.38.1 + diff --git a/patches/6.0/0006-surface-sam-over-hid.patch b/patches/6.0/0006-surface-sam-over-hid.patch index 926382329..c8fdc0bc2 100644 --- a/patches/6.0/0006-surface-sam-over-hid.patch +++ b/patches/6.0/0006-surface-sam-over-hid.patch @@ -1,4 +1,4 @@ -From cd9b9e0b53a195c33c9820c590dd4030c0891338 Mon Sep 17 00:00:00 2001 +From 7fc557a215dd9bd90687140ac62eb76bb30fff4b 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 @@ -110,7 +110,7 @@ index 08b561f0709d..d7c397bce0f0 100644 -- 2.38.1 -From 3fc91e267ef7b2599e647137f182f1eddb5bc7e6 Mon Sep 17 00:00:00 2001 +From a9cebcbb0e8fd688eeb86ac45ba34d825a06c593 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 13 Feb 2021 16:41:18 +0100 Subject: [PATCH] platform/surface: Add driver for Surface Book 1 dGPU switch diff --git a/patches/6.0/0007-surface-button.patch b/patches/6.0/0007-surface-button.patch index 5cbe8404b..02671a3be 100644 --- a/patches/6.0/0007-surface-button.patch +++ b/patches/6.0/0007-surface-button.patch @@ -1,4 +1,4 @@ -From 5db8168b2c24c5aa6ee0aea70f131c8383b8fe16 Mon Sep 17 00:00:00 2001 +From 0a836da7f5b5637e6b92f27fe8cfa0439b0934f6 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Tue, 5 Oct 2021 00:05:09 +1100 Subject: [PATCH] Input: soc_button_array - support AMD variant Surface devices @@ -75,7 +75,7 @@ index 480476121c01..36e1bf7b7a01 100644 -- 2.38.1 -From 3cdcd1241484100149637d558673071c48ddd1f9 Mon Sep 17 00:00:00 2001 +From f0b42ca9d8ab4daeceb53e41d4d120b701b0b82f Mon Sep 17 00:00:00 2001 From: Sachi King Date: Tue, 5 Oct 2021 00:22:57 +1100 Subject: [PATCH] platform/surface: surfacepro3_button: don't load on amd diff --git a/patches/6.0/0008-surface-typecover.patch b/patches/6.0/0008-surface-typecover.patch index 40a584e2e..f9a91f895 100644 --- a/patches/6.0/0008-surface-typecover.patch +++ b/patches/6.0/0008-surface-typecover.patch @@ -1,4 +1,4 @@ -From eadffce2d847b00a9d2d0d2e2d7163b7aea39310 Mon Sep 17 00:00:00 2001 +From 303492b616caaa1012f33264ce4de8b7587fb9e7 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 @@ -231,7 +231,7 @@ index 91a4d3fc30e0..458537bf4a8e 100644 -- 2.38.1 -From f5d56efc521574c67e4943f232a26ec77fe32628 Mon Sep 17 00:00:00 2001 +From 5af5a2e81ee20863eba4369b8c5155b2a7965eca Mon Sep 17 00:00:00 2001 From: PJungkamp Date: Fri, 25 Feb 2022 12:04:25 +0100 Subject: [PATCH] hid/multitouch: Add support for surface pro type cover tablet diff --git a/patches/6.0/0009-cameras.patch b/patches/6.0/0009-cameras.patch index e78c375bc..7ce7fbac7 100644 --- a/patches/6.0/0009-cameras.patch +++ b/patches/6.0/0009-cameras.patch @@ -1,4 +1,4 @@ -From 061d052ec55fce805e4ad1c63bce4d1cb3bc109e Mon Sep 17 00:00:00 2001 +From 86895ba729eea146e90b40514fe60966b3f57fad Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 10 Oct 2021 20:56:57 +0200 Subject: [PATCH] ACPI: delay enumeration of devices with a _DEP pointing to an @@ -74,7 +74,7 @@ index 42cec8120f18..72d0e599120f 100644 -- 2.38.1 -From 8ccb0dd08b53496cb6ae76cb003258ff9bb948be Mon Sep 17 00:00:00 2001 +From f511fce936e06440f04a21f9cd485323f6caca5e Mon Sep 17 00:00:00 2001 From: zouxiaoh Date: Fri, 25 Jun 2021 08:52:59 +0800 Subject: [PATCH] iommu: intel-ipu: use IOMMU passthrough mode for Intel IPUs @@ -191,7 +191,7 @@ index 4c895b5f7e2d..f68f031dee46 100644 -- 2.38.1 -From 2ea24b678e89cb098dce1c0bd8bcf9a7819d889d Mon Sep 17 00:00:00 2001 +From 5ce1c2f2262eca7563b08c5bf4000eaeb6a72bbe Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sun, 10 Oct 2021 20:57:02 +0200 Subject: [PATCH] platform/x86: int3472: Enable I2c daisy chain @@ -228,7 +228,7 @@ index 22f61b47f9e5..e1de1ff40bba 100644 -- 2.38.1 -From cf7a0e69a06f0a88ec384d0b32cb9025e1139d77 Mon Sep 17 00:00:00 2001 +From 7a3033ab417d5a0e9503fb840108774afe1d2553 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Thu, 28 Oct 2021 21:55:16 +0100 Subject: [PATCH] media: i2c: Add driver for DW9719 VCM @@ -734,7 +734,7 @@ index 000000000000..8451c75b696b -- 2.38.1 -From f7335034ebf542b5a6a51c99dcc2e1a20154884d Mon Sep 17 00:00:00 2001 +From 2938060c88263415885276b5e47eb7f8423b9b2b Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Wed, 4 May 2022 23:21:45 +0100 Subject: [PATCH] media: ipu3-cio2: Move functionality from .complete() to @@ -849,7 +849,7 @@ index a3fe547b7fce..5648f29ced7b 100644 -- 2.38.1 -From 12353dafe7200540eac4d56e8c6c6e1f29b6d0c3 Mon Sep 17 00:00:00 2001 +From 3a4032c2218d69bc4ede4dd9ca5dc22dd91d2633 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Thu, 2 Jun 2022 22:15:56 +0100 Subject: [PATCH] media: ipu3-cio2: Re-add .complete() to ipu3-cio2 @@ -892,7 +892,7 @@ index 5648f29ced7b..957a30cd369d 100644 -- 2.38.1 -From 66985330b9b44a0d17da6a5f9e79100d42c98e56 Mon Sep 17 00:00:00 2001 +From 30544d3f6e13efaeecef3ee9e734cddd1eb37510 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 15 Jul 2022 23:48:00 +0200 Subject: [PATCH] drivers/media/i2c: Fix DW9719 dependencies @@ -921,7 +921,7 @@ index 98d081efeef7..c67966cafe10 100644 -- 2.38.1 -From 3f34de959b5a15e715dbfc306a08289d8194c0c5 Mon Sep 17 00:00:00 2001 +From f2a013cdeb939a1a1db293597ad513085f543345 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Wed, 7 Sep 2022 15:38:08 +0200 Subject: [PATCH] ipu3-imgu: Fix NULL pointer dereference in diff --git a/patches/6.0/0010-amd-gpio.patch b/patches/6.0/0010-amd-gpio.patch index da4172328..239352394 100644 --- a/patches/6.0/0010-amd-gpio.patch +++ b/patches/6.0/0010-amd-gpio.patch @@ -1,4 +1,4 @@ -From 8e84b8b48f8956fa7b191e9ad06c8f11a59c96d3 Mon Sep 17 00:00:00 2001 +From b9c7415b5932b105179f8c3bcd042ba9b498c8b0 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Sat, 29 May 2021 17:47:38 +1000 Subject: [PATCH] ACPI: Add quirk for Surface Laptop 4 AMD missing irq 7 @@ -65,7 +65,7 @@ index 907cc98b1938..0116d27b29ea 100644 -- 2.38.1 -From d832fb041997ff9cb50471db5dff75db4c9bf515 Mon Sep 17 00:00:00 2001 +From cc6b9372071523cf3136c6354271e529a9996208 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Thu, 3 Jun 2021 14:04:26 +0200 Subject: [PATCH] ACPI: Add AMD 13" Surface Laptop 4 model to irq 7 override