Update v5.19 patches

Changes:
 - Fix NULL pointer error in IPU3 (cameras)
 - Rebase onto v5.19.7

Links:
 - kernel: 8e9312d7fb
This commit is contained in:
Maximilian Luz 2022-09-07 13:19:10 +02:00
parent a0c961a6d4
commit 8c4a60b5e6
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02
11 changed files with 183 additions and 108 deletions

View file

@ -1,4 +1,4 @@
From 4ca7f98fc8652e4794a3f69d4fd749170b512184 Mon Sep 17 00:00:00 2001
From a3db1a23667783879cd8f4b91d175ff782ae8a55 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
@ -97,5 +97,5 @@ index 6beb00858c33..d82d77387a0a 100644
};
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From dbb4f9aa2f1189067188bc03d16bc0462a5eff0d Mon Sep 17 00:00:00 2001
From 61071f5f24610b7d3f1cb7b491324958490b5e23 Mon Sep 17 00:00:00 2001
From: Tsuchiya Yuto <kitakar@gmail.com>
Date: Tue, 29 Sep 2020 17:32:22 +0900
Subject: [PATCH] mwifiex: pcie: add reset_wsid quirk for Surface 3
@ -181,9 +181,9 @@ index 8ec4176d698f..25370c5a4f59 100644
int mwifiex_pcie_reset_d3cold_quirk(struct pci_dev *pdev);
+int mwifiex_pcie_reset_wsid_quirk(struct pci_dev *pdev);
--
2.37.2
2.37.3
From c4e74570b01ec6eda365c7186d24a1be0c3f1d78 Mon Sep 17 00:00:00 2001
From a8822aa42f791e5336793f6f63b2100c1b9e8556 Mon Sep 17 00:00:00 2001
From: Tsuchiya Yuto <kitakar@gmail.com>
Date: Wed, 30 Sep 2020 18:08:24 +0900
Subject: [PATCH] mwifiex: pcie: (OEMB) add quirk for Surface 3 with broken DMI
@ -243,9 +243,9 @@ index 563dd0d5ac79..32e2f000e57b 100644
};
--
2.37.2
2.37.3
From 4e742a07dea99774b8b0038b85e868c6abb14acd Mon Sep 17 00:00:00 2001
From 13f66501a89dabb4b2afb985be512e98cca5247c Mon Sep 17 00:00:00 2001
From: Tsuchiya Yuto <kitakar@gmail.com>
Date: Sun, 4 Oct 2020 00:11:49 +0900
Subject: [PATCH] mwifiex: pcie: disable bridge_d3 for Surface gen4+
@ -398,9 +398,9 @@ index 25370c5a4f59..a1de111ad1db 100644
void mwifiex_initialize_quirks(struct pcie_service_card *card);
int mwifiex_pcie_reset_d3cold_quirk(struct pci_dev *pdev);
--
2.37.2
2.37.3
From 4d0df4c08810029f0223b616519f5ae0c84de1ba Mon Sep 17 00:00:00 2001
From 71a1a65fb66b0663b997e41fa44d4188ee18e53c 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
@ -565,9 +565,9 @@ index a1de111ad1db..0e429779bb04 100644
void mwifiex_initialize_quirks(struct pcie_service_card *card);
int mwifiex_pcie_reset_d3cold_quirk(struct pci_dev *pdev);
--
2.37.2
2.37.3
From ded6b5db6fb9795753f727a93af5c53b530b2a2d Mon Sep 17 00:00:00 2001
From 2886e763e7f3c2033c48e363b9d6f636cca26133 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
@ -643,9 +643,9 @@ index aaba2d737178..5d29e592cd34 100644
(id->driver_info & BTUSB_MEDIATEK)) {
hdev->setup = btusb_mtk_setup;
--
2.37.2
2.37.3
From 4ff0e5c39855e1190509505e0fd78e03a7f41599 Mon Sep 17 00:00:00 2001
From a31c4620d7628a7763892561ef317c9723aa7ac8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
Date: Tue, 10 Nov 2020 12:49:56 +0100
Subject: [PATCH] mwifiex: Use non-posted PCI register writes
@ -700,5 +700,5 @@ index 24bcd22a2618..b4ad0113a035 100644
}
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From f29d13ffece6b0c542f61b4890e1c5df1011c689 Mon Sep 17 00:00:00 2001
From 347e643c3af7c6054efd418dd7e8ff1a47dd3fd7 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
@ -117,5 +117,5 @@ index 688177453b07..e400a0318838 100644
ret = firmware_request_nowarn(&fw, filename, ar->dev);
ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot fw request '%s': %d\n",
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From 74e9b9d2deb4ea949a2bcb7cf1ab27b1b41f7ba7 Mon Sep 17 00:00:00 2001
From 7e02c92b1d11bd8644a1dbf67e45203aa631a17f 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
@ -34,9 +34,9 @@ index 5435604327a7..1165ee4f5928 100644
{MEI_PCI_DEVICE(MEI_DEV_ID_TGP_LP, MEI_ME_PCH15_CFG)},
--
2.37.2
2.37.3
From f22a9f39f8c3a16f456b915a20ad3462dff48f78 Mon Sep 17 00:00:00 2001
From d2114d3fa3efc0ae516cfe8fdde743a410cd739d 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
@ -1499,9 +1499,9 @@ index 000000000000..53fb86a88f97
+
+#endif /* _IPTS_UAPI_H_ */
--
2.37.2
2.37.3
From e8461c567c772f4e3f01a86c4b5ca04fc0985484 Mon Sep 17 00:00:00 2001
From cd0d3f1ad48cfe44c492aa90d8adff76a7a0958c 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
@ -1599,5 +1599,5 @@ index 5c0dce78586a..825b524e81f3 100644
{
if (risky_device(dev))
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From c4d80fd529d957c015a3ac696201d948bf80c638 Mon Sep 17 00:00:00 2001
From 09fd75cb06607500ed50ecf9a7044d78d065e34c Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:36 +0200
Subject: [PATCH] platform/surface: aggregator: Allow is_ssam_device() to be
@ -53,9 +53,9 @@ index cc257097eb05..62b38b4487eb 100644
* to_ssam_device() - Casts the given device to a SSAM client device.
* @d: The device to cast.
--
2.37.2
2.37.3
From 2515b818ea606768c3a62fa5a55b009492ae334f Mon Sep 17 00:00:00 2001
From 5576bf27906bef2436e2a50359a4a6df63a1c7ac Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:37 +0200
Subject: [PATCH] platform/surface: aggregator: Allow devices to be marked as
@ -162,9 +162,9 @@ index 62b38b4487eb..6df7c8d4e50e 100644
* ssam_device_get() - Increment reference count of SSAM client device.
* @sdev: The device to increment the reference count of.
--
2.37.2
2.37.3
From 8e2f6241f918cb1f046eaeabbb6459cf0417c925 Mon Sep 17 00:00:00 2001
From 47ff8404defeb7ee9f8d0d793f316cd7b172a317 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:38 +0200
Subject: [PATCH] platform/surface: aggregator: Allow notifiers to avoid
@ -458,9 +458,9 @@ index 6df7c8d4e50e..c418f7f2732d 100644
+
#endif /* _LINUX_SURFACE_AGGREGATOR_DEVICE_H */
--
2.37.2
2.37.3
From fb2f1a47682f2440b99777956fcc36759f41dd86 Mon Sep 17 00:00:00 2001
From b7aa427fceed2784a444774f0dc50b5a6f9dc99b Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:39 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Use client device
@ -510,9 +510,9 @@ index ce2bd88feeaa..9f630e890ff7 100644
ssam_remove_clients(&sdev->dev);
}
--
2.37.2
2.37.3
From 06e4ed4fe969703a959ba82276262aa96edb67ef Mon Sep 17 00:00:00 2001
From 1263a498c0a0127b23802200a68f574832dd1b5f Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:40 +0200
Subject: [PATCH] power/supply: surface_charger: Use client device wrappers for
@ -554,9 +554,9 @@ index a060c36c7766..59182d55742d 100644
static const struct spwr_psy_properties spwr_psy_props_adp1 = {
--
2.37.2
2.37.3
From d7810543bbbc5f3b8fd07464fed4b8b7b7ea3602 Mon Sep 17 00:00:00 2001
From 89200c93bb064801fd7eb253f857c67294916aab Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:41 +0200
Subject: [PATCH] power/supply: surface_battery: Use client device wrappers for
@ -598,9 +598,9 @@ index 5ec2e6bb2465..540707882bb0 100644
}
--
2.37.2
2.37.3
From 642d48d92858211f033e552ef32c6cca92098295 Mon Sep 17 00:00:00 2001
From 6f87bc8c02b89e0763ab5959424d0a7b27e0541a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:42 +0200
Subject: [PATCH] HID: surface-hid: Add support for hot-removal
@ -712,9 +712,9 @@ index e46330b2e561..87637f813de2 100644
return shid->ops.output_report(shid, reportnum, buf, len);
--
2.37.2
2.37.3
From 31169155397e7c6beef731f4b0b01db468b59ec4 Mon Sep 17 00:00:00 2001
From 5bdfd97d1fe05edb5c9a051978640e2c72c08b6d Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:43 +0200
Subject: [PATCH] platform/surface: aggregator: Add comment for KIP subsystem
@ -753,9 +753,9 @@ index c3de43edcffa..26b95ec12733 100644
SSAM_SSH_TC_BLD = 0x10,
SSAM_SSH_TC_BAS = 0x11, /* Detachment system (Surface Book 2/3). */
--
2.37.2
2.37.3
From b651de2e9f1ceaeb80d4960c0b65b67a12e8071f Mon Sep 17 00:00:00 2001
From 6f5b3ec6a7e2c0282553ec25f786b32fde01898a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:44 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Generify subsystem hub
@ -1143,9 +1143,9 @@ index 9f630e890ff7..09cbeee2428b 100644
};
--
2.37.2
2.37.3
From f42168f01cf2faddfd2ba361a5634f6d47ebc7a3 Mon Sep 17 00:00:00 2001
From 4e269b4e4f4c7273c32c5672740297890d537103 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:45 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Change device ID for
@ -1187,9 +1187,9 @@ index 09cbeee2428b..b11ce87c7184 100644
};
--
2.37.2
2.37.3
From 4d0771ce21ad0325cb01152f793424ef4ce2363b Mon Sep 17 00:00:00 2001
From ec7be5a60a78b0c39c6ea34ff97b14fcb3eca94e Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:46 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add KIP device hub
@ -1352,9 +1352,9 @@ index b11ce87c7184..f15cef60630f 100644
platform_driver_unregister(&ssam_platform_hub_driver);
}
--
2.37.2
2.37.3
From c3d0ff9cb2803541c2b7a11821a20ae779082f85 Mon Sep 17 00:00:00 2001
From 7eaf55002e05ef7da458fdd815d4805a8605da7a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 27 May 2022 04:34:47 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add support for
@ -1453,9 +1453,9 @@ index f15cef60630f..bf3303f1aa71 100644
};
--
2.37.2
2.37.3
From bc8c99f74db37d361807e96b5f7369bfd43c918c Mon Sep 17 00:00:00 2001
From 8a5e0a8677fdc380ee0396fc9028169ddcb41319 Mon Sep 17 00:00:00 2001
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Fri, 10 Jun 2022 14:41:58 +0900
Subject: [PATCH] platform/surface: avoid flush_scheduled_work() usage
@ -1532,9 +1532,9 @@ index 7b758f8cc137..c0e12f0b9b79 100644
MODULE_AUTHOR("Maximilian Luz <luzmaximilian@gmail.com>");
MODULE_DESCRIPTION("Surface ACPI Notify driver for Surface System Aggregator Module");
--
2.37.2
2.37.3
From 0e71bb1e453750f82d72bd517135357837cbfded Mon Sep 17 00:00:00 2001
From 1c87e70a44365ab940602ef2411089085b4da6dc Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Tue, 14 Jun 2022 21:41:17 +0200
Subject: [PATCH] platform/surface: aggregator: Reserve more event- and
@ -1754,9 +1754,9 @@ index 26b95ec12733..45501b6e54e8 100644
--
2.37.2
2.37.3
From 61ce98f49320365c171174296d3b9d30414d6d20 Mon Sep 17 00:00:00 2001
From 9605088bc0d4b65631727218b293465e50d51258 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 20:36:39 +0200
Subject: [PATCH] platform/surface: aggregator: Add helper macros for requests
@ -1967,9 +1967,9 @@ index c418f7f2732d..6cf7e80312d5 100644
/* -- Helpers for client-device notifiers. ---------------------------------- */
--
2.37.2
2.37.3
From 7609e096096946c4609f0fa40a79d4c3a417624d Mon Sep 17 00:00:00 2001
From 80cc5deee33592e920aa7a43a613ddd79ab82dd7 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 20:36:40 +0200
Subject: [PATCH] platform/surface: Add KIP/POS tablet-mode switch driver
@ -2699,9 +2699,9 @@ index 000000000000..596ca6c80681
+MODULE_DESCRIPTION("Tablet mode switch driver for Surface devices using the Surface Aggregator Module");
+MODULE_LICENSE("GPL");
--
2.37.2
2.37.3
From 7cb6d3a47e65be0f5a617458de42e8738050a5fc Mon Sep 17 00:00:00 2001
From aeff964ca43cb0f7041de4aa6c75d3d1aca851f8 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 20:36:41 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add support for tablet
@ -2752,9 +2752,9 @@ index bf3303f1aa71..8f249df673a4 100644
};
--
2.37.2
2.37.3
From 13845aa320021b4b17f6f5d3d49549bcb24a4a26 Mon Sep 17 00:00:00 2001
From d343a4324b7d8b064f8f8c91acfd08c869bfaf22 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 20:36:42 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add support for tablet
@ -2799,9 +2799,9 @@ index 8f249df673a4..f1c5905f1c16 100644
&ssam_node_hid_tid1_penstash,
&ssam_node_hid_tid1_touchpad,
--
2.37.2
2.37.3
From f9c41cfdf2d6dd56e26b47a2d0e2ba09cc3194d9 Mon Sep 17 00:00:00 2001
From 1dcd80182218cda418c2d8f08b9ec2e78f53675c Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 22:57:58 +0200
Subject: [PATCH] platform/surface: aggregator: Move device registry helper
@ -3195,9 +3195,9 @@ index 6cf7e80312d5..46c45d1b6368 100644
/* -- Helpers for client-device requests. ----------------------------------- */
--
2.37.2
2.37.3
From 130600a5d77fe4164cb9da11f1f2434c810eb16a Mon Sep 17 00:00:00 2001
From 1ef45f74d7f5660d198a79835d6ad321ffc13cb2 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 22:57:59 +0200
Subject: [PATCH] platform/surface: aggregator: Move subsystem hub drivers to
@ -4085,9 +4085,9 @@ index c680792a037e..0cbb7f3a6b2d 100644
MODULE_AUTHOR("Maximilian Luz <luzmaximilian@gmail.com>");
MODULE_DESCRIPTION("Device-registry for Surface System Aggregator Module");
--
2.37.2
2.37.3
From ab3e3220cf564ed4c088045846afd227cadb8b9c Mon Sep 17 00:00:00 2001
From d55decce43e8eecfdcf95a8830a741c59e5196e5 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 24 Jun 2022 22:58:00 +0200
Subject: [PATCH] platform/surface: Update copyright year of various drivers
@ -4407,9 +4407,9 @@ index 6373d3b5eb7f..fbf2e11fd6ce 100644
#include <asm/unaligned.h>
--
2.37.2
2.37.3
From e9187c267f584fee87e245e0f8c631265cf7b7e7 Mon Sep 17 00:00:00 2001
From 686174233840652bc5404c84c5fb7d596f640ddf Mon Sep 17 00:00:00 2001
From: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Date: Wed, 13 Jul 2022 06:09:16 +0200
Subject: [PATCH] MAINTAINERS: repair file entry in MICROSOFT SURFACE
@ -4453,9 +4453,9 @@ index 55e80354a097..6772c9d0eccc 100644
MICROSOFT SURFACE BATTERY AND AC DRIVERS
M: Maximilian Luz <luzmaximilian@gmail.com>
--
2.37.2
2.37.3
From 246351ebdb5f682d5a5fbe8269f694aeef94b9b6 Mon Sep 17 00:00:00 2001
From 53978e1cf5a26a0482ecc4f6520051e56f8523ae Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sun, 17 Jul 2022 14:07:35 +0200
Subject: [PATCH] platform/surface: tabletsw: Fix __le32 integer access
@ -4497,9 +4497,9 @@ index 596ca6c80681..27d95a6a7851 100644
*source_id = get_unaligned_le32(&sources.id[0]);
return 0;
--
2.37.2
2.37.3
From 76f1265653b3e3efa6012a6793c2f2d1c62bf922 Mon Sep 17 00:00:00 2001
From 275b1eaec4c63b3a3ca011127cde06ce260be865 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Fri, 8 Jul 2022 03:34:44 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add support for
@ -4529,9 +4529,9 @@ index d5655f6a4a41..93ab62eb393d 100644
{ "MSHW0123", (unsigned long)ssam_node_group_sls },
--
2.37.2
2.37.3
From 6cd95eb630fd3292e2c0b91e7612dff72afc6b0e Mon Sep 17 00:00:00 2001
From 9556175a48aefe4c379d7263250d8e83c1f4083a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jun 2022 20:42:00 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Rename HID device
@ -4602,9 +4602,9 @@ index 93ab62eb393d..7d82398f55b1 100644
};
--
2.37.2
2.37.3
From f2d1e3ba8ed4470551536a13f6e9d44312950bc1 Mon Sep 17 00:00:00 2001
From d4657223326239c2d5f6fe1be0c4ce0425420904 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jun 2022 20:52:47 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Rename HID device
@ -4695,9 +4695,9 @@ index 7d82398f55b1..9970f89b1411 100644
};
--
2.37.2
2.37.3
From 019a119019fd71b90301e81d4f6a3ce5e735e083 Mon Sep 17 00:00:00 2001
From 0d68c4c4dfc57ce02438d26fd9240ced2ea1fcd0 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jun 2022 20:54:59 +0200
Subject: [PATCH] platform/surface: aggregator_registry: Add HID devices for
@ -4731,5 +4731,5 @@ index 9970f89b1411..585911020cea 100644
};
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From 0b2c4b7c0f13110ed0fafe51010728aaae3febb5 Mon Sep 17 00:00:00 2001
From 0a2d0cceb3e27d8dab054772e51fcdfdfd6470b6 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
@ -108,9 +108,9 @@ index 08b561f0709d..d7c397bce0f0 100644
dev_warn(&adapter->dev, "protocol 0x%02x not supported for client 0x%02x\n",
accessor_type, client->addr);
--
2.37.2
2.37.3
From 3e0af9238e86349aaa2b99ed86a986aac71f72e0 Mon Sep 17 00:00:00 2001
From 537da6f2cc020b9465f9465f0dd94ddd3ace7b96 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
@ -331,5 +331,5 @@ index 000000000000..8b816ed8f35c
+MODULE_DESCRIPTION("Discrete GPU Power-Switch for Surface Book 1");
+MODULE_LICENSE("GPL");
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From 3830f232877eb1cbeb6fbbdecd6ba2f6c9f7915d Mon Sep 17 00:00:00 2001
From b896a207d8978a4ca38f3061601e48c830093d53 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
@ -73,9 +73,9 @@ index 480476121c01..36e1bf7b7a01 100644
/*
--
2.37.2
2.37.3
From daab091a540ef7d8ec7bb321f323c5ee9f491467 Mon Sep 17 00:00:00 2001
From 41b9b2e6993294802e79866086d6d703b05a4f62 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
@ -145,5 +145,5 @@ index 242fb690dcaf..30eea54dbb47 100644
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From 996b6d6d43fc5dae415b6c884b47edd9baca2b7a Mon Sep 17 00:00:00 2001
From 791813ed91250e357f5b23328a751807c092fe01 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
@ -229,9 +229,9 @@ index 2e72922e36f5..15f5f11c4b85 100644
{ .driver_data = MT_CLS_GOOGLE,
HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
--
2.37.2
2.37.3
From 582e1e63ced3b80a12a3d85e3dd964307decc1a9 Mon Sep 17 00:00:00 2001
From a3cc7633d34a3ccf1d187b66a0e8805dffd7024a 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
@ -529,5 +529,5 @@ index 15f5f11c4b85..69202575ce19 100644
unregister_pm_notifier(&td->pm_notifier);
del_timer_sync(&td->release_timer);
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From e77217057d5086b65fd70fc388d2723d365c4bfa Mon Sep 17 00:00:00 2001
From 9deb3358353f883c4216b61cc04fbd430f0641f8 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Thu, 21 Jul 2022 14:11:20 +0200
Subject: [PATCH] platform/surface: gpe: Add support for 13" Intel version of
@ -39,5 +39,5 @@ index 27365cbe1ee9..c219b840d491 100644
.ident = "Surface Laptop Studio",
.matches = {
--
2.37.2
2.37.3

View file

@ -1,4 +1,4 @@
From 88f2727efa81227369831c953a19f16d673ee37b Mon Sep 17 00:00:00 2001
From a874785b8aace0667d5dbe8568f8c89fd4449b11 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
@ -72,9 +72,9 @@ index 762b61f67e6c..2c0f39a7f2a1 100644
* Do not enumerate devices with enumeration_by_parent flag set as
* they will be enumerated by their respective parents.
--
2.37.2
2.37.3
From 937600df89ab5b3ed83bb38a213ba4782ed26fba Mon Sep 17 00:00:00 2001
From aff164dec208929e6d9a8fa812eae03747253303 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
@ -189,9 +189,9 @@ index 825b524e81f3..095d566c058f 100644
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x9D3E, quirk_iommu_ipts);
--
2.37.2
2.37.3
From c536153443845284ad8597c95729db444bd618cf Mon Sep 17 00:00:00 2001
From c13e4cf96accd9a5b9a1f09fac179dd3c0f42369 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
@ -226,9 +226,9 @@ index 22f61b47f9e5..e1de1ff40bba 100644
return 0;
--
2.37.2
2.37.3
From a23cff800ac1d7dbae4843278c57df4c2ca057ed Mon Sep 17 00:00:00 2001
From fdae928f5e9a3fed6787e6d021a2126a3a999ab7 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
@ -732,9 +732,9 @@ index 000000000000..8451c75b696b
+MODULE_DESCRIPTION("DW9719 VCM Driver");
+MODULE_LICENSE("GPL");
--
2.37.2
2.37.3
From 86e2f97bff4f2f37053715a7a18a5207fd29a20f Mon Sep 17 00:00:00 2001
From 584420d65962ed914a105cfc0ec3b0d4d5660bae 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
@ -847,9 +847,9 @@ index dbdbdb648a0d..d0715144bf3e 100644
static int cio2_parse_firmware(struct cio2_device *cio2)
--
2.37.2
2.37.3
From 8539fa2629087414a9b4630a1be7f73eab6e373c Mon Sep 17 00:00:00 2001
From 499f63a11cb326b01d0d25adb167a0477f779920 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
@ -890,9 +890,9 @@ index d0715144bf3e..3a25dfc696b2 100644
static int cio2_parse_firmware(struct cio2_device *cio2)
--
2.37.2
2.37.3
From f437c1deeed3b818bd9f6098e19cce7448ca51d6 Mon Sep 17 00:00:00 2001
From bbf4e826699ddad5cfbb6ac819954944c2625db4 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
@ -919,5 +919,80 @@ index 5c245f642ae3..50ea62e63784 100644
select VIDEO_V4L2_SUBDEV_API
select V4L2_ASYNC
--
2.37.2
2.37.3
From dfdc9ca59f2aee9b4b6ae76e0f3ae7b51d617335 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Wed, 7 Sep 2022 12:40:24 +0200
Subject: [PATCH] media: staging/intel-ipu3: Finalize subdev initialization to
allcoate active state
Commit f69952a4dc1e ("media: subdev: add active state to struct
v4l2_subdev") introduced the active_state member to struct v4l2_subdev.
This state needs to be allocated via v4l2_subdev_init_finalize(). The
intel-ipu3 driver unfortunately does not do that, due to which,
active_state is NULL and we run into an oops (NULL pointer dereference)
when that state is accessed.
In particular, this happens subdev in IOCTLs as commit 3cc7a4bbc381
("media: subdev: pass also the active state to subdevs from ioctls")
passes that state on to the subdev IOCTLs. An example scenario where
this happens is running libcamera's qcam or cam on a device with IPU3,
for example the Microsoft Surface Book 2. In this case, the oops is
reproducibly in v4l2_subdev_get_try_crop(), called via
imgu_subdev_set_selection().
To fix this, allocate the active_state member via
v4l2_subdev_init_finalize().
Link: https://github.com/linux-surface/linux-surface/issues/907
Fixes: 3cc7a4bbc381 ("media: subdev: pass also the active state to subdevs from ioctls")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Patchset: cameras
---
drivers/staging/media/ipu3/ipu3-v4l2.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c
index d1c539cefba8..84ab98ba9a2e 100644
--- a/drivers/staging/media/ipu3/ipu3-v4l2.c
+++ b/drivers/staging/media/ipu3/ipu3-v4l2.c
@@ -1093,10 +1093,18 @@ static int imgu_v4l2_subdev_register(struct imgu_device *imgu,
"failed to create subdev v4l2 ctrl with err %d", r);
goto fail_subdev;
}
+
+ r = v4l2_subdev_init_finalize(&imgu_sd->subdev);
+ if (r) {
+ dev_err(&imgu->pci_dev->dev,
+ "failed to initialize subdev (%d)\n", r);
+ goto fail_subdev;
+ }
+
r = v4l2_device_register_subdev(&imgu->v4l2_dev, &imgu_sd->subdev);
if (r) {
dev_err(&imgu->pci_dev->dev,
- "failed initialize subdev (%d)\n", r);
+ "failed to register subdev (%d)\n", r);
goto fail_subdev;
}
@@ -1104,6 +1112,7 @@ static int imgu_v4l2_subdev_register(struct imgu_device *imgu,
return 0;
fail_subdev:
+ v4l2_subdev_cleanup(&imgu_sd->subdev);
v4l2_ctrl_handler_free(imgu_sd->subdev.ctrl_handler);
media_entity_cleanup(&imgu_sd->subdev.entity);
@@ -1275,6 +1284,7 @@ static void imgu_v4l2_subdev_cleanup(struct imgu_device *imgu, unsigned int i)
struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[i];
v4l2_device_unregister_subdev(&imgu_pipe->imgu_sd.subdev);
+ v4l2_subdev_cleanup(&imgu_pipe->imgu_sd.subdev);
v4l2_ctrl_handler_free(imgu_pipe->imgu_sd.subdev.ctrl_handler);
media_entity_cleanup(&imgu_pipe->imgu_sd.subdev.entity);
}
--
2.37.3

View file

@ -1,4 +1,4 @@
From f71df74379419b38bfc09f3a3f97d67d8623bb0b Mon Sep 17 00:00:00 2001
From ceacc22113c3e2b32c823b5e7a282827e867f46b 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
@ -63,9 +63,9 @@ index 907cc98b1938..0116d27b29ea 100644
mp_config_acpi_legacy_irqs();
--
2.37.2
2.37.3
From bc12dc7a72a787d773bb020774d68ffa7ef0e851 Mon Sep 17 00:00:00 2001
From e62553a30f988d97e850348bacaf6e9049c5d113 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
@ -105,5 +105,5 @@ index 0116d27b29ea..af102c6f8e5b 100644
};
--
2.37.2
2.37.3