Update v6.0 patches
Changes:
- Add patch for using ACPI TAD as RTC (#415) by @groengpx.
- Rebase onto v6.0.12
Links:
- kernel: 0c15af2cad
This commit is contained in:
parent
8995c6b3b4
commit
5d5b364531
|
@ -1,4 +1,4 @@
|
|||
From 4e34f6d1cf11448170750bd8b639855a97124033 Mon Sep 17 00:00:00 2001
|
||||
From 482f57248a833f7fa4d4712f67d4e0d2ff7b8090 Mon Sep 17 00:00:00 2001
|
||||
From: Tsuchiya Yuto <kitakar@gmail.com>
|
||||
Date: Sun, 18 Oct 2020 16:42:44 +0900
|
||||
Subject: [PATCH] (surface3-oemb) add DMI matches for Surface 3 with broken DMI
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 648a81a3491bea27c1ae2bb27a564116fe63fd68 Mon Sep 17 00:00:00 2001
|
||||
From 0e7550c367ae47a8447c4d87c45d55ecd8c82d8b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
|
||||
Date: Tue, 3 Nov 2020 13:28:04 +0100
|
||||
Subject: [PATCH] mwifiex: Add quirk resetting the PCI bridge on MS Surface
|
||||
|
@ -165,7 +165,7 @@ index d6ff964aec5b..5d30ae39d65e 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From d2893da8412417f719daa8651cb111edc5c6b911 Mon Sep 17 00:00:00 2001
|
||||
From fce0e500ebcbca9c39ceea306932297a30df0608 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
|
||||
Date: Thu, 25 Mar 2021 11:33:02 +0100
|
||||
Subject: [PATCH] Bluetooth: btusb: Lower passive lescan interval on Marvell
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From bcbcaa2f1d443f6f2b0c98a9c9d4bd88d8cbb7f7 Mon Sep 17 00:00:00 2001
|
||||
From e8e003483d143e5eb20e8c0650dcc77aa5ebafa0 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 27 Feb 2021 00:45:52 +0100
|
||||
Subject: [PATCH] ath10k: Add module parameters to override board files
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 07ef5872380dac03b1766811bd625e62204ca4dc Mon Sep 17 00:00:00 2001
|
||||
From 5efa6f794288c5427b75f0f61fb82065af155afd 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] misc: mei: Add missing IPTS device IDs
|
||||
|
@ -36,7 +36,7 @@ index 5435604327a7..1165ee4f5928 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From f5278890b80faf72ef170559a67db00386da299d Mon Sep 17 00:00:00 2001
|
||||
From ad11a0f06ac024e2f633066f3e5cf225398fda8c Mon Sep 17 00:00:00 2001
|
||||
From: Dorian Stoll <dorian.stoll@tmsp.io>
|
||||
Date: Thu, 6 Aug 2020 11:20:41 +0200
|
||||
Subject: [PATCH] misc: Add support for Intel Precise Touch & Stylus
|
||||
|
@ -1504,7 +1504,7 @@ index 000000000000..53fb86a88f97
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From c01f8a391df94ee2649e37207581a6d8ff7955eb Mon Sep 17 00:00:00 2001
|
||||
From 2801ad019ca83dc97dad809b00b3e57270d58e99 Mon Sep 17 00:00:00 2001
|
||||
From: Liban Hannan <liban.p@gmail.com>
|
||||
Date: Tue, 12 Apr 2022 23:31:12 +0100
|
||||
Subject: [PATCH] iommu: ipts: use IOMMU passthrough mode for IPTS
|
||||
|
@ -1526,7 +1526,7 @@ Patchset: ipts
|
|||
1 file changed, 24 insertions(+)
|
||||
|
||||
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
|
||||
index e47700674978..ad9fda586f5e 100644
|
||||
index 412b106d2a39..5246e3f25ac1 100644
|
||||
--- a/drivers/iommu/intel/iommu.c
|
||||
+++ b/drivers/iommu/intel/iommu.c
|
||||
@@ -37,6 +37,8 @@
|
||||
|
@ -1573,7 +1573,7 @@ index e47700674978..ad9fda586f5e 100644
|
|||
check_tylersburg_isoch();
|
||||
|
||||
ret = si_domain_init(hw_pass_through);
|
||||
@@ -4791,6 +4801,17 @@ static void quirk_iommu_igfx(struct pci_dev *dev)
|
||||
@@ -4793,6 +4803,17 @@ static void quirk_iommu_igfx(struct pci_dev *dev)
|
||||
dmar_map_gfx = 0;
|
||||
}
|
||||
|
||||
|
@ -1591,7 +1591,7 @@ index e47700674978..ad9fda586f5e 100644
|
|||
/* G4x/GM45 integrated gfx dmar support is totally busted. */
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2a40, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2e00, quirk_iommu_igfx);
|
||||
@@ -4826,6 +4847,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1632, quirk_iommu_igfx);
|
||||
@@ -4828,6 +4849,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1632, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x163A, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x163D, quirk_iommu_igfx);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From c551c8c87815fc368360086fd4210d9240ea8007 Mon Sep 17 00:00:00 2001
|
||||
From 1679ef2a91b0a4926f9a7586fc15b1bff11504c4 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:23:53 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator: Improve documentation and
|
||||
|
@ -261,7 +261,7 @@ index 45501b6e54e8..5c4ae1a26183 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 7f6fee1201df8ad9226b4de906c251598ea1e828 Mon Sep 17 00:00:00 2001
|
||||
From 44a5356d20e25dd22cbdc020cc3c9b0b480f5a4a Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:30:58 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator: Ignore command messages not
|
||||
|
@ -334,7 +334,7 @@ index f5565570f16c..90634dcacabf 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 61e2663e29a78ca0f60c5ba4a99ddd7761a5b7e5 Mon Sep 17 00:00:00 2001
|
||||
From 64ec558a10a7412aceeb093b22b02cab0a761d9d Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:42:19 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator: Add target and source IDs to
|
||||
|
@ -528,7 +528,7 @@ index 2a2c17771d01..55cc61bba1da 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 808a6cbe64c6d5a8385c400ab37da4451a3377da Mon Sep 17 00:00:00 2001
|
||||
From 4f8baf2a40ad5b9595a784d2145ad15e0ce7ceed Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:32:16 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator_hub: Use target-ID enum instead
|
||||
|
@ -568,7 +568,7 @@ index 43061514be38..62f27cdb6ca8 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 70a966b9dccbe5832648f486eddd8a2e9808033b Mon Sep 17 00:00:00 2001
|
||||
From aa7fcdadf6e32bdcf4f9269ba5ed6129e0a9d4f2 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:33:26 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator_tabletsw: Use target-ID enum
|
||||
|
@ -617,7 +617,7 @@ index 27d95a6a7851..bd8cd453c393 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 132d5c0de71d25479d11387696d771570438ae6e Mon Sep 17 00:00:00 2001
|
||||
From d6ae2d7d75a8cf4218916ef08bba19b4a0f8f09f Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:34:06 +0100
|
||||
Subject: [PATCH] platform/surface: dtx: Use target-ID enum instead of
|
||||
|
@ -712,7 +712,7 @@ index ed36944467f9..0de76a784a35 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From f010e6760bdfcf0224b0c8fd1a7855fa5d64c1ac Mon Sep 17 00:00:00 2001
|
||||
From 8103b8c3f6c70460b804398a2db6949e814bdae0 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:40:06 +0100
|
||||
Subject: [PATCH] HID: surface-hid: Use target-ID enum instead of hard-coding
|
||||
|
@ -743,7 +743,7 @@ index 0635341bc517..42933bf3e925 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 41453dfba5bc6ab19769fdda663d3b8f1172b1ae Mon Sep 17 00:00:00 2001
|
||||
From 1fd9f11ec7abe0945aa2e5211102d20594dbbbc2 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:45:28 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator: Enforce use of target-ID enum
|
||||
|
@ -975,7 +975,7 @@ index 46c45d1b6368..4da20b7a0ee5 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 9da775f8454ca4370a2d259d40cee2b10558603d Mon Sep 17 00:00:00 2001
|
||||
From 479a9507b55927c8f51442b2be657789feb35de0 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 5 Nov 2022 21:46:37 +0100
|
||||
Subject: [PATCH] platform/surface: aggregator_registry: Fix target-ID of
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From c755a08e97b1167a80e3170a451367d4733462ef Mon Sep 17 00:00:00 2001
|
||||
From 430fe28030f16e71a425b45c5a4a9d95964a1024 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
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 59a2156cf207ba8e494bea0552963701f0e5bcf4 Mon Sep 17 00:00:00 2001
|
||||
From 2062f0aef4b131f18609b615d1530f42a07fa5c3 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Sat, 13 Feb 2021 16:41:18 +0100
|
||||
Subject: [PATCH] platform/surface: Add driver for Surface Book 1 dGPU switch
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From a1ea4cbf29d57b747be48a75f5fd505b322cab3d Mon Sep 17 00:00:00 2001
|
||||
From 815f2e9b4675edbbfe63d97e68a1d9484b7789b6 Mon Sep 17 00:00:00 2001
|
||||
From: Sachi King <nakato@nakato.io>
|
||||
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 09489380afda..0f02411a60f1 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 5dae9fa99921ecb00000aac261906cc39505d9d0 Mon Sep 17 00:00:00 2001
|
||||
From fe28f0103a42060e7dcb5a5597c569febfe1bd57 Mon Sep 17 00:00:00 2001
|
||||
From: Sachi King <nakato@nakato.io>
|
||||
Date: Tue, 5 Oct 2021 00:22:57 +1100
|
||||
Subject: [PATCH] platform/surface: surfacepro3_button: don't load on amd
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From c09a850171761e430e556d87a0fa8fce0a9e9b83 Mon Sep 17 00:00:00 2001
|
||||
From 541e1e15be33eaa56fa5c4a94a962e07dde70afe Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
|
||||
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 702204ea3859ab5a0c92c9f63abd51568365e953 Mon Sep 17 00:00:00 2001
|
||||
From 58dad80e62fcdf744ac814db4ff1474f2d988863 Mon Sep 17 00:00:00 2001
|
||||
From: PJungkamp <p.jungkamp@gmail.com>
|
||||
Date: Fri, 25 Feb 2022 12:04:25 +0100
|
||||
Subject: [PATCH] hid/multitouch: Add support for surface pro type cover tablet
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From a572b4c7ad8c25a998b6e714e5aa84c42ce42ffc Mon Sep 17 00:00:00 2001
|
||||
From 54d11a345900161774cb54aed54f1c8d306b299f Mon Sep 17 00:00:00 2001
|
||||
From: Hans de Goede <hdegoede@redhat.com>
|
||||
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 adfeb5770efd..a355c64899f8 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 6d3ec96791994ad3864b12c0fd8f8b761725fec0 Mon Sep 17 00:00:00 2001
|
||||
From b80b4f41092ad66d4b56f8f80f38085b2ccbc415 Mon Sep 17 00:00:00 2001
|
||||
From: zouxiaoh <xiaohong.zou@intel.com>
|
||||
Date: Fri, 25 Jun 2021 08:52:59 +0800
|
||||
Subject: [PATCH] iommu: intel-ipu: use IOMMU passthrough mode for Intel IPUs
|
||||
|
@ -100,7 +100,7 @@ Patchset: cameras
|
|||
1 file changed, 30 insertions(+)
|
||||
|
||||
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
|
||||
index ad9fda586f5e..b26e0297f081 100644
|
||||
index 5246e3f25ac1..646a84a545e6 100644
|
||||
--- a/drivers/iommu/intel/iommu.c
|
||||
+++ b/drivers/iommu/intel/iommu.c
|
||||
@@ -37,6 +37,12 @@
|
||||
|
@ -151,7 +151,7 @@ index ad9fda586f5e..b26e0297f081 100644
|
|||
if (!dmar_map_ipts)
|
||||
iommu_identity_mapping |= IDENTMAP_IPTS;
|
||||
|
||||
@@ -4801,6 +4815,18 @@ static void quirk_iommu_igfx(struct pci_dev *dev)
|
||||
@@ -4803,6 +4817,18 @@ static void quirk_iommu_igfx(struct pci_dev *dev)
|
||||
dmar_map_gfx = 0;
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ index ad9fda586f5e..b26e0297f081 100644
|
|||
static void quirk_iommu_ipts(struct pci_dev *dev)
|
||||
{
|
||||
if (!IS_IPTS(dev))
|
||||
@@ -4812,6 +4838,7 @@ static void quirk_iommu_ipts(struct pci_dev *dev)
|
||||
@@ -4814,6 +4840,7 @@ static void quirk_iommu_ipts(struct pci_dev *dev)
|
||||
pci_info(dev, "Passthrough IOMMU for IPTS\n");
|
||||
dmar_map_ipts = 0;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ index ad9fda586f5e..b26e0297f081 100644
|
|||
/* G4x/GM45 integrated gfx dmar support is totally busted. */
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2a40, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2e00, quirk_iommu_igfx);
|
||||
@@ -4847,6 +4874,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1632, quirk_iommu_igfx);
|
||||
@@ -4849,6 +4876,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1632, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x163A, quirk_iommu_igfx);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x163D, quirk_iommu_igfx);
|
||||
|
||||
|
@ -191,7 +191,7 @@ index ad9fda586f5e..b26e0297f081 100644
|
|||
--
|
||||
2.38.1
|
||||
|
||||
From 703890ef119a7d319e4060c8d07db4948bbb5282 Mon Sep 17 00:00:00 2001
|
||||
From cdc76dfa3d621ac8be39f870cd2b9dcd72b46347 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Scally <djrscally@gmail.com>
|
||||
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 0709fa9c304e9e384bdfed3557cc7e0a3f539533 Mon Sep 17 00:00:00 2001
|
||||
From d3b627d83ca0652b6967626e3159215ce0dfa2b9 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Scally <djrscally@gmail.com>
|
||||
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 fdc955621ef399a26e00f2e5da43133a6937236c Mon Sep 17 00:00:00 2001
|
||||
From 7547a24f9847af4be31929944288651edcb2a5b1 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Scally <djrscally@gmail.com>
|
||||
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 3322e945dd2fc6ec01fe9214569166adf108c87f Mon Sep 17 00:00:00 2001
|
||||
From 9ab39a55389865d73ee103ddac69cee7e46ba00f Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Scally <djrscally@gmail.com>
|
||||
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 b57c5e344ffe2d88b91a8285404510e3f953ec27 Mon Sep 17 00:00:00 2001
|
||||
From 169807fe7763ece3cd34571025a10b5e98a1c364 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
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 1da2ea4de299956a5a7831e98eb1633b9917609c Mon Sep 17 00:00:00 2001
|
||||
From 7622945f4f36b45719e8aadc40302b8ef53f8b1a Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Wed, 7 Sep 2022 15:38:08 +0200
|
||||
Subject: [PATCH] ipu3-imgu: Fix NULL pointer dereference in
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From e25e41f5dfac0998e58d95be59309c3519ed6457 Mon Sep 17 00:00:00 2001
|
||||
From 3a7230b78be9ca5728a697475348c597b0a009c9 Mon Sep 17 00:00:00 2001
|
||||
From: Sachi King <nakato@nakato.io>
|
||||
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 db29395d12ceaa393136f04c80f4cf099301f3f1 Mon Sep 17 00:00:00 2001
|
||||
From c99bd04e18c88e53b7dd7cede7cc749e33ca6b4f Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Luz <luzmaximilian@gmail.com>
|
||||
Date: Thu, 3 Jun 2021 14:04:26 +0200
|
||||
Subject: [PATCH] ACPI: Add AMD 13" Surface Laptop 4 model to irq 7 override
|
||||
|
|
109
patches/6.0/0011-rtc.patch
Normal file
109
patches/6.0/0011-rtc.patch
Normal file
|
@ -0,0 +1,109 @@
|
|||
From 34ce3fbdd26485e00bb7cb4e89e3951e35dafba8 Mon Sep 17 00:00:00 2001
|
||||
From: "Bart Groeneveld | GPX Solutions B.V" <bart@gpxbv.nl>
|
||||
Date: Mon, 5 Dec 2022 16:08:46 +0100
|
||||
Subject: [PATCH] acpi: allow usage of acpi_tad on HW-reduced platforms
|
||||
|
||||
The specification [1] allows so-called HW-reduced platforms,
|
||||
which do not implement everything, especially the wakeup related stuff.
|
||||
|
||||
In that case, it is still usable as a RTC. This is helpful for [2]
|
||||
and [3], which is about a device with no other working RTC,
|
||||
but it does have an HW-reduced TAD, which can be used as a RTC instead.
|
||||
|
||||
[1]: https://uefi.org/specs/ACPI/6.5/09_ACPI_Defined_Devices_and_Device_Specific_Objects.html#time-and-alarm-device
|
||||
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=212313
|
||||
[3]: https://github.com/linux-surface/linux-surface/issues/415
|
||||
|
||||
Signed-off-by: Bart Groeneveld | GPX Solutions B.V. <bart@gpxbv.nl>
|
||||
Patchset: rtc
|
||||
---
|
||||
drivers/acpi/acpi_tad.c | 35 ++++++++++++++++++++++++-----------
|
||||
1 file changed, 24 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/drivers/acpi/acpi_tad.c b/drivers/acpi/acpi_tad.c
|
||||
index e9b8e8305e23..944276934e7e 100644
|
||||
--- a/drivers/acpi/acpi_tad.c
|
||||
+++ b/drivers/acpi/acpi_tad.c
|
||||
@@ -432,6 +432,14 @@ static ssize_t caps_show(struct device *dev, struct device_attribute *attr,
|
||||
|
||||
static DEVICE_ATTR_RO(caps);
|
||||
|
||||
+static struct attribute *acpi_tad_attrs[] = {
|
||||
+ &dev_attr_caps.attr,
|
||||
+ NULL,
|
||||
+};
|
||||
+static const struct attribute_group acpi_tad_attr_group = {
|
||||
+ .attrs = acpi_tad_attrs,
|
||||
+};
|
||||
+
|
||||
static ssize_t ac_alarm_store(struct device *dev, struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
@@ -480,15 +488,14 @@ static ssize_t ac_status_show(struct device *dev, struct device_attribute *attr,
|
||||
|
||||
static DEVICE_ATTR_RW(ac_status);
|
||||
|
||||
-static struct attribute *acpi_tad_attrs[] = {
|
||||
- &dev_attr_caps.attr,
|
||||
+static struct attribute *acpi_tad_ac_attrs[] = {
|
||||
&dev_attr_ac_alarm.attr,
|
||||
&dev_attr_ac_policy.attr,
|
||||
&dev_attr_ac_status.attr,
|
||||
NULL,
|
||||
};
|
||||
-static const struct attribute_group acpi_tad_attr_group = {
|
||||
- .attrs = acpi_tad_attrs,
|
||||
+static const struct attribute_group acpi_tad_ac_attr_group = {
|
||||
+ .attrs = acpi_tad_ac_attrs,
|
||||
};
|
||||
|
||||
static ssize_t dc_alarm_store(struct device *dev, struct device_attribute *attr,
|
||||
@@ -563,13 +570,18 @@ static int acpi_tad_remove(struct platform_device *pdev)
|
||||
|
||||
pm_runtime_get_sync(dev);
|
||||
|
||||
+ if (dd->capabilities & ACPI_TAD_AC_WAKE)
|
||||
+ sysfs_remove_group(&dev->kobj, &acpi_tad_ac_attr_group);
|
||||
+
|
||||
if (dd->capabilities & ACPI_TAD_DC_WAKE)
|
||||
sysfs_remove_group(&dev->kobj, &acpi_tad_dc_attr_group);
|
||||
|
||||
sysfs_remove_group(&dev->kobj, &acpi_tad_attr_group);
|
||||
|
||||
- acpi_tad_disable_timer(dev, ACPI_TAD_AC_TIMER);
|
||||
- acpi_tad_clear_status(dev, ACPI_TAD_AC_TIMER);
|
||||
+ if (dd->capabilities & ACPI_TAD_AC_WAKE) {
|
||||
+ acpi_tad_disable_timer(dev, ACPI_TAD_AC_TIMER);
|
||||
+ acpi_tad_clear_status(dev, ACPI_TAD_AC_TIMER);
|
||||
+ }
|
||||
if (dd->capabilities & ACPI_TAD_DC_WAKE) {
|
||||
acpi_tad_disable_timer(dev, ACPI_TAD_DC_TIMER);
|
||||
acpi_tad_clear_status(dev, ACPI_TAD_DC_TIMER);
|
||||
@@ -604,11 +616,6 @@ static int acpi_tad_probe(struct platform_device *pdev)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
- if (!acpi_has_method(handle, "_PRW")) {
|
||||
- dev_info(dev, "Missing _PRW\n");
|
||||
- return -ENODEV;
|
||||
- }
|
||||
-
|
||||
dd = devm_kzalloc(dev, sizeof(*dd), GFP_KERNEL);
|
||||
if (!dd)
|
||||
return -ENOMEM;
|
||||
@@ -637,6 +644,12 @@ static int acpi_tad_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
||||
+ if (caps & ACPI_TAD_AC_WAKE) {
|
||||
+ ret = sysfs_create_group(&dev->kobj, &acpi_tad_ac_attr_group);
|
||||
+ if (ret)
|
||||
+ goto fail;
|
||||
+ }
|
||||
+
|
||||
if (caps & ACPI_TAD_DC_WAKE) {
|
||||
ret = sysfs_create_group(&dev->kobj, &acpi_tad_dc_attr_group);
|
||||
if (ret)
|
||||
--
|
||||
2.38.1
|
||||
|
Loading…
Reference in a new issue