linux/drivers/platform/x86/x86-android-tablets
Hans de Goede dd519eb8f6
platform/x86: x86-android-tablets: fix gpio_secondary_fwnode_init() not working
acpi_bus_find_device_by_name() call returns a pointer to the device object
on the ACPI bus, aka the ACPI companion device.

gpio_secondary_fwnode_init() then continues with setting the secondary
fwnode on this device. But this is not the actual physical device for
the GPIO controller (e.g. the GPIO controller platform bus device).

This mismatch is causing GPIO lookups by secondary fwnode to not work.

Modify gpio_secondary_fwnode_init() to instead set the secondary fwnode
of the first physical device associated with the ACPI companion device.

This fixes the GPIO lookups not working.

Fixes: 1448c2d2ca ("platform/x86: x86-android-tablets: enable fwnode matching of GPIO chips")
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260908185517.49047-1-johannes.goede@oss.qualcomm.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-09-08 22:00:55 +03:00
..
acer.c platform/x86: x86-android-tablets: Add support for Acer A1-840 tablet 2025-09-26 14:26:39 +03:00
asus.c platform/x86: x86-android-tablets: Update my email address 2025-09-26 14:26:35 +03:00
core.c platform/x86: x86-android-tablets: fix gpio_secondary_fwnode_init() not working 2026-09-08 22:00:55 +03:00
dmi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
Kconfig platform/x86: x86-android-tablets: Add select POWER_SUPPLY to Kconfig 2025-03-24 15:51:15 +02:00
lenovo.c platform/x86: x86-android-tablets: use shared battery swnode group on Yoga Tab 2 2026-09-02 14:43:29 +03:00
Makefile platform/x86: x86-android-tablets: Move Acer info to its own file 2025-09-26 14:26:37 +03:00
other.c platform/x86: x86-android-tablets: Stop using EPROBE_DEFER 2025-09-26 14:26:43 +03:00
shared-psy-info.c platform/x86: x86-android-tablets: Update my email address 2025-09-26 14:26:35 +03:00
shared-psy-info.h platform/x86: x86-android-tablets: Update my email address 2025-09-26 14:26:35 +03:00
vexia_atla10_ec.c platform/x86: x86-android-tablets: Use named initializers for struct i2c_device_id 2026-05-28 14:43:52 +03:00
x86-android-tablets.h platform/x86: x86-android-tablets: add Crystal Cove GPIO swnode support 2026-09-02 14:43:23 +03:00