Patch "platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust" has been added to the 5.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust

to the 5.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     platform-x86-make-dual_accel_detect-kiox010a-kiox020a-detect-more-robust.patch
and it can be found in the queue-5.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 085fc31f81765e061c78cdcab0e5516fd672bff7 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@xxxxxxxxxx>
Date: Mon, 2 Aug 2021 16:10:00 +0200
Subject: platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust

From: Hans de Goede <hdegoede@xxxxxxxxxx>

commit 085fc31f81765e061c78cdcab0e5516fd672bff7 upstream.

360 degree hinges devices with dual KIOX010A + KIOX020A accelerometers
always have both a KIOX010A and a KIOX020A ACPI device (one for each
accel).

Theoretical some vendor may re-use some DSDT for a non-convertible
stripping out just the KIOX020A ACPI device from the DSDT. Check that
both ACPI devices are present to make the check more robust.

Fixes: 153cca9caa81 ("platform/x86: Add and use a dual_accel_detect() helper")
Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20210802141000.978035-1-hdegoede@xxxxxxxxxx
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/platform/x86/dual_accel_detect.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/platform/x86/dual_accel_detect.h
+++ b/drivers/platform/x86/dual_accel_detect.h
@@ -60,7 +60,8 @@ static bool dual_accel_detect_bosc0200(v
 static bool dual_accel_detect(void)
 {
 	/* Systems which use a pair of accels with KIOX010A / KIOX020A ACPI ids */
-	if (acpi_dev_present("KIOX010A", NULL, -1))
+	if (acpi_dev_present("KIOX010A", NULL, -1) &&
+	    acpi_dev_present("KIOX020A", NULL, -1))
 		return true;
 
 	/* Systems which use a single DUAL250E ACPI device to model 2 accels */


Patches currently in stable-queue which might be from hdegoede@xxxxxxxxxx are

queue-5.13/platform-x86-gigabyte-wmi-add-support-for-b450m-s2h-.patch
queue-5.13/platform-x86-add-and-use-a-dual_accel_detect-helper.patch
queue-5.13/platform-x86-asus-nb-wmi-add-tablet_mode_sw-lid-flip.patch
queue-5.13/platform-x86-asus-nb-wmi-allow-configuring-sw_tablet.patch
queue-5.13/platform-x86-gigabyte-wmi-add-support-for-x570-gamin.patch
queue-5.13/platform-x86-make-dual_accel_detect-kiox010a-kiox020a-detect-more-robust.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux