Update v5.8 patches

Changes:
 - SAM:
   - Merge keyboard and HID driver into single module
   - Restructure DTX user-space interface
   - Add DTX support for Surface Book 3
   - Continued cleanup and misc. fixes

 - other:
   - Add patch to fix boot problems on the Surface Go series

Links:
- SAM: bfef4ac6f8
- kernel: bdadf4da18
This commit is contained in:
Maximilian Luz 2020-10-16 19:38:49 +02:00
parent d0b1e651ba
commit cbffebd101
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02
10 changed files with 1538 additions and 1092 deletions

View file

@ -12,7 +12,6 @@ CONFIG_SURFACE_BATTERY=m
CONFIG_SURFACE_DTX=m
CONFIG_SURFACE_HID=m
CONFIG_SURFACE_HOTPLUG=m
CONFIG_SURFACE_KEYBOARD=m
CONFIG_SURFACE_PERFMODE=m
#

View file

@ -1,7 +1,7 @@
From 463107b4f3a4b794406270c8333e66619bdadf05 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <cwhuang@linux.org.tw>
Date: Tue, 18 Sep 2018 11:01:37 +0800
Subject: [PATCH 1/6] surface3-oemb
Subject: [PATCH 1/7] surface3-oemb
---
drivers/platform/x86/surface3-wmi.c | 7 +++++++

View file

@ -1,7 +1,7 @@
From e9076b84d446d05265717b73de4f77e302e78598 Mon Sep 17 00:00:00 2001
From: kitakar5525 <34676735+kitakar5525@users.noreply.github.com>
Date: Thu, 20 Feb 2020 16:51:11 +0900
Subject: [PATCH 2/6] wifi
Subject: [PATCH 2/7] wifi
---
drivers/net/wireless/marvell/mwifiex/Makefile | 1 +

View file

@ -1,7 +1,7 @@
From 64af858e6b6b7ae3f2c477119221da33344f24c7 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 3/6] ipts
Subject: [PATCH 3/7] ipts
---
drivers/misc/Kconfig | 1 +

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
From 17b1d5ca0a9d21f3410a124fa8d054e7997b9f81 Mon Sep 17 00:00:00 2001
From 2e7656defabd8c62b9c36b912386f83b8b757d55 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jul 2020 17:19:53 +0200
Subject: [PATCH 5/6] surface-sam-over-hid
Subject: [PATCH 5/7] surface-sam-over-hid
---
drivers/i2c/i2c-core-acpi.c | 35 +++++++

View file

@ -1,7 +1,7 @@
From 27d000fee9b13876dae91634b00a742d7f5bb06b Mon Sep 17 00:00:00 2001
From 3965e53a7027b6a17201233cabe6ed146d2f53ea Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sun, 16 Aug 2020 23:39:56 +0200
Subject: [PATCH 6/6] surface-gpe
Subject: [PATCH 6/7] surface-gpe
---
drivers/platform/x86/Kconfig | 9 +

View file

