From 0858e1ebf575e4724885bc4aa9bf82cde44bc538 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 9 Oct 2021 01:00:50 +0200 Subject: [PATCH] Update v5.14 patches Changes - Fix power button on AMD Surface Laptop 4. For details see https://github.com/linux-surface/kernel/pull/108 - Rebase onto v5.14.10 --- patches/5.14/0001-surface3-oemb.patch | 2 +- patches/5.14/0002-mwifiex.patch | 50 +++---- patches/5.14/0003-ath10k.patch | 2 +- patches/5.14/0004-ipts.patch | 4 +- patches/5.14/0005-surface-sam-over-hid.patch | 4 +- patches/5.14/0006-surface-typecover.patch | 2 +- patches/5.14/0007-cameras.patch | 38 ++--- patches/5.14/0008-amd-gpio.patch | 10 +- patches/5.14/0009-amd-s0ix.patch | 4 +- patches/5.14/0010-surface-button.patch | 149 +++++++++++++++++++ pkg/arch/kernel/0010-surface-button.patch | 1 + pkg/arch/kernel/PKGBUILD | 20 +-- 12 files changed, 219 insertions(+), 67 deletions(-) create mode 100644 patches/5.14/0010-surface-button.patch create mode 120000 pkg/arch/kernel/0010-surface-button.patch diff --git a/patches/5.14/0001-surface3-oemb.patch b/patches/5.14/0001-surface3-oemb.patch index 455760d88..f3206021b 100644 --- a/patches/5.14/0001-surface3-oemb.patch +++ b/patches/5.14/0001-surface3-oemb.patch @@ -1,4 +1,4 @@ -From 9520e9857907ed2475690d131a81593d9d5ca9c7 Mon Sep 17 00:00:00 2001 +From 3f9e3e442bd86790f09a995dfbd5e2e8f7f2ac46 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.14/0002-mwifiex.patch b/patches/5.14/0002-mwifiex.patch index 8a26b4fbf..0e63b956d 100644 --- a/patches/5.14/0002-mwifiex.patch +++ b/patches/5.14/0002-mwifiex.patch @@ -1,4 +1,4 @@ -From ba72e5f29ce84238cf7155a3d7e880e66dc175c6 Mon Sep 17 00:00:00 2001 +From 38e8ca5568375d5cd58ba41cc08192cffc66d76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 20 Aug 2021 16:20:49 +0200 Subject: [PATCH] mwifiex: pcie: add DMI-based quirk implementation for Surface @@ -148,7 +148,7 @@ index 000000000000..18eacc8c2d3a -- 2.33.0 -From a0452062af15f561ecaaa1cadad84cde79b18b57 Mon Sep 17 00:00:00 2001 +From 2f6b8f86ca13fccecc4d58d36c90692f91ee6722 Mon Sep 17 00:00:00 2001 From: Tsuchiya Yuto Date: Fri, 20 Aug 2021 16:20:50 +0200 Subject: [PATCH] mwifiex: pcie: add reset_d3cold quirk for Surface gen4+ @@ -353,7 +353,7 @@ index 18eacc8c2d3a..8ec4176d698f 100644 -- 2.33.0 -From dcfcf4b4875516fb984a14c5cbc14c75dff4739c Mon Sep 17 00:00:00 2001 +From a9e19ec311884f0c3b7ec5a72b364df6e9c5a03d 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 @@ -538,7 +538,7 @@ index 8ec4176d698f..25370c5a4f59 100644 -- 2.33.0 -From 98f8ca6308547e3e4631989b97baed418ccc4caa Mon Sep 17 00:00:00 2001 +From 320c334cd8cd8ac2ad4789c5d39d08fcfe4a4128 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 @@ -600,7 +600,7 @@ index 563dd0d5ac79..32e2f000e57b 100644 -- 2.33.0 -From c181b38c25c1fce861537da444cc4ad554359888 Mon Sep 17 00:00:00 2001 +From 06bbfe431920cbc5fee9fb2b0023e68480b9111b 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+ @@ -755,7 +755,7 @@ index 25370c5a4f59..a1de111ad1db 100644 -- 2.33.0 -From 0898b0c5ab65fb704508b35b490bcb9bb3c682ce Mon Sep 17 00:00:00 2001 +From 19dc6e686cf59ee0a7d173719ad8be7198877f50 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 @@ -922,7 +922,7 @@ index a1de111ad1db..0e429779bb04 100644 -- 2.33.0 -From 3eedf1eedf2d78fdcb1ecbc0e2d61e0a6df2651d Mon Sep 17 00:00:00 2001 +From 0e44fae01cc39dd5458776460f4ee95284c05b6b 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 @@ -1000,7 +1000,7 @@ index bd37d6fb88c2..d12fb2034d46 100644 -- 2.33.0 -From 359daca552e6468bfae1ad20f38d0d0356a8b154 Mon Sep 17 00:00:00 2001 +From 7365531b8680be3706367bc778720b6efe120dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 12:31:26 +0100 Subject: [PATCH] mwifiex: Small cleanup for handling virtual interface type @@ -1101,7 +1101,7 @@ index 0961f4a5e415..e8deba119ff1 100644 -- 2.33.0 -From c7f55e112140b941cc093915efce65c2f471df5d Mon Sep 17 00:00:00 2001 +From de7b36e8868baa0177c220af0cb5ee5fff1cb43a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 10 Nov 2020 12:49:56 +0100 Subject: [PATCH] mwifiex: Use non-posted PCI register writes @@ -1158,7 +1158,7 @@ index ca06eb7ac4aa..95e5851d2d0a 100644 -- 2.33.0 -From 48f2f44bc0fb2f9068f920625d1abc76cbfd7753 Mon Sep 17 00:00:00 2001 +From 0f5b36226e32571e4ab19d623aa6638e38153782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 12:44:39 +0100 Subject: [PATCH] mwifiex: Use function to check whether interface type change @@ -1391,7 +1391,7 @@ index e8deba119ff1..dabc59c47de3 100644 -- 2.33.0 -From f8c6afaf61005f65f2449223eebc0f1f7ddf3b84 Mon Sep 17 00:00:00 2001 +From 400e32614df0470d232c57b41997b54305b04bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 13:33:04 +0100 Subject: [PATCH] mwifiex: Run SET_BSS_MODE when changing from P2P to STATION @@ -1459,7 +1459,7 @@ index dabc59c47de3..146aabe14753 100644 -- 2.33.0 -From 56689b0b83407692b7abf5afecb80b8daa8fd799 Mon Sep 17 00:00:00 2001 +From 6e5b6d95a01e59cbff89b3b4ecd549658f0fad39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 14:42:54 +0100 Subject: [PATCH] mwifiex: Use helper function for counting interface types @@ -1635,7 +1635,7 @@ index 146aabe14753..8b9517c243c8 100644 -- 2.33.0 -From d41ce5d61dd850ac8c169c5e72a8a08202679381 Mon Sep 17 00:00:00 2001 +From b86e40449fae8007669dfad3bee132aa696faa46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 26 Mar 2021 15:56:58 +0100 Subject: [PATCH] mwifiex: Update virtual interface counters right after @@ -1738,7 +1738,7 @@ index 8b9517c243c8..f2797102c5a2 100644 -- 2.33.0 -From 0f1d6e88906c2badca2a9d62d8e86aea6501d30a Mon Sep 17 00:00:00 2001 +From 29b7911eb44265dc416345c3e71046a28be74972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 13:42:40 +0100 Subject: [PATCH] mwifiex: Allow switching interface type from P2P_CLIENT to @@ -1827,7 +1827,7 @@ index f2797102c5a2..ed4041ff9c89 100644 -- 2.33.0 -From bd57a365d1ce8cc6956eaa57cefeea33a29e401e Mon Sep 17 00:00:00 2001 +From 244a9cf787f7770593152e65dfbebd626793f443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 26 Mar 2021 15:31:08 +0100 Subject: [PATCH] mwifiex: Handle interface type changes from AP to STATION @@ -1854,7 +1854,7 @@ index ed4041ff9c89..64caa5c4350d 100644 -- 2.33.0 -From 0b00b9fcf514610ec89fc05f0eaa5ba660cb9d7c Mon Sep 17 00:00:00 2001 +From ab38278285236bec65eccb521e378999b0d50959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 26 Mar 2021 15:32:16 +0100 Subject: [PATCH] mwifiex: Properly initialize private structure on interface @@ -1909,7 +1909,7 @@ index 64caa5c4350d..0eb31201a82b 100644 -- 2.33.0 -From 4bea92cbf32515641a279bbe58b68bbf0b1cd01b Mon Sep 17 00:00:00 2001 +From 4b7aeedb3efc07c60b2e8a60e65efa8baedb877d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sat, 27 Mar 2021 12:19:14 +0100 Subject: [PATCH] mwifiex: Fix copy-paste mistake when creating virtual @@ -1941,7 +1941,7 @@ index 0eb31201a82b..d62a20de3ada 100644 -- 2.33.0 -From d7d3327b8887d049848983c11a5b5b08cc2fbbde Mon Sep 17 00:00:00 2001 +From c516b3ff924c2b8bed744efec8f4bd615117001f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sun, 28 Mar 2021 21:10:06 +0200 Subject: [PATCH] mwifiex: Try waking the firmware until we get an interrupt @@ -2030,7 +2030,7 @@ index 95e5851d2d0a..ccae1532a580 100644 -- 2.33.0 -From 5221f84a004449deeb0d98a9202dfa6e42b0bfe4 Mon Sep 17 00:00:00 2001 +From 528d4defa59b8009e283f5800d14fbf121f3ddd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 13 Apr 2021 14:30:28 +0200 Subject: [PATCH] mwifiex: Deactive host sleep using HSCFG after it was @@ -2186,7 +2186,7 @@ index 48ea00da1fc9..1e2798dce18f 100644 -- 2.33.0 -From 0ca3ec07065eb6dda40bb4f19370cd57d9c86a9c Mon Sep 17 00:00:00 2001 +From de84fd5c1b16640e20d67b2ec8445a64d7825bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 13 Apr 2021 14:23:05 +0200 Subject: [PATCH] mwifiex: Add quirk to disable deep sleep with certain @@ -2289,7 +2289,7 @@ index 6b5d35d9e69f..8e49ebca1847 100644 -- 2.33.0 -From 1274d36bd83fc4a64608196a10f782c737c938b5 Mon Sep 17 00:00:00 2001 +From 497aef4355bbef7c5cc7977b5702ee6e6788a4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 11 Nov 2020 15:17:07 +0100 Subject: [PATCH] mwifiex: Don't log error on suspend if wake-on-wlan is @@ -2321,7 +2321,7 @@ index d62a20de3ada..18b1a6d54bc8 100644 -- 2.33.0 -From 7322de9750916f3e2d8a179fece0cb07b9f3cf18 Mon Sep 17 00:00:00 2001 +From c318ea28682ab25656b1a32c26caf50e7ec98d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sun, 28 Mar 2021 21:42:54 +0200 Subject: [PATCH] mwifiex: Log an error on command failure during key-material @@ -2361,7 +2361,7 @@ index 18b1a6d54bc8..c00791701d78 100644 -- 2.33.0 -From c8ab06445c5a16d750057cd283c374c330dc626f Mon Sep 17 00:00:00 2001 +From 5a0580b4e844ef5ffcfbb4424b5ee817f9b5cd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 13 Apr 2021 12:44:03 +0200 Subject: [PATCH] mwifiex: Fix an incorrect comment @@ -2389,7 +2389,7 @@ index 6696bce56178..b0695432b26a 100644 -- 2.33.0 -From 25121ed22ea80abdf00d3d9b7b345a7c56cb4818 Mon Sep 17 00:00:00 2001 +From 5071ab67a67a157908289a3257a4855b8fe52c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 13 Apr 2021 12:45:59 +0200 Subject: [PATCH] mwifiex: Send DELBA requests according to spec @@ -2432,7 +2432,7 @@ index b0695432b26a..9ff2058bcd7e 100644 -- 2.33.0 -From e77f661cb084026de374e8a1cee663b52e839ef3 Mon Sep 17 00:00:00 2001 +From 7411c1d91484b6541c690967a036c8794894af77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 13 Apr 2021 12:57:41 +0200 Subject: [PATCH] mwifiex: Ignore BTCOEX events from the firmware diff --git a/patches/5.14/0003-ath10k.patch b/patches/5.14/0003-ath10k.patch index 765fdb5a3..5b21fced1 100644 --- a/patches/5.14/0003-ath10k.patch +++ b/patches/5.14/0003-ath10k.patch @@ -1,4 +1,4 @@ -From 96f25132f2bb3d076362b30d57a6a9940770e13d Mon Sep 17 00:00:00 2001 +From 5e4a984008f7ea896bad6c470e9bc67ae5205c94 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 diff --git a/patches/5.14/0004-ipts.patch b/patches/5.14/0004-ipts.patch index 007eaac87..f19709889 100644 --- a/patches/5.14/0004-ipts.patch +++ b/patches/5.14/0004-ipts.patch @@ -1,4 +1,4 @@ -From 1a56946f11383a8a6601c13b1d01f8ef4616bc92 Mon Sep 17 00:00:00 2001 +From f296daba6984b7265a11629b11645f34e4db0fbd 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 @@ -36,7 +36,7 @@ index c3393b383e59..0098f98426c1 100644 -- 2.33.0 -From e99da2b61a6fce89882ea82a870ce57fe9f79a91 Mon Sep 17 00:00:00 2001 +From 2eb137492443adbe43a7bad82757d8eebe08efe9 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.14/0005-surface-sam-over-hid.patch b/patches/5.14/0005-surface-sam-over-hid.patch index 8734b6aad..82051715a 100644 --- a/patches/5.14/0005-surface-sam-over-hid.patch +++ b/patches/5.14/0005-surface-sam-over-hid.patch @@ -1,4 +1,4 @@ -From cde2ca8318fd65c1346a7ae25c310c88e85a8742 Mon Sep 17 00:00:00 2001 +From 34def80d21055c1b721f0fd80a8109119933d80c 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 6f0aa0ed3241..13eb5ac82729 100644 -- 2.33.0 -From f7c5cf9537cff7ba26ca8550726e1b972db6e0a1 Mon Sep 17 00:00:00 2001 +From 62ed523c7667bb8e75489c37f87d1241a3a055a2 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/5.14/0006-surface-typecover.patch b/patches/5.14/0006-surface-typecover.patch index 4c80b0033..c91abc0bd 100644 --- a/patches/5.14/0006-surface-typecover.patch +++ b/patches/5.14/0006-surface-typecover.patch @@ -1,4 +1,4 @@ -From 0aa0e3effa0b4863f97d64bff11d069041a02370 Mon Sep 17 00:00:00 2001 +From 2b3096e501b24f17890f1ecdd4b3035b086e2374 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 diff --git a/patches/5.14/0007-cameras.patch b/patches/5.14/0007-cameras.patch index 9e28620bd..03d0de470 100644 --- a/patches/5.14/0007-cameras.patch +++ b/patches/5.14/0007-cameras.patch @@ -1,4 +1,4 @@ -From 5e8b4fdc55e4d7fc83b3913f8c155f9a5208467f Mon Sep 17 00:00:00 2001 +From f780a28a40e3799b3d92808279cd6d3ef95ac2c6 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Mon, 5 Apr 2021 23:56:53 +0100 Subject: [PATCH] media: ipu3-cio2: Toggle sensor streaming in pm runtime ops @@ -58,7 +58,7 @@ index 47db0ee0fcbf..7bb86e246ebe 100644 -- 2.33.0 -From e889a0065d926c0d5dad24f01085f15419b9dfb7 Mon Sep 17 00:00:00 2001 +From 89648fa3a3b97b0ca970920231211fad3226b347 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Mon, 5 Apr 2021 23:56:54 +0100 Subject: [PATCH] media: i2c: Add support for ov5693 sensor @@ -1701,7 +1701,7 @@ index 000000000000..9499ee10f56c -- 2.33.0 -From f240ee64e410a22978e3258a707fc2eb0019ee4c Mon Sep 17 00:00:00 2001 +From 35479d2c39559affa4d4a16b3ba9f1f72fd886a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCthrich?= Date: Fri, 22 Jan 2021 20:58:13 +0100 Subject: [PATCH] cio2-bridge: Parse sensor orientation and rotation @@ -1864,7 +1864,7 @@ index dd0ffcafa489..924d99d20328 100644 -- 2.33.0 -From cf49ebc6746a6d851c1dcf631708c6ef6ff4bc29 Mon Sep 17 00:00:00 2001 +From 14547b3ba796e0ced8d2e1653db0d8bf614da848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCthrich?= Date: Sun, 24 Jan 2021 11:07:42 +0100 Subject: [PATCH] cio2-bridge: Use macros and add warnings @@ -1968,7 +1968,7 @@ index 924d99d20328..e1e388cc9f45 100644 -- 2.33.0 -From 4ade168174e01216813c84d2f24955c73e62989d Mon Sep 17 00:00:00 2001 +From a21de2b837e3e932d7fcdb6c20146accb339ae26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCthrich?= Date: Thu, 6 May 2021 07:52:44 +0200 Subject: [PATCH] cio2-bridge: Use correct dev_properties size @@ -1994,7 +1994,7 @@ index e1e388cc9f45..deaf5804f70d 100644 -- 2.33.0 -From f6b5994f4ab70cce0182df5ab4647e70dd059566 Mon Sep 17 00:00:00 2001 +From 00c02cabde9897b069f0df76b9995867e19cd03f Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Thu, 20 May 2021 23:31:04 +0100 Subject: [PATCH] media: i2c: Fix vertical flip in ov5693 @@ -2029,7 +2029,7 @@ index 9499ee10f56c..c558f9b48c83 100644 -- 2.33.0 -From 7383972557ac8204da0db262961ffc3d1e5b5e3f Mon Sep 17 00:00:00 2001 +From 912cb7100d7c7a8c23cae6d43f190a48b378c810 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Fri, 9 Jul 2021 16:39:18 +0100 Subject: [PATCH] media: i2c: Add ACPI support to ov8865 @@ -2080,7 +2080,7 @@ index ce50f3ea87b8..fe60cda3dea7 100644 -- 2.33.0 -From 570fe0755998239d55746edbdab9ef9737c86542 Mon Sep 17 00:00:00 2001 +From 71350668869ec2016909d1d1043f5cd170a92f1e Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sat, 10 Jul 2021 21:20:17 +0100 Subject: [PATCH] media: i2c: Fix incorrect value in comment @@ -2110,7 +2110,7 @@ index fe60cda3dea7..2ef146e7e7ef 100644 -- 2.33.0 -From e1ba9d3620632f266f760085fa5fdf6381c7a388 Mon Sep 17 00:00:00 2001 +From 4e8156f3bfe70a91d970e979171ba4e9f3db8a6c Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sat, 10 Jul 2021 22:21:52 +0100 Subject: [PATCH] media: i2c: Check fwnode->secondary for endpoint @@ -2159,7 +2159,7 @@ index 2ef146e7e7ef..a3199721bbca 100644 -- 2.33.0 -From c224272f436303270e7f9bf44477cf90b045bbce Mon Sep 17 00:00:00 2001 +From 20829156918c4e2d4cef44733e6b271913f3dd40 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sat, 10 Jul 2021 22:00:25 +0100 Subject: [PATCH] media: i2c: Support 19.2MHz input clock in ov8865 @@ -2474,7 +2474,7 @@ index a3199721bbca..53e6bcbe18d6 100644 -- 2.33.0 -From f99644845e4384415d09873ce075fa1167053547 Mon Sep 17 00:00:00 2001 +From afc4b3f3de26b91d2587698f370fef1c7f7f725b Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sat, 10 Jul 2021 22:19:10 +0100 Subject: [PATCH] media: i2c: Add .get_selection() support to ov8865 @@ -2576,7 +2576,7 @@ index 53e6bcbe18d6..2f487c25ed56 100644 -- 2.33.0 -From 6cf20b406cbad7dffa0596867841d2ab1b38fc61 Mon Sep 17 00:00:00 2001 +From e0b1400c8e1867d90177c989b2ace225087c9051 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Sat, 10 Jul 2021 22:34:43 +0100 Subject: [PATCH] media: i2c: Switch control to V4L2_CID_ANALOGUE_GAIN @@ -2627,7 +2627,7 @@ index 2f487c25ed56..b91c952b6ef9 100644 -- 2.33.0 -From 5fdeed58af688b14eda6dcc46d1d475df7282a4a Mon Sep 17 00:00:00 2001 +From e01070b2e19699f73ec886777d6c3b01e22c318e Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Mon, 12 Jul 2021 22:54:56 +0100 Subject: [PATCH] media: i2c: Add vblank control to ov8865 @@ -2737,7 +2737,7 @@ index b91c952b6ef9..4430115607a4 100644 -- 2.33.0 -From c3c2357574e6551136269d1ada053de3fd5c6665 Mon Sep 17 00:00:00 2001 +From 8dccf0e592dcb566a1ced6af9ce5b69672b5ceee Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Tue, 13 Jul 2021 23:40:33 +0100 Subject: [PATCH] media: i2c: Add hblank control to ov8865 @@ -2807,7 +2807,7 @@ index 4430115607a4..e9b5f4d8e79b 100644 -- 2.33.0 -From 8baea1b20f86727a2bb0a912fa80a2559783a479 Mon Sep 17 00:00:00 2001 +From ec400b9d41c1c5bf4c0d85a09738ff90109ed1a1 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Tue, 13 Jul 2021 23:43:17 +0100 Subject: [PATCH] media: i2c: cap exposure at height + vblank in ov8865 @@ -2888,7 +2888,7 @@ index e9b5f4d8e79b..893cc58dc265 100644 -- 2.33.0 -From 713c2c9e4f32daeca643cbdb0f537e132f422c09 Mon Sep 17 00:00:00 2001 +From 9f3791fbb2e33485132356371089729f78a6c3d4 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Wed, 14 Jul 2021 18:05:44 +0100 Subject: [PATCH] media: i2c: Remove unused macros from ov8865 @@ -3162,7 +3162,7 @@ index 893cc58dc265..fb81b822987d 100644 -- 2.33.0 -From c4380bcbdcc81db40b840c28d8b395ef06e8a193 Mon Sep 17 00:00:00 2001 +From 24938dbe849e4f173a7d7ed25fa7b201dd5b19fa Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Fri, 16 Jul 2021 00:00:54 +0100 Subject: [PATCH] media: i2c: Switch exposure control unit to lines @@ -3209,7 +3209,7 @@ index fb81b822987d..27520c731e47 100644 -- 2.33.0 -From 48d62e0adc8c3635e75a12c7dcd29d3c24b7f5b9 Mon Sep 17 00:00:00 2001 +From 25e216b42324860fd1887a5df35ecfa427563280 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Fri, 16 Jul 2021 22:56:15 +0100 Subject: [PATCH] media: i2c: Add controls from fwnode to ov8865 @@ -3254,7 +3254,7 @@ index 27520c731e47..f746917719ae 100644 -- 2.33.0 -From b4d2963d4850f21a00bfae65a98dd1cf1a7828fd Mon Sep 17 00:00:00 2001 +From f15fc0d97b5cbd139ba98bcb878c944879586458 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Wed, 14 Jul 2021 00:05:04 +0100 Subject: [PATCH] media: ipu3-cio2: Add INT347A to cio2-bridge diff --git a/patches/5.14/0008-amd-gpio.patch b/patches/5.14/0008-amd-gpio.patch index f4243a8d2..4f8c149a6 100644 --- a/patches/5.14/0008-amd-gpio.patch +++ b/patches/5.14/0008-amd-gpio.patch @@ -1,4 +1,4 @@ -From 57184abadb8c183e3cf86b56d9b1fae3969c4661 Mon Sep 17 00:00:00 2001 +From d360f1de2a3ccb93264adcc7f720feb07cbc4022 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 e55e0c1fad8c..46dfad41b401 100644 -- 2.33.0 -From b2bc2d36592a6b5f9a051f52fa189e0833eca777 Mon Sep 17 00:00:00 2001 +From 8c0a240e9cf709de709c6ea459e47bf7a26fa8b1 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 @@ -107,7 +107,7 @@ index 46dfad41b401..78bf6a097dc5 100644 -- 2.33.0 -From 42e27b58b4be96c7847a2a77d2b861628897592a Mon Sep 17 00:00:00 2001 +From c1f3374ca55c093b6202f07ef003b2f3eb961d46 Mon Sep 17 00:00:00 2001 From: Basavaraj Natikar Date: Tue, 31 Aug 2021 17:36:12 +0530 Subject: [PATCH] pinctrl: amd: Add irq field data @@ -173,7 +173,7 @@ index 95e763424042..1d4317073654 100644 -- 2.33.0 -From 29db8148654e076dfc4dfa41867599655d15a2c7 Mon Sep 17 00:00:00 2001 +From dd2c15cec4be468f5a50e269d0f91e0b8b9cdb08 Mon Sep 17 00:00:00 2001 From: Basavaraj Natikar Date: Tue, 31 Aug 2021 17:36:13 +0530 Subject: [PATCH] pinctrl: amd: Handle wake-up interrupt @@ -220,7 +220,7 @@ index 79b8b7f91996..d19974aceb2e 100644 -- 2.33.0 -From 74b555e7c9dfd726ff7c8ad8eaf7300a950def5e Mon Sep 17 00:00:00 2001 +From 66c53ac510c9cf9df6e9ac4f405914ca24b3ccb7 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Fri, 1 Oct 2021 21:19:09 +1000 Subject: [PATCH] pinctrl: amd: disable and mask interrupts on probe diff --git a/patches/5.14/0009-amd-s0ix.patch b/patches/5.14/0009-amd-s0ix.patch index 75581e0ba..e24c5143a 100644 --- a/patches/5.14/0009-amd-s0ix.patch +++ b/patches/5.14/0009-amd-s0ix.patch @@ -1,4 +1,4 @@ -From bdfdaf81e8471268fb90b4fa0c1f7cea0852bbb4 Mon Sep 17 00:00:00 2001 +From 26e3b115246a289e611663a3985f0a81148bab78 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Sat, 29 May 2021 22:27:25 +1000 Subject: [PATCH] platform/x86: amd-pmc: Add device HID for AMD PMC @@ -31,7 +31,7 @@ index d6a7c896ac86..fc95620101e8 100644 -- 2.33.0 -From ae634492d0cfcd766e85d0ce5ee76149d916ef9a Mon Sep 17 00:00:00 2001 +From 3fb90b0d3770441ff16b6d8b3926778ef68476b0 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Sat, 2 Oct 2021 13:39:36 +1000 Subject: [PATCH] ACPI: PM: Include alternate AMDI0005 id in special behaviour diff --git a/patches/5.14/0010-surface-button.patch b/patches/5.14/0010-surface-button.patch new file mode 100644 index 000000000..722314dba --- /dev/null +++ b/patches/5.14/0010-surface-button.patch @@ -0,0 +1,149 @@ +From 5d95fd4c0155e31f6a7a33d7cbe40cbee3b1ab4f 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 + +The power button on the AMD variant of the Surface Laptop uses the +same MSHW0040 device ID as the 5th and later generation of Surface +devices, however they report 0 for their OEM platform revision. As the +_DSM does not exist on the devices requiring special casing, check for +the existance of the _DSM to determine if soc_button_array should be +loaded. + +Fixes: c394159310d0 ("Input: soc_button_array - add support for newer surface devices") +Co-developed-by: Maximilian Luz + +Signed-off-by: Sachi King +Patchset: surface-button +--- + drivers/input/misc/soc_button_array.c | 33 +++++++-------------------- + 1 file changed, 8 insertions(+), 25 deletions(-) + +diff --git a/drivers/input/misc/soc_button_array.c b/drivers/input/misc/soc_button_array.c +index cb6ec59a045d..4e8944f59def 100644 +--- a/drivers/input/misc/soc_button_array.c ++++ b/drivers/input/misc/soc_button_array.c +@@ -474,8 +474,8 @@ static const struct soc_device_data soc_device_INT33D3 = { + * Both, the Surface Pro 4 (surfacepro3_button.c) and the above mentioned + * devices use MSHW0040 for power and volume buttons, however the way they + * have to be addressed differs. Make sure that we only load this drivers +- * for the correct devices by checking the OEM Platform Revision provided by +- * the _DSM method. ++ * for the correct devices by checking if the OEM Platform Revision DSM call ++ * exists. + */ + #define MSHW0040_DSM_REVISION 0x01 + #define MSHW0040_DSM_GET_OMPR 0x02 // get OEM Platform Revision +@@ -486,31 +486,14 @@ static const guid_t MSHW0040_DSM_UUID = + static int soc_device_check_MSHW0040(struct device *dev) + { + acpi_handle handle = ACPI_HANDLE(dev); +- union acpi_object *result; +- u64 oem_platform_rev = 0; // valid revisions are nonzero +- +- // get OEM platform revision +- result = acpi_evaluate_dsm_typed(handle, &MSHW0040_DSM_UUID, +- MSHW0040_DSM_REVISION, +- MSHW0040_DSM_GET_OMPR, NULL, +- ACPI_TYPE_INTEGER); +- +- if (result) { +- oem_platform_rev = result->integer.value; +- ACPI_FREE(result); +- } +- +- /* +- * If the revision is zero here, the _DSM evaluation has failed. This +- * indicates that we have a Pro 4 or Book 1 and this driver should not +- * be used. +- */ +- if (oem_platform_rev == 0) +- return -ENODEV; ++ bool exists; + +- dev_dbg(dev, "OEM Platform Revision %llu\n", oem_platform_rev); ++ // check if OEM platform revision DSM call exists ++ exists = acpi_check_dsm(handle, &MSHW0040_DSM_UUID, ++ MSHW0040_DSM_REVISION, ++ BIT(MSHW0040_DSM_GET_OMPR)); + +- return 0; ++ return exists ? 0 : -ENODEV; + } + + /* +-- +2.33.0 + +From 23283377042d5a2ad10fd8ee8b462eb5b83cf243 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 + variant + +The AMD variant of the Surface Laptop report 0 for their OEM platform +revision. The Surface devices that require the surfacepro3_button +driver do not have the _DSM that gets the OEM platform revision. If the +method does not exist, load surfacepro3_button. + +Fixes: 64dd243d7356 ("platform/x86: surfacepro3_button: Fix device check") +Co-developed-by: Maximilian Luz + +Signed-off-by: Sachi King +Patchset: surface-button +--- + drivers/platform/surface/surfacepro3_button.c | 30 ++++--------------- + 1 file changed, 6 insertions(+), 24 deletions(-) + +diff --git a/drivers/platform/surface/surfacepro3_button.c b/drivers/platform/surface/surfacepro3_button.c +index 242fb690dcaf..30eea54dbb47 100644 +--- a/drivers/platform/surface/surfacepro3_button.c ++++ b/drivers/platform/surface/surfacepro3_button.c +@@ -149,7 +149,8 @@ static int surface_button_resume(struct device *dev) + /* + * Surface Pro 4 and Surface Book 2 / Surface Pro 2017 use the same device + * ID (MSHW0040) for the power/volume buttons. Make sure this is the right +- * device by checking for the _DSM method and OEM Platform Revision. ++ * device by checking for the _DSM method and OEM Platform Revision DSM ++ * function. + * + * Returns true if the driver should bind to this device, i.e. the device is + * either MSWH0028 (Pro 3) or MSHW0040 on a Pro 4 or Book 1. +@@ -157,30 +158,11 @@ static int surface_button_resume(struct device *dev) + static bool surface_button_check_MSHW0040(struct acpi_device *dev) + { + acpi_handle handle = dev->handle; +- union acpi_object *result; +- u64 oem_platform_rev = 0; // valid revisions are nonzero +- +- // get OEM platform revision +- result = acpi_evaluate_dsm_typed(handle, &MSHW0040_DSM_UUID, +- MSHW0040_DSM_REVISION, +- MSHW0040_DSM_GET_OMPR, +- NULL, ACPI_TYPE_INTEGER); +- +- /* +- * If evaluating the _DSM fails, the method is not present. This means +- * that we have either MSHW0028 or MSHW0040 on Pro 4 or Book 1, so we +- * should use this driver. We use revision 0 indicating it is +- * unavailable. +- */ +- +- if (result) { +- oem_platform_rev = result->integer.value; +- ACPI_FREE(result); +- } +- +- dev_dbg(&dev->dev, "OEM Platform Revision %llu\n", oem_platform_rev); + +- return oem_platform_rev == 0; ++ // make sure that OEM platform revision DSM call does not exist ++ return !acpi_check_dsm(handle, &MSHW0040_DSM_UUID, ++ MSHW0040_DSM_REVISION, ++ BIT(MSHW0040_DSM_GET_OMPR)); + } + + +-- +2.33.0 + diff --git a/pkg/arch/kernel/0010-surface-button.patch b/pkg/arch/kernel/0010-surface-button.patch new file mode 120000 index 000000000..ad2ced01c --- /dev/null +++ b/pkg/arch/kernel/0010-surface-button.patch @@ -0,0 +1 @@ +../../../patches/5.14/0010-surface-button.patch \ No newline at end of file diff --git a/pkg/arch/kernel/PKGBUILD b/pkg/arch/kernel/PKGBUILD index 6ffc8894d..0a2e46c3b 100644 --- a/pkg/arch/kernel/PKGBUILD +++ b/pkg/arch/kernel/PKGBUILD @@ -36,6 +36,7 @@ source=( 0007-cameras.patch 0008-amd-gpio.patch 0009-amd-s0ix.patch + 0010-surface-button.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds @@ -46,15 +47,16 @@ sha256sums=('SKIP' 'f98065a286a6d2dbb0e226867a6417e344aaa44ef6eac967707e1f09671be445' '252c7a78ffb1efe9751aabc93cc79031ef69dbc95baa7970cbaabcd5474fe7d8' 'b30cd71018df7e98101ba0cf37054169006b096d2870a9f8467dd96378b02b98' - 'e04b6cfa8a9491ee17c2c24e37cfbd5a9f7359d93b56562469a8524ad0392411' - 'b7488b6a45db78b081183558a5c215acb1eccb7c6275d6395991f82dd764eef6' - 'd5bee2870c47fc511753bc2d50855d8baed3098b3f181bfbf3ad9c56c0d15aac' - '02d2642d54efa706afa662aa1986e3749d916d74e3b078caea3aecdedd71e7a9' - 'aadf548f80a4a368e3797ccebd8dbb2d0418f1992d3b2affdb8f5d74cd7bdf46' - '856594fd565869dadf0e04eb0b5ba7789bd1abab9ee526840621b77a51d13c2a' - 'ad0ec70e61dcfd7778447cf07c0633eaeee855569330fa9f748160afbd2133e5' - '946a5c0d7331341790e0c38acfa3c269b96e5af3d166534db178fe65a3a27b08' - 'd296eb1cfcde04c647a52e255db997354a3fc249deeaf11cf98fb296ab589970') + '1da8814ece340a6fdc9996fe88738687efce9d370a67a58aac10362e5239dcec' + '4d65710345a753e9b3f9dc3bee742d0cb96feaf83c93cb05d04d9a21bbd411e7' + '620e18b5a4b41a19d0de94eb22e6cb4879c2e041f859a5b10784e176efb5a0ba' + '7a128e27a9476da1d07a5cb39180963dade5493ea10ea4c0e78f23df83ffa102' + '5c4449c2cfc0692cc8cea1458a172cc8751ebee268b570b06779b5a22ea687b4' + '30320d3e83e59f0859d48efc106900593cd0fddaf915e0ea011d4266378266d7' + '959388da490fac316a79a810f9515d41c6d7cc37c99554cb1986eba491fe13a0' + '6ebaf49ab7fdb12cd44186dfa81c6d160f35755dfcc96dfc3abe6ce164ce61e5' + '38005d093b066145dae22c2c90bbd580ecc954b1514f4195678565b60e265f8f' + 'a83f63f7d57d747cadde6d065350089320ebd11a58aced0105edade2781dc97a') export KBUILD_BUILD_HOST=archlinux