From 73ea0c966f0af7d703335c4b6330524b5a287dd4 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 20 Nov 2018 11:45:21 +0100 Subject: [PATCH] Add a patch fixing KIOX010A accelerometers (rhbz#1526312) --- ...ccel-kxcjk1013-Add-more-hardware-ids.patch | 63 +++++++++++++++++++ kernel.spec | 4 ++ 2 files changed, 67 insertions(+) create mode 100644 iio-accel-kxcjk1013-Add-more-hardware-ids.patch diff --git a/iio-accel-kxcjk1013-Add-more-hardware-ids.patch b/iio-accel-kxcjk1013-Add-more-hardware-ids.patch new file mode 100644 index 000000000..d3e5eef2f --- /dev/null +++ b/iio-accel-kxcjk1013-Add-more-hardware-ids.patch @@ -0,0 +1,63 @@ +From e90e897b3cac4038d49b38397ab044498c1d7adc Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Tue, 2 Oct 2018 20:05:34 +0200 +Subject: [PATCH 4.20 regression fix] iio: accel: kxcjk1013: Add KIOX0009 ACPI + Hardware-ID + +Add KIOX0009 ACPI HID, this is used e.g. on the Acer One 10. + +Signed-off-by: Hans de Goede +--- + drivers/iio/accel/kxcjk-1013.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c +index af53a1084ee5..8600e4be88ad 100644 +--- a/drivers/iio/accel/kxcjk-1013.c ++++ b/drivers/iio/accel/kxcjk-1013.c +@@ -1489,6 +1489,7 @@ static const struct acpi_device_id kx_acpi_match[] = { + {"KXCJ1013", KXCJK1013}, + {"KXCJ1008", KXCJ91008}, + {"KXCJ9000", KXCJ91008}, ++ {"KIOX0009", KXTJ21009}, + {"KIOX000A", KXCJ91008}, + {"KXTJ1009", KXTJ21009}, + {"SMO8500", KXCJ91008}, +-- +2.19.1 + +From e45a7af34a700c99f91f50e021c187f05552f2f4 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Tue, 20 Nov 2018 11:39:45 +0100 +Subject: [PATCH 4.20 regression fix] iio: accel: kxcjk1013: Add KIOX010A ACPI + Hardware-ID + +Various 2-in-1's use KIOX010A and KIOX020A as HIDs for 2 KXCJ91008 +accelerometers. The KIOX010A HID is for the one in the base and the +KIOX020A for the accelerometer in the keyboard. + +Since userspace does not have a way yet to deal with (or ignore) the +accelerometer in the keyboard, this commit just adds the KIOX010A HID +for now so that display rotation will work. + +Related: https://github.com/hadess/iio-sensor-proxy/issues/166 +Signed-off-by: Hans de Goede +--- + drivers/iio/accel/kxcjk-1013.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c +index 8600e4be88ad..210742584041 100644 +--- a/drivers/iio/accel/kxcjk-1013.c ++++ b/drivers/iio/accel/kxcjk-1013.c +@@ -1491,6 +1491,7 @@ static const struct acpi_device_id kx_acpi_match[] = { + {"KXCJ9000", KXCJ91008}, + {"KIOX0009", KXTJ21009}, + {"KIOX000A", KXCJ91008}, ++ {"KIOX010A", KXCJ91008}, /* KXCJ91008 inside the display of a 2-in-1 */ + {"KXTJ1009", KXTJ21009}, + {"SMO8500", KXCJ91008}, + { }, +-- +2.19.1 + diff --git a/kernel.spec b/kernel.spec index ef99a0696..740a3eaa2 100644 --- a/kernel.spec +++ b/kernel.spec @@ -609,6 +609,9 @@ Patch502: input-rmi4-remove-the-need-for-artifical-IRQ.patch # rhbz 1644013, patch pending upstream Patch503: 0001-ACPI-platform-Add-SMB0001-HID-to-forbidden_id_list.patch +# rhbz 1526312 (accelerometer part of the bug), patches pending upstream +Patch504: iio-accel-kxcjk1013-Add-more-hardware-ids.patch + # END OF PATCH DEFINITIONS %endif @@ -1884,6 +1887,7 @@ fi * Tue Nov 20 2018 Hans de Goede - Turn on CONFIG_PINCTRL_GEMINILAKE on x86_64 (rhbz#1639155) - Add a patch fixing touchscreens on HP AMD based laptops (rhbz#1644013) +- Add a patch fixing KIOX010A accelerometers (rhbz#1526312) * Mon Nov 19 2018 Jeremy Cline - 4.20.0-0.rc3.git0.1 - Linux v4.20-rc3