@ -0,0 +1,70 @@
From eacbf7fd1be0f691fdd5562413a5eea98a7210e5 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Wed, 14 Oct 2020 16:41:58 +0200
Subject: [PATCH 7/7] i2c: core: Restore acpi_walk_dep_device_list() getting
called after registering the ACPI i2c devs
Commit 21653a4181ff ("i2c: core: Call i2c_acpi_install_space_handler()
before i2c_acpi_register_devices()")'s intention was to only move the
acpi_install_address_space_handler() call to the point before where
the ACPI declared i2c-children of the adapter where instantiated by
i2c_acpi_register_devices().
But i2c_acpi_install_space_handler() had a call to
acpi_walk_dep_device_list() hidden (that is I missed it) at the end
of it, so as an unwanted side-effect now acpi_walk_dep_device_list()
was also being called before i2c_acpi_register_devices().
Move the acpi_walk_dep_device_list() call to the end of
i2c_acpi_register_devices(), so that it is once again called *after*
the i2c_client-s hanging of the adapter have been created.
This fixes the Microsoft Surface Go 2 hanging at boot.
Fixes: 21653a4181ff ("i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_register_devices()")
Suggested-by: Maximilian Luz <luzmaximilian@gmail.com>
Reported-and-tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/i2c/i2c-core-acpi.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c
index 60b9cb51d5f7..72f7305ab3fc 100644
--- a/drivers/i2c/i2c-core-acpi.c
+++ b/drivers/i2c/i2c-core-acpi.c
@@ -264,6 +264,7 @@ static acpi_status i2c_acpi_add_device(acpi_handle handle, u32 level,
void i2c_acpi_register_devices(struct i2c_adapter *adap)
{
acpi_status status;
+ acpi_handle handle;
if (!has_acpi_companion(&adap->dev))
return;
@@ -274,6 +275,15 @@ void i2c_acpi_register_devices(struct i2c_adapter *adap)
adap, NULL);
if (ACPI_FAILURE(status))
dev_warn(&adap->dev, "failed to enumerate I2C slaves\n");
+
+ if (!adap->dev.parent)
+ return;
+
+ handle = ACPI_HANDLE(adap->dev.parent);
+ if (!handle)
+ return;
+
+ acpi_walk_dep_device_list(handle);
}
const struct acpi_device_id *
@@ -764,7 +774,6 @@ int i2c_acpi_install_space_handler(struct i2c_adapter *adapter)
return -ENOMEM;
}
- acpi_walk_dep_device_list(handle);
return 0;
}
--
2.28.0

View file

@ -0,0 +1 @@
../../../patches/5.8/0007-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch

View file

@ -31,6 +31,7 @@ source=(
0004-surface-sam.patch
0005-surface-sam-over-hid.patch
0006-surface-gpe.patch
0007-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch
)
validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
@ -39,14 +40,15 @@ validpgpkeys=(
)
sha256sums=('1251a7e13c23ad35c38f8e58227fc0183e7087a81ee030766e2db8cbe2453392'
'181330a9cf4517abbbe29b93165bc859ad8ca14a43582f4e1d69aae2b5ecc2c9'
'ba10bbf15bdc395691d14be9ce62d9f68d02eb9f59530743b6db34987953c9a8'
'7f52b09f0bf62d9b2ba162a424ce99caa50cb671f2b78fca1c1dc81e33e9b57f'
'8cd2b019aac6d3807a5cdcbbbe0aad81e63193ff3e8dffd7a79d4a1421b858f6'
'95577055962cd42cca9db7c69169e6c78e6e5e98cdeac4cb52805fffabaa7369'
'62098e2effe680bd04445f902d3f181287c8c55f557215e5e5bb98cf38e64b1f'
'26d630e3fa500d02c6f9214033cadb3fb5403fd8528823a277968f728da7e07e'
'749d066fd95f78ad0fd725aa39972f1e85749f0399329bc31f2c88fc0535c9f1'
'3f89228ea9f858977511ceeb2f68cdcfb281712d04f498a68343e58ce0bfa169'
'1581cbd9fa3f51fe2854f7208c0e7df4d62948b4fe71d1d9334a82305f58e529')
'7dc41454b2646c743bf6592bcb0706242469380f8e634b9555a7322d7e015800'
'3005384427716297fe4e7ed77feba56976188f0b411c2ba7da73aef817c41ce0'
'e4245ee8ab19d46d126ce92e0b784944ae7a9c618d5cf5ae11109a946bd75961'
'5521a6d90e50a7a188f69e5f7e769bcb03f1994bf5d99a170e4dc0cf416d2352'
'afbfc31f6139f37753926c0ba1e1670190144d65dae13b2f4a66182cadd36235'
'018c3972a248547a83b3650e3f3b11d83078ea928fdbb3d1b965b3dea0e12973'
'ea2c799e490f3c478a821e00db9b4cd7183d703712f91a8b677de30d6639eb4c')
export KBUILD_BUILD_HOST=archlinux