<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/platform, branch v5.14</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.14</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.14'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2021-08-18T17:39:31Z</updated>
<entry>
<title>platform/x86: gigabyte-wmi: add support for B450M S2H V2</title>
<updated>2021-08-18T17:39:31Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2021-08-18T16:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1e35b8a7780a0c043cc5389420f069b69343f5d9'/>
<id>urn:sha1:1e35b8a7780a0c043cc5389420f069b69343f5d9</id>
<content type='text'>
Reported as working here:
https://github.com/t-8ch/linux-gigabyte-wmi-driver/issues/1#issuecomment-901207693

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Link: https://lore.kernel.org/r/20210818164435.99821-1-linux@weissschuh.net
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: gigabyte-wmi: add support for X570 GAMING X</title>
<updated>2021-08-18T07:43:51Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2021-08-17T15:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b9570f5c9240cadf87fb5f9313e8f425aa9e788f'/>
<id>urn:sha1:b9570f5c9240cadf87fb5f9313e8f425aa9e788f</id>
<content type='text'>
Reported as working here:
https://github.com/t-8ch/linux-gigabyte-wmi-driver/issues/1#issuecomment-900263115

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Link: https://lore.kernel.org/r/20210817154628.84992-1-linux@weissschuh.net
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: asus-nb-wmi: Add tablet_mode_sw=lid-flip quirk for the TP200s</title>
<updated>2021-08-12T15:18:28Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-08-12T14:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=73fcbad691110ece47a487c9e584822070e3626f'/>
<id>urn:sha1:73fcbad691110ece47a487c9e584822070e3626f</id>
<content type='text'>
The Asus TP200s / E205SA 360 degree hinges 2-in-1 supports reporting
SW_TABLET_MODE info through the ASUS_WMI_DEVID_LID_FLIP WMI device-id.
Add a quirk to enable this.

BugLink: https://gitlab.freedesktop.org/libinput/libinput/-/issues/639
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20210812145513.39117-2-hdegoede@redhat.com
</content>
</entry>
<entry>
<title>platform/x86: asus-nb-wmi: Allow configuring SW_TABLET_MODE method with a module option</title>
<updated>2021-08-12T15:18:19Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-08-12T14:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7f45621c14a209b986cd636447bb53b7f6f881c3'/>
<id>urn:sha1:7f45621c14a209b986cd636447bb53b7f6f881c3</id>
<content type='text'>
Unfortunately we have been unable to find a reliable way to detect if
and how SW_TABLET_MODE reporting is supported, so we are relying on
DMI quirks for this.

Add a module-option to specify the SW_TABLET_MODE method so that this can
be easily tested without needing to rebuild the kernel.

BugLink: https://gitlab.freedesktop.org/libinput/libinput/-/issues/639
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20210812145513.39117-1-hdegoede@redhat.com
</content>
</entry>
<entry>
<title>platform/x86: pcengines-apuv2: Add missing terminating entries to gpio-lookup tables</title>
<updated>2021-08-06T12:04:43Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-08-06T11:55:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9d7b132e62e41b7d49bf157aeaf9147c27492e0f'/>
<id>urn:sha1:9d7b132e62e41b7d49bf157aeaf9147c27492e0f</id>
<content type='text'>
The gpiod_lookup_table.table passed to gpiod_add_lookup_table() must
be terminated with an empty entry, add this.

Note we have likely been getting away with this not being present because
the GPIO lookup code first matches on the dev_id, causing most lookups to
skip checking the table and the lookups which do check the table will
find a matching entry before reaching the end. With that said, terminating
these tables properly still is obviously the correct thing to do.

Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver")
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20210806115515.12184-1-hdegoede@redhat.com
</content>
</entry>
<entry>
<title>platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust</title>
<updated>2021-08-06T12:04:43Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-08-02T14:10:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=085fc31f81765e061c78cdcab0e5516fd672bff7'/>
<id>urn:sha1:085fc31f81765e061c78cdcab0e5516fd672bff7</id>
<content type='text'>
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 &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20210802141000.978035-1-hdegoede@redhat.com
</content>
</entry>
<entry>
<title>platform/x86: Add and use a dual_accel_detect() helper</title>
<updated>2021-07-29T11:14:07Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-07-29T08:21:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=153cca9caa81ca8912a70528daca4b9a523c6898'/>
<id>urn:sha1:153cca9caa81ca8912a70528daca4b9a523c6898</id>
<content type='text'>
Various 360 degree hinges (yoga) style 2-in-1 devices use 2 accelerometers
to allow the OS to determine the angle between the display and the base of
the device.

