From 36d8905c01030af7ff095da49ff241861a5ce18f Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 28 Apr 2023 19:03:40 +0200 Subject: [PATCH] Update v6.2 patches Changes: - Update IPTS driver: - Fix redefinition error on AOSP clang - Increase the polling frequency to reduce latency - Don't allocate a new buffer for every HID report - Always use the generic HID driver instead of forcing hid-multitouch - Rebase onto v6.1.26 Links: - kernel: https://github.com/linux-surface/kernel/commit/a317c58533fa7e63c6c8ef9dfa4c107e0ca0038f --- patches/6.2/0001-surface3-oemb.patch | 4 +- patches/6.2/0002-mwifiex.patch | 12 +- patches/6.2/0003-ath10k.patch | 4 +- patches/6.2/0004-ipts.patch | 204 +++++++++++++++++++- patches/6.2/0005-ithc.patch | 8 +- patches/6.2/0006-surface-sam.patch | 52 ++--- patches/6.2/0007-surface-sam-over-hid.patch | 8 +- patches/6.2/0008-surface-button.patch | 8 +- patches/6.2/0009-surface-typecover.patch | 12 +- patches/6.2/0010-surface-shutdown.patch | 4 +- patches/6.2/0011-surface-gpe.patch | 4 +- patches/6.2/0012-cameras.patch | 92 ++++----- patches/6.2/0013-amd-gpio.patch | 8 +- patches/6.2/0014-rtc.patch | 4 +- 14 files changed, 308 insertions(+), 116 deletions(-) diff --git a/patches/6.2/0001-surface3-oemb.patch b/patches/6.2/0001-surface3-oemb.patch index f5efb3c23..fadbc6731 100644 --- a/patches/6.2/0001-surface3-oemb.patch +++ b/patches/6.2/0001-surface3-oemb.patch @@ -1,4 +1,4 @@ -From 67964b7a12cbfbc30d41534803dc6aa0c89d6383 Mon Sep 17 00:00:00 2001 +From 81085868fd20169452702610e3ce203150d00683 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 @@ -97,5 +97,5 @@ index 6beb00858c33f..d82d77387a0a6 100644 }; -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0002-mwifiex.patch b/patches/6.2/0002-mwifiex.patch index 9a8271348..bc21b40d7 100644 --- a/patches/6.2/0002-mwifiex.patch +++ b/patches/6.2/0002-mwifiex.patch @@ -1,4 +1,4 @@ -From efd716f5123331754ebfc53bccfef07e17fb328b Mon Sep 17 00:00:00 2001 +From 900ba7d5bd492e5f545b32e1d5fd12ce2c37ad39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 3 Nov 2020 13:28:04 +0100 Subject: [PATCH] mwifiex: Add quirk resetting the PCI bridge on MS Surface @@ -163,9 +163,9 @@ index d6ff964aec5bf..5d30ae39d65ec 100644 void mwifiex_initialize_quirks(struct pcie_service_card *card); int mwifiex_pcie_reset_d3cold_quirk(struct pci_dev *pdev); -- -2.40.0 +2.40.1 -From 2de203271a35cc09eff860df2f35c5ca5e6ae52c Mon Sep 17 00:00:00 2001 +From 0fc07dbbb82b3a1c960e02f0c7a0db148ed25014 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+ @@ -318,9 +318,9 @@ index 5d30ae39d65ec..c14eb56eb9118 100644 void mwifiex_initialize_quirks(struct pcie_service_card *card); int mwifiex_pcie_reset_d3cold_quirk(struct pci_dev *pdev); -- -2.40.0 +2.40.1 -From 16c7b19c13e1edab7f236baa59f8f685a4d719b4 Mon Sep 17 00:00:00 2001 +From b3397ee4f7fe5270c74e86eb6671099433faff16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 25 Mar 2021 11:33:02 +0100 Subject: [PATCH] Bluetooth: btusb: Lower passive lescan interval on Marvell @@ -396,5 +396,5 @@ index 5c536151ef836..4de564dd1c604 100644 (id->driver_info & BTUSB_MEDIATEK)) { hdev->setup = btusb_mtk_setup; -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0003-ath10k.patch b/patches/6.2/0003-ath10k.patch index dbb4f0a5f..86f9f8342 100644 --- a/patches/6.2/0003-ath10k.patch +++ b/patches/6.2/0003-ath10k.patch @@ -1,4 +1,4 @@ -From b33823bea207cfd93a97f5af82c1e9fbdc9cbd2b Mon Sep 17 00:00:00 2001 +From 3bb0d557abbc61cc9b2c7ae98b10feb77c47b463 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 27 Feb 2021 00:45:52 +0100 Subject: [PATCH] ath10k: Add module parameters to override board files @@ -117,5 +117,5 @@ index 5eb131ab916fd..67f074a126d1f 100644 ret = firmware_request_nowarn(&fw, filename, ar->dev); ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot fw request '%s': %d\n", -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0004-ipts.patch b/patches/6.2/0004-ipts.patch index 51f2e43dc..b8df52528 100644 --- a/patches/6.2/0004-ipts.patch +++ b/patches/6.2/0004-ipts.patch @@ -1,4 +1,4 @@ -From 002f1450b4741bd1372e5b8ce3f321c0d8eb6e5d Mon Sep 17 00:00:00 2001 +From a8bf2b319657183cc78ebf3b53c470a27a2b23e7 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 @@ -34,9 +34,9 @@ index 5bf0d50d55a00..c13864512229f 100644 {MEI_PCI_DEVICE(MEI_DEV_ID_TGP_LP, MEI_ME_PCH15_CFG)}, -- -2.40.0 +2.40.1 -From ec89960d938c0c34f9506e49d5bd7e6aa97646b3 Mon Sep 17 00:00:00 2001 +From 1579947959006b8b23805ee83ccbbe17515a3fe1 Mon Sep 17 00:00:00 2001 From: Liban Hannan Date: Tue, 12 Apr 2022 23:31:12 +0100 Subject: [PATCH] iommu: ipts: use IOMMU passthrough mode for IPTS @@ -134,9 +134,9 @@ index 52afcdaf7c7f1..08e35f9e67a62 100644 { if (risky_device(dev)) -- -2.40.0 +2.40.1 -From 508335220b01070721aac345e3ba9547a2a00548 Mon Sep 17 00:00:00 2001 +From ff92331f7f73a4d58169801dade554313a8d7baf Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Sun, 11 Dec 2022 12:00:59 +0100 Subject: [PATCH] hid: Add support for Intel Precise Touch and Stylus @@ -2984,5 +2984,197 @@ index 0000000000000..a314843599fc3 + +#endif /* IPTS_THREAD_H */ -- -2.40.0 +2.40.1 + +From 2a621030c7dac44952f917cdcccb454c8ef4d285 Mon Sep 17 00:00:00 2001 +From: Dorian Stoll +Date: Fri, 28 Apr 2023 15:41:12 +0200 +Subject: [PATCH] Update IPTS from module repo + +Changes: + * Fix redefinition error on AOSP clang + * Increase the polling frequency to reduce latency + * Don't allocate a new buffer for every HID report + * Always use the generic HID driver instead of forcing hid-multitouch + +Based on https://github.com/linux-surface/intel-precise-touch/commit/a2b675d72dbde80ebe36a5b6ceaebd596c030314 + +Signed-off-by: Dorian Stoll +Patchset: ipts +--- + drivers/hid/ipts/hid.c | 15 +++++---------- + drivers/hid/ipts/receiver.c | 2 +- + drivers/hid/ipts/resources.c | 35 +++++++++++++++++++++++++++++++---- + drivers/hid/ipts/resources.h | 3 +++ + 4 files changed, 40 insertions(+), 15 deletions(-) + +diff --git a/drivers/hid/ipts/hid.c b/drivers/hid/ipts/hid.c +index 6782394e8dde3..a2471219615bc 100644 +--- a/drivers/hid/ipts/hid.c ++++ b/drivers/hid/ipts/hid.c +@@ -237,7 +237,6 @@ static struct hid_ll_driver ipts_hid_driver = { + + int ipts_hid_input_data(struct ipts_context *ipts, u32 buffer) + { +- int ret = 0; + u8 *temp = NULL; + struct ipts_hid_header *frame = NULL; + struct ipts_data_header *header = NULL; +@@ -250,6 +249,9 @@ int ipts_hid_input_data(struct ipts_context *ipts, u32 buffer) + + header = (struct ipts_data_header *)ipts->resources.data[buffer].address; + ++ temp = ipts->resources.report.address; ++ memset(temp, 0, ipts->resources.report.size); ++ + if (!header) + return -EFAULT; + +@@ -273,10 +275,6 @@ int ipts_hid_input_data(struct ipts_context *ipts, u32 buffer) + if (header->size + 3 + sizeof(struct ipts_hid_header) > IPTS_HID_REPORT_DATA_SIZE) + return -ERANGE; + +- temp = kzalloc(IPTS_HID_REPORT_DATA_SIZE, GFP_KERNEL); +- if (!temp) +- return -ENOMEM; +- + /* + * Synthesize a HID report matching the devices that natively send HID reports + */ +@@ -288,10 +286,7 @@ int ipts_hid_input_data(struct ipts_context *ipts, u32 buffer) + + memcpy(frame->data, header->data, header->size); + +- ret = hid_input_report(ipts->hid, HID_INPUT_REPORT, temp, IPTS_HID_REPORT_DATA_SIZE, 1); +- kfree(temp); +- +- return ret; ++ return hid_input_report(ipts->hid, HID_INPUT_REPORT, temp, IPTS_HID_REPORT_DATA_SIZE, 1); + } + + int ipts_hid_init(struct ipts_context *ipts, struct ipts_device_info info) +@@ -318,7 +313,7 @@ int ipts_hid_init(struct ipts_context *ipts, struct ipts_device_info info) + + ipts->hid->vendor = info.vendor; + ipts->hid->product = info.product; +- ipts->hid->group = HID_GROUP_MULTITOUCH; ++ ipts->hid->group = HID_GROUP_GENERIC; + + snprintf(ipts->hid->name, sizeof(ipts->hid->name), "IPTS %04X:%04X", info.vendor, + info.product); +diff --git a/drivers/hid/ipts/receiver.c b/drivers/hid/ipts/receiver.c +index 77234f9e0e178..f56e9ed32d579 100644 +--- a/drivers/hid/ipts/receiver.c ++++ b/drivers/hid/ipts/receiver.c +@@ -42,7 +42,7 @@ static void ipts_receiver_backoff(time64_t last, u32 n) + * n seconds, sleep longer to avoid wasting CPU cycles. + */ + if (last + n > ktime_get_seconds()) +- msleep(20); ++ usleep_range(1 * USEC_PER_MSEC, 5 * USEC_PER_MSEC); + else + msleep(200); + } +diff --git a/drivers/hid/ipts/resources.c b/drivers/hid/ipts/resources.c +index 80ba5885bb55d..5e924d58c4880 100644 +--- a/drivers/hid/ipts/resources.c ++++ b/drivers/hid/ipts/resources.c +@@ -9,6 +9,7 @@ + #include + #include + ++#include "desc.h" + #include "resources.h" + #include "spec-device.h" + +@@ -49,16 +50,22 @@ int ipts_resources_init(struct ipts_resources *res, struct device *dev, size_t d + { + int ret = 0; + ++ /* ++ * Some compilers (AOSP clang) complain about a redefined ++ * variable when this is declared inside of the for loop. ++ */ ++ int i = 0; ++ + if (!res) + return -EFAULT; + +- for (int i = 0; i < IPTS_BUFFERS; i++) { ++ for (i = 0; i < IPTS_BUFFERS; i++) { + ret = ipts_resources_alloc_buffer(&res->data[i], dev, ds); + if (ret) + goto err; + } + +- for (int i = 0; i < IPTS_BUFFERS; i++) { ++ for (i = 0; i < IPTS_BUFFERS; i++) { + ret = ipts_resources_alloc_buffer(&res->feedback[i], dev, fs); + if (ret) + goto err; +@@ -80,6 +87,16 @@ int ipts_resources_init(struct ipts_resources *res, struct device *dev, size_t d + if (ret) + goto err; + ++ if (!res->report.address) { ++ res->report.size = IPTS_HID_REPORT_DATA_SIZE; ++ res->report.address = kzalloc(res->report.size, GFP_KERNEL); ++ ++ if (!res->report.address) { ++ ret = -ENOMEM; ++ goto err; ++ } ++ } ++ + return 0; + + err: +@@ -90,13 +107,19 @@ int ipts_resources_init(struct ipts_resources *res, struct device *dev, size_t d + + int ipts_resources_free(struct ipts_resources *res) + { ++ /* ++ * Some compilers (AOSP clang) complain about a redefined ++ * variable when this is declared inside of the for loop. ++ */ ++ int i = 0; ++ + if (!res) + return -EFAULT; + +- for (int i = 0; i < IPTS_BUFFERS; i++) ++ for (i = 0; i < IPTS_BUFFERS; i++) + ipts_resources_free_buffer(&res->data[i]); + +- for (int i = 0; i < IPTS_BUFFERS; i++) ++ for (i = 0; i < IPTS_BUFFERS; i++) + ipts_resources_free_buffer(&res->feedback[i]); + + ipts_resources_free_buffer(&res->doorbell); +@@ -104,5 +127,9 @@ int ipts_resources_free(struct ipts_resources *res) + ipts_resources_free_buffer(&res->hid2me); + ipts_resources_free_buffer(&res->descriptor); + ++ kfree(res->report.address); ++ res->report.address = NULL; ++ res->report.size = 0; ++ + return 0; + } +diff --git a/drivers/hid/ipts/resources.h b/drivers/hid/ipts/resources.h +index 6cbb24a8a0543..e0c400f420b93 100644 +--- a/drivers/hid/ipts/resources.h ++++ b/drivers/hid/ipts/resources.h +@@ -31,6 +31,9 @@ struct ipts_resources { + struct ipts_buffer hid2me; + + struct ipts_buffer descriptor; ++ ++ // Buffer for synthesizing HID reports ++ struct ipts_buffer report; + }; + + int ipts_resources_init(struct ipts_resources *res, struct device *dev, size_t ds, size_t fs); +-- +2.40.1 diff --git a/patches/6.2/0005-ithc.patch b/patches/6.2/0005-ithc.patch index 797a2b5b5..fba3bba07 100644 --- a/patches/6.2/0005-ithc.patch +++ b/patches/6.2/0005-ithc.patch @@ -1,4 +1,4 @@ -From f07217f4ff2153f65c4acfffd6db69821bc75a12 Mon Sep 17 00:00:00 2001 +From b0f031e253812740a11e0d88cc9d9467bd0e147e Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Sun, 11 Dec 2022 12:03:38 +0100 Subject: [PATCH] iommu: intel: Disable source id verification for ITHC @@ -37,9 +37,9 @@ index f58f5f57af782..59a6a458d9bfa 100644 * DMA alias provides us with a PCI device and alias. The only case * where the it will return an alias on a different bus than the -- -2.40.0 +2.40.1 -From c7eb973cd2ff39eedbd00f78b7b5240549edb89e Mon Sep 17 00:00:00 2001 +From ccb71f13fc20ed87598a1968c1c79d1670f241bb Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Sun, 11 Dec 2022 12:10:54 +0100 Subject: [PATCH] hid: Add support for Intel Touch Host Controller @@ -1429,5 +1429,5 @@ index 0000000000000..6a9b0d480bc15 +void ithc_log_regs(struct ithc *ithc); + -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0006-surface-sam.patch b/patches/6.2/0006-surface-sam.patch index e3b0e36c7..8b338af22 100644 --- a/patches/6.2/0006-surface-sam.patch +++ b/patches/6.2/0006-surface-sam.patch @@ -1,4 +1,4 @@ -From 778a2db8ce2dcbd906a54a8485fd7d709676b49e Mon Sep 17 00:00:00 2001 +From f09ba7950e39a6722c0dfeda92d809f7a91740f7 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:20 +0100 Subject: [PATCH] platform/surface: aggregator: Improve documentation and @@ -287,9 +287,9 @@ index 45501b6e54e8a..5c4ae1a261831 100644 * Known SSH/EC target categories. * -- -2.40.0 +2.40.1 -From 7a7544bea5dfe1af1dc4d7c37d082437a4c58b54 Mon Sep 17 00:00:00 2001 +From aaca519aa0c2ac1ca78eff2cb321d156eb449889 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:21 +0100 Subject: [PATCH] platform/surface: aggregator: Add target and source IDs to @@ -484,9 +484,9 @@ index 2a2c17771d014..55cc61bba1da6 100644 ssam_show_generic_u8_field(__entry->cid), ssam_show_generic_u8_field(__entry->iid), -- -2.40.0 +2.40.1 -From bf7023d6b488b105cf31620d274b840cb69903c6 Mon Sep 17 00:00:00 2001 +From 5af94d2d902d0ec3d1f1cbfecc1b71fac27557cd Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:22 +0100 Subject: [PATCH] platform/surface: aggregator_hub: Use target-ID enum instead @@ -527,9 +527,9 @@ index 43061514be382..62f27cdb6ca8f 100644 .instance_id = 0x00, }); -- -2.40.0 +2.40.1 -From 0e4e08a89e876ab9a2c249723bdeb854014caa2a Mon Sep 17 00:00:00 2001 +From 364ca50f0fac51ca5cf1f17e8c8cbf7edde6d0d5 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:23 +0100 Subject: [PATCH] platform/surface: aggregator_tabletsw: Use target-ID enum @@ -579,9 +579,9 @@ index 27d95a6a78513..bd8cd453c393a 100644 .instance_id = 0x00, }); -- -2.40.0 +2.40.1 -From ee1aa0af02119f77a220275b91fab59094635284 Mon Sep 17 00:00:00 2001 +From 445bbd42b197e670b3381f3ce35a99cce3d9aa22 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:24 +0100 Subject: [PATCH] platform/surface: dtx: Use target-ID enum instead of @@ -677,9 +677,9 @@ index ed36944467f9f..0de76a784a35f 100644 .instance_id = 0x00, }); -- -2.40.0 +2.40.1 -From d6c563a663aadd47bb16fa754b8b75b44624a456 Mon Sep 17 00:00:00 2001 +From d515bb0c8aee7780a2be9620420fff37ba80a49d Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:25 +0100 Subject: [PATCH] HID: surface-hid: Use target-ID enum instead of hard-coding @@ -711,9 +711,9 @@ index 0635341bc5174..42933bf3e925f 100644 shid->uid.function = 0; -- -2.40.0 +2.40.1 -From 036831a2ce3ed84af6d8b47021c223257bf2ee83 Mon Sep 17 00:00:00 2001 +From aed1255a71f2e32a643e1333c39a9ada4dc8079f Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:26 +0100 Subject: [PATCH] platform/surface: aggregator: Enforce use of target-ID enum @@ -947,9 +947,9 @@ index 46c45d1b63682..4da20b7a0ee5e 100644 /* * enum ssam_device_flags - Flags for SSAM client devices. -- -2.40.0 +2.40.1 -From 5fcfeffcaaeaf3c70164a9eeb4fdccfca8a83724 Mon Sep 17 00:00:00 2001 +From 63bad7df33cf6de592fd14a69939aabe14d5afc1 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Fri, 2 Dec 2022 23:33:27 +0100 Subject: [PATCH] platform/surface: aggregator_registry: Fix target-ID of @@ -1002,9 +1002,9 @@ index 023f126121d7d..296f72d52e6a6 100644 }; -- -2.40.0 +2.40.1 -From 93a1a375c4f1ce074bd307172dedb2ca97306b6c Mon Sep 17 00:00:00 2001 +From 9f93ec28f976276c1d209897db4998816e68fcc6 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Tue, 20 Dec 2022 18:56:08 +0100 Subject: [PATCH] platform/surface: aggregator: Rename top-level request @@ -1549,9 +1549,9 @@ index 4da20b7a0ee5e..1545e5567b152 100644 */ #define SSAM_DEFINE_SYNC_REQUEST_CL_WR(name, atype, rtype, spec...) \ -- -2.40.0 +2.40.1 -From cbda18650bf1a358a7f55882abd9f523ed8b4b85 Mon Sep 17 00:00:00 2001 +From e7f3f21eed0fe068e4e41e52371fdfe6e92f2695 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 18 Jan 2023 11:38:23 +0200 Subject: [PATCH] platform/surface: Switch to use acpi_evaluate_dsm_typed() @@ -1605,9 +1605,9 @@ index f004a24952013..7b6d887dccdbf 100644 static irqreturn_t shps_handle_irq(int irq, void *data) -- -2.40.0 +2.40.1 -From 807bfac2ed7c426d2ee50b138cb12c3287b3d378 Mon Sep 17 00:00:00 2001 +From 15802d887a72347893b22305ffec5511da1e93af Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 4 Mar 2023 20:09:36 +0100 Subject: [PATCH] platform/surface: aggregator_tabletsw: Properly handle @@ -1913,9 +1913,9 @@ index 9fed800c7cc09..e8682f52558f3 100644 } -- -2.40.0 +2.40.1 -From e02b980f674971a8a4e85bf910c7d6f50483d5d0 Mon Sep 17 00:00:00 2001 +From 7c1a9e726544f6608e0935329f269c6e7ddd6a24 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 19 Feb 2023 23:33:43 +0100 Subject: [PATCH] platform/surface: aggregator_tabletsw: Add support for @@ -2030,9 +2030,9 @@ index e8682f52558f3..8f52b62d1c195 100644 return ssam_pos_state_is_tablet_mode_sls(sw, state->state); -- -2.40.0 +2.40.1 -From b9470768b196195f4e44378299c78f478dbb5096 Mon Sep 17 00:00:00 2001 +From 2b56f3af1ded50131e1e58ddadb0173428afddf4 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 19 Feb 2023 23:41:18 +0100 Subject: [PATCH] platform/surface: aggregator_registry: Add support for @@ -2061,5 +2061,5 @@ index 296f72d52e6a6..0fe5be5396525 100644 &ssam_node_hid_kip_penstash, &ssam_node_hid_kip_touchpad, -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0007-surface-sam-over-hid.patch b/patches/6.2/0007-surface-sam-over-hid.patch index 7acd3c83d..3ffc8ac18 100644 --- a/patches/6.2/0007-surface-sam-over-hid.patch +++ b/patches/6.2/0007-surface-sam-over-hid.patch @@ -1,4 +1,4 @@ -From 210d383e29aee631650f951351fae9712da009ef Mon Sep 17 00:00:00 2001 +From 240edad984bafbaa556f9a06ae14ce843b0e9216 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 @@ -108,9 +108,9 @@ index 4dd777cc0c89f..b2338618163ad 100644 dev_warn(&adapter->dev, "protocol 0x%02x not supported for client 0x%02x\n", accessor_type, client->addr); -- -2.40.0 +2.40.1 -From 40308d86e91a5396416b378ba73dd96d3f5d5dfa Mon Sep 17 00:00:00 2001 +From c8d3f976ec3be9089812fe5c9414a7fde1922f9e 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 @@ -331,5 +331,5 @@ index 0000000000000..8b816ed8f35c6 +MODULE_DESCRIPTION("Discrete GPU Power-Switch for Surface Book 1"); +MODULE_LICENSE("GPL"); -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0008-surface-button.patch b/patches/6.2/0008-surface-button.patch index 03ebb3a17..aa011a3a1 100644 --- a/patches/6.2/0008-surface-button.patch +++ b/patches/6.2/0008-surface-button.patch @@ -1,4 +1,4 @@ -From 95137da18e3280468a9ae8c8c08665c23d6331d3 Mon Sep 17 00:00:00 2001 +From 5bf942da43bf56aae525f694f5afc09e64b38790 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 @@ -73,9 +73,9 @@ index 09489380afda7..0f02411a60f1c 100644 /* -- -2.40.0 +2.40.1 -From 30283e8c20af0d8bdf9f7d7075ca85d34b4c8870 Mon Sep 17 00:00:00 2001 +From fa72094ddf6a939289390a949678254ca8c6292d 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 @@ -145,5 +145,5 @@ index 2755601f979cd..4240c98ca2265 100644 -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0009-surface-typecover.patch b/patches/6.2/0009-surface-typecover.patch index 5eb34b11b..e9c928c7a 100644 --- a/patches/6.2/0009-surface-typecover.patch +++ b/patches/6.2/0009-surface-typecover.patch @@ -1,4 +1,4 @@ -From 3d290bb729d71c5952ccb275803d451e2bb6557a Mon Sep 17 00:00:00 2001 +From 1d4c4bc33d927422f07e68bb3992fc85b2cf4916 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 18 Feb 2023 01:02:49 +0100 Subject: [PATCH] USB: quirks: Add USB_QUIRK_DELAY_INIT for Surface Go 3 @@ -37,9 +37,9 @@ index 934b3d997702e..2c6604c6e8e12 100644 { USB_DEVICE(0x046a, 0x0023), .driver_info = USB_QUIRK_RESET_RESUME }, -- -2.40.0 +2.40.1 -From de05852c9a1295c7e8f415b6c12059fd9519b901 Mon Sep 17 00:00:00 2001 +From 1526d2b87c278e04890f3288bb354b069142158e 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 @@ -270,9 +270,9 @@ index e31be0cb8b850..63fd042aba6ba 100644 { .driver_data = MT_CLS_GOOGLE, HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE, -- -2.40.0 +2.40.1 -From f8bf8b278e663f3c7cfc269a1c5cffd7342a906b Mon Sep 17 00:00:00 2001 +From 9ca8b12477149fea18ea7ba8e3ffe01d5d163109 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 @@ -570,5 +570,5 @@ index 63fd042aba6ba..508a250ff4bf1 100644 unregister_pm_notifier(&td->pm_notifier); del_timer_sync(&td->release_timer); -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0010-surface-shutdown.patch b/patches/6.2/0010-surface-shutdown.patch index a39213940..3439f6617 100644 --- a/patches/6.2/0010-surface-shutdown.patch +++ b/patches/6.2/0010-surface-shutdown.patch @@ -1,4 +1,4 @@ -From d335694ac0657ca040b1f2fa9799a16d862b2923 Mon Sep 17 00:00:00 2001 +From 52b7f357ad0de06aad78881cffcb7acf0d753f70 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 19 Feb 2023 22:12:24 +0100 Subject: [PATCH] PCI: Add quirk to prevent calling shutdown mehtod @@ -93,5 +93,5 @@ index 7e8e8633ad905..a09234cf28796 100644 atomic_t enable_cnt; /* pci_enable_device has been called */ -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0011-surface-gpe.patch b/patches/6.2/0011-surface-gpe.patch index 1815611eb..4ea0d6192 100644 --- a/patches/6.2/0011-surface-gpe.patch +++ b/patches/6.2/0011-surface-gpe.patch @@ -1,4 +1,4 @@ -From bec43860c192a554c7923f82ddd6403d36aa9c1c Mon Sep 17 00:00:00 2001 +From 7e5788676465be04d3c1db34b80767bb17bf7737 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 12 Mar 2023 01:41:57 +0100 Subject: [PATCH] platform/surface: gpe: Add support for Surface Pro 9 @@ -47,5 +47,5 @@ index c219b840d491a..69c4352e8406b 100644 .ident = "Surface Book 1", .matches = { -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0012-cameras.patch b/patches/6.2/0012-cameras.patch index 57d722727..faee43482 100644 --- a/patches/6.2/0012-cameras.patch +++ b/patches/6.2/0012-cameras.patch @@ -1,4 +1,4 @@ -From 56240912f92185264a4f3e509d962f3bf87d6de1 Mon Sep 17 00:00:00 2001 +From 840b8ef6257ac159e19c3581daaa82f05ad68708 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 @@ -72,9 +72,9 @@ index 0c6f06abe3f47..4fc320f424e8e 100644 * Do not enumerate devices with enumeration_by_parent flag set as * they will be enumerated by their respective parents. -- -2.40.0 +2.40.1 -From 9f596394ab56d947ca5de48c2f8128b05025fe46 Mon Sep 17 00:00:00 2001 +From 076e1b192c897f379180ea28ac09ed3551ae03a2 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 @@ -189,9 +189,9 @@ index 08e35f9e67a62..a8f20384dfd4b 100644 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x9D3E, quirk_iommu_ipts); -- -2.40.0 +2.40.1 -From 7df4522c095c27ccbe662cd1e72e8e6116173d28 Mon Sep 17 00:00:00 2001 +From e8cef5a3d60c801a1857282cc350bef940b02004 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 @@ -226,9 +226,9 @@ index 5b8d1a9620a5d..6a0ff035cf209 100644 return 0; -- -2.40.0 +2.40.1 -From b5d9851b25d2f41c2d8b566a227695eb40e6eb3b Mon Sep 17 00:00:00 2001 +From 87801859ebe76d531f28e30da92570d31f785c67 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 @@ -730,9 +730,9 @@ index 0000000000000..180b04d2a6b3a +MODULE_DESCRIPTION("DW9719 VCM Driver"); +MODULE_LICENSE("GPL"); -- -2.40.0 +2.40.1 -From 1b9c5b1902d5dd389fced7a51649e88834ee4c45 Mon Sep 17 00:00:00 2001 +From a3fe98866c446e906264de3425596864853ab0f5 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 @@ -845,9 +845,9 @@ index 3b76a9d0383a8..38f9f4da1922e 100644 static int cio2_parse_firmware(struct cio2_device *cio2) -- -2.40.0 +2.40.1 -From f449b95f198517633020e069475fbbc29a192895 Mon Sep 17 00:00:00 2001 +From c228adc9d76d237a0212e5c4d22bbe56614704a7 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 @@ -888,9 +888,9 @@ index 38f9f4da1922e..82681df7d794f 100644 static int cio2_parse_firmware(struct cio2_device *cio2) -- -2.40.0 +2.40.1 -From 0ad6c3c8e0184919c51c4adb566969b9fe1e8288 Mon Sep 17 00:00:00 2001 +From 37017dca3d8ea8fd8482fa6ae49e4576fe8016be 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 @@ -917,9 +917,9 @@ index 8cfd7b6c4bf54..11b8acd7cc5fe 100644 select VIDEO_V4L2_SUBDEV_API select V4L2_ASYNC -- -2.40.0 +2.40.1 -From 72a302f12c71d49515f4a2fbf554160f6470c990 Mon Sep 17 00:00:00 2001 +From bb5d1fa9d8412da365e5eb39b15228ca2efc5fbb Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Thu, 2 Mar 2023 12:59:39 +0000 Subject: [PATCH] platform/x86: int3472: Remap reset GPIO for INT347E @@ -973,9 +973,9 @@ index c42c3faa2c32d..6f4b8e24eb56c 100644 if (!func) return 0; -- -2.40.0 +2.40.1 -From e906323a5b30c2b942e2af09765e549ed0e4c528 Mon Sep 17 00:00:00 2001 +From 7fadb6de757a772654518be2cdfe231d0ed6080b Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 20 Jan 2023 12:45:15 +0100 Subject: [PATCH] leds: led-class: Add led_module_get() helper @@ -1052,9 +1052,9 @@ index aa39b2a48fdff..743d97b082dcb 100644 EXPORT_SYMBOL_GPL(of_led_get); -- -2.40.0 +2.40.1 -From e90a4c3af7b393ee587006a73738c47b0937e537 Mon Sep 17 00:00:00 2001 +From dbe347cff55928d6e5c341b15ad3c50209e6df1c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 20 Jan 2023 12:45:16 +0100 Subject: [PATCH] leds: led-class: Add __devm_led_get() helper @@ -1128,9 +1128,9 @@ index 743d97b082dcb..4904d140a560a 100644 EXPORT_SYMBOL_GPL(devm_of_led_get); -- -2.40.0 +2.40.1 -From 2fd15407f1aebf2344211d9789644d0cc8cfe7c1 Mon Sep 17 00:00:00 2001 +From 2aaf59bff7ad5a0de2cf0078f6ad8cf96ff83dc8 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 20 Jan 2023 12:45:17 +0100 Subject: [PATCH] leds: led-class: Add generic [devm_]led_get() @@ -1304,9 +1304,9 @@ index ba4861ec73d30..31cb74b90ffcd 100644 extern void led_put(struct led_classdev *led_cdev); struct led_classdev *__must_check devm_of_led_get(struct device *dev, -- -2.40.0 +2.40.1 -From fd05482ce75c24299ab7625e658a31a406ee8406 Mon Sep 17 00:00:00 2001 +From 9032edffe5ae80fb1d384dda4928b87017ae1776 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 20 Jan 2023 12:45:18 +0100 Subject: [PATCH] leds: led-class: Add devicetree support to led_get() @@ -1408,9 +1408,9 @@ index 0c4b8d8d2b4fe..2f3af6e302082 100644 list_for_each_entry(lookup, &leds_lookup_list, list) { if (!strcmp(lookup->dev_id, dev_name(dev)) && -- -2.40.0 +2.40.1 -From c721c947fadaf0849f4cd32f2206c43c0f8c8c8e Mon Sep 17 00:00:00 2001 +From c74a1028b7e427b1798fef1cbd3d2e5df4688cbc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 20 Jan 2023 12:45:19 +0100 Subject: [PATCH] media: v4l2-core: Built async and fwnode code into @@ -1648,9 +1648,9 @@ index 3d9533c1b2029..c8a2264262bca 100644 -MODULE_AUTHOR("Sylwester Nawrocki "); -MODULE_AUTHOR("Guennadi Liakhovetski "); -- -2.40.0 +2.40.1 -From de5866d009ef5ac839e85a53f93ce04b2a92409d Mon Sep 17 00:00:00 2001 +From d7a0becfbce5cb0af5955692b524910d550f376e Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 27 Jan 2023 21:37:25 +0100 Subject: [PATCH] media: v4l2-core: Make the v4l2-core code enable/disable the @@ -1851,9 +1851,9 @@ index b15fa9930f30c..0547313f98cc4 100644 * TODO: active_state should most likely be changed from a pointer to an * embedded field. For the time being it's kept as a pointer to more -- -2.40.0 +2.40.1 -From 7149a5e25231f6286ee3745defecf743a3ed6fb1 Mon Sep 17 00:00:00 2001 +From c2356434deda19a17f02388a5643591dbcd5450a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 27 Jan 2023 21:37:26 +0100 Subject: [PATCH] platform/x86: int3472/discrete: Refactor GPIO to sensor @@ -1948,9 +1948,9 @@ index 6f4b8e24eb56c..443f8dcb1e733 100644 break; case INT3472_GPIO_TYPE_CLK_ENABLE: -- -2.40.0 +2.40.1 -From 70ff97b13a7d99c3b64b297b44b538dc9b579336 Mon Sep 17 00:00:00 2001 +From fc088beb4c2dd09f969c9ce4d0c88dc77c4c6c89 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 27 Jan 2023 21:37:27 +0100 Subject: [PATCH] platform/x86: int3472/discrete: Create a LED class device for @@ -2239,9 +2239,9 @@ index 0000000000000..251c6524458e7 + gpiod_put(int3472->pled.gpio); +} -- -2.40.0 +2.40.1 -From 581e535b2341fbcb14838f8fc621adbe2cdedab9 Mon Sep 17 00:00:00 2001 +From 1de4d8e08e23fe60f05183972d6ddba03f7cb734 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 27 Jan 2023 21:37:28 +0100 Subject: [PATCH] platform/x86: int3472/discrete: Move GPIO request to @@ -2402,9 +2402,9 @@ index 67d26f8a8d9a3..7bac0dd850c83 100644 skl_int3472_unregister_regulator(int3472); -- -2.40.0 +2.40.1 -From cc126cf324325818a40c2a7c0fce33047804d340 Mon Sep 17 00:00:00 2001 +From bb8b9fcf26c5fa5cc18dd7c995e77b05ab3734db Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 27 Jan 2023 21:37:29 +0100 Subject: [PATCH] platform/x86: int3472/discrete: Get the polarity from the @@ -2518,9 +2518,9 @@ index 7bac0dd850c83..d402289ddaab8 100644 err_msg = "Failed to register clock\n"; -- -2.40.0 +2.40.1 -From 4b6896c6ca8ca93fd912c81130058e96ff4273a9 Mon Sep 17 00:00:00 2001 +From 8212950eb990fb351b637046020a536b1252b805 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 21 Mar 2023 23:37:16 +0800 Subject: [PATCH] platform: x86: int3472: Add MFD cell for tps68470 LED @@ -2558,9 +2558,9 @@ index 6a0ff035cf209..2a7d01d3abc85 100644 for (i = 0; i < board_data->n_gpiod_lookups; i++) gpiod_add_lookup_table(board_data->tps68470_gpio_lookup_tables[i]); -- -2.40.0 +2.40.1 -From aa9cf51965d5dd22f00975c1dc00f403cdedb7be Mon Sep 17 00:00:00 2001 +From bfccd551373e6a01dad37f48f28edb5b8add8215 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 21 Mar 2023 23:37:17 +0800 Subject: [PATCH] include: mfd: tps68470: Add masks for LEDA and LEDB @@ -2599,9 +2599,9 @@ index 7807fa329db00..2d2abb25b944f 100644 + #endif /* __LINUX_MFD_TPS68470_H */ -- -2.40.0 +2.40.1 -From 222a58980906a6145196331409ef25155aa93703 Mon Sep 17 00:00:00 2001 +From 103b1cb0163ac1cc6507bfcb0b526a8538aee16b Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 21 Mar 2023 23:37:18 +0800 Subject: [PATCH] leds: tps68470: Add LED control for tps68470 @@ -2849,9 +2849,9 @@ index 0000000000000..35aeb5db89c8f +MODULE_DESCRIPTION("LED driver for TPS68470 PMIC"); +MODULE_LICENSE("GPL v2"); -- -2.40.0 +2.40.1 -From 938ba934aa628f28cb249ce1d32d77d6b44b4c3d Mon Sep 17 00:00:00 2001 +From 2fbc466ea2a12f1c36f613b4429ffc63723e579a Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Wed, 22 Mar 2023 11:01:42 +0000 Subject: [PATCH] media: v4l2-core: Acquire privacy led in @@ -2900,9 +2900,9 @@ index 8501b6931d3a0..077d85553b2b9 100644 if (ret < 0) goto out_cleanup; -- -2.40.0 +2.40.1 -From 00815059922465c2f29aceccff0e0a19e8a3f185 Mon Sep 17 00:00:00 2001 +From b0f6abba0b800c844aca94a90fa43dde3f6f601c Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Tue, 21 Mar 2023 13:45:26 +0000 Subject: [PATCH] media: i2c: Clarify that gain is Analogue gain in OV7251 @@ -2939,5 +2939,5 @@ index 88e9874352853..ff7b2c26da835 100644 V4L2_CID_TEST_PATTERN, ARRAY_SIZE(ov7251_test_pattern_menu) - 1, -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0013-amd-gpio.patch b/patches/6.2/0013-amd-gpio.patch index bc8a66640..236520e0f 100644 --- a/patches/6.2/0013-amd-gpio.patch +++ b/patches/6.2/0013-amd-gpio.patch @@ -1,4 +1,4 @@ -From 7e996cc2b2f8543e6b82fef715776ad2d6076af7 Mon Sep 17 00:00:00 2001 +From 3357177e91d0e7a92494b93ace027a375c8e001f 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 @@ -63,9 +63,9 @@ index 0f762070a5e10..6362dd4522337 100644 mp_config_acpi_legacy_irqs(); -- -2.40.0 +2.40.1 -From c4b8d0e7087cbd85f086d13b24b2cbfd1d2c9e91 Mon Sep 17 00:00:00 2001 +From 600c523dd30a50ee9b95a64a44fac719cc06af39 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 @@ -105,5 +105,5 @@ index 6362dd4522337..8a092c2c6fa86 100644 }; -- -2.40.0 +2.40.1 diff --git a/patches/6.2/0014-rtc.patch b/patches/6.2/0014-rtc.patch index 8bd149c06..8044d1477 100644 --- a/patches/6.2/0014-rtc.patch +++ b/patches/6.2/0014-rtc.patch @@ -1,4 +1,4 @@ -From c3f3a7ab79b01b35c9e488fc2d92a66b802d8df8 Mon Sep 17 00:00:00 2001 +From 2c2414506dd676b49c4cf61f6d1e7a387e037fd2 Mon Sep 17 00:00:00 2001 From: "Bart Groeneveld | GPX Solutions B.V" Date: Mon, 5 Dec 2022 16:08:46 +0100 Subject: [PATCH] acpi: allow usage of acpi_tad on HW-reduced platforms @@ -105,5 +105,5 @@ index e9b8e8305e23e..944276934e7ec 100644 ret = sysfs_create_group(&dev->kobj, &acpi_tad_dc_attr_group); if (ret) -- -2.40.0 +2.40.1