On Windows these are read by a special HingeAngleService process which
calls undocumented ACPI methods, to let the firmware know if the 2-in-1 is
in tablet- or laptop-mode. The firmware may use this to disable the kbd and
touchpad to avoid spurious input in tablet-mode as well as to report
SW_TABLET_MODE info to the OS.

Since Linux does not call these undocumented methods, the SW_TABLET_MODE
info reported by various pdx86 drivers is incorrect on these devices.

Before this commit the intel-hid and thinkpad_acpi code already had 2
hardcoded checks for ACPI hardware-ids of dual-accel sensors to avoid
reporting broken info.

And now we also have a bug-report about the same problem in the intel-vbtn
code. Since there are at least 3 different ACPI hardware-ids in play, add
a new dual_accel_detect() helper which checks for all 3, rather then
adding different hardware-ids to the drivers as bug-reports trickle in.
Having shared code which checks all known hardware-ids is esp. important
for the intel-hid and intel-vbtn drivers as these are generic drivers
which are used on a lot of devices.

The BOSC0200 hardware-id requires special handling, because often it is
used for a single-accelerometer setup. Only in a few cases it refers to
a dual-accel setup, in which case there will be 2 I2cSerialBus resources
in the device's resource-list, so the helper checks for this.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=209011
Reported-and-tested-by: Julius Lehmann &lt;julius@devpi.de&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20210729082134.6683-1-hdegoede@redhat.com
</content>
</entry>
<entry>
<title>platform/x86: gigabyte-wmi: add support for B550 Aorus Elite V2</title>
<updated>2021-07-28T10:05:33Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2021-07-26T15:36:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2b2c66f607d00d17f879c0d946d44340bfbdc501'/>
<id>urn:sha1:2b2c66f607d00d17f879c0d946d44340bfbdc501</id>
<content type='text'>
Reported as working here:
https://github.com/t-8ch/linux-gigabyte-wmi-driver/issues/1#issuecomment-879398883

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Link: https://lore.kernel.org/r/20210726153630.65213-1-linux@weissschuh.net
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: intel-hid: add Alder Lake ACPI device ID</title>
<updated>2021-07-28T10:05:33Z</updated>
<author>
<name>Ping Bao</name>
<email>ping.a.bao@intel.com</email>
</author>
<published>2021-07-21T22:56:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a59c7b6c6ff6d5437f293709e766f939d7107266'/>
<id>urn:sha1:a59c7b6c6ff6d5437f293709e766f939d7107266</id>
<content type='text'>
Alder Lake has a new ACPI ID for Intel HID event filter device.

Signed-off-by: Ping Bao &lt;ping.a.bao@intel.com&gt;
Link: https://lore.kernel.org/r/20210721225615.20575-1-ping.a.bao@intel.com
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: think-lmi: Fix possible mem-leaks on tlmi_analyze() error-exit</title>
<updated>2021-07-17T14:39:56Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2021-07-17T14:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f7e506ec4a9966be8b2a87d3324302f0f5dd5a29'/>
<id>urn:sha1:f7e506ec4a9966be8b2a87d3324302f0f5dd5a29</id>
<content type='text'>
Fix 2 possible memleaks on error-exits from tlmi_analyze():

1. If the kzalloc of pwd_power fails, then not only free the atributes,
   but also the allocated pwd_admin struct.

2. Freeing the attributes should also free the possible_values strings.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20210717143607.3580-3-hdegoede@redhat.com
</content>
</entry>
</feed>
