kernel_samsung_a53x/drivers/platform/x86
Hans de Goede c866d19518 platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names
[ Upstream commit dbcbfd662a725641d118fb3ae5ffb7be4e3d0fb0 ]

On some devices the ACPI name of the touchscreen is e.g. either
MSSL1680:00 or MSSL1680:01 depending on the BIOS version.

This happens for example on the "Chuwi Hi8 Air" tablet where the initial
commit's ts_data uses "MSSL1680:00" but the tablets from the github issue
and linux-hardware.org probe linked below both use "MSSL1680:01".

Replace the strcmp() match on ts_data->acpi_name with a strstarts()
check to allow using a partial match on just the ACPI HID of "MSSL1680"
and change the ts_data->acpi_name for the "Chuwi Hi8 Air" accordingly
to fix the touchscreen not working on models where it is "MSSL1680:01".

Note this drops the length check for I2C_NAME_SIZE. This never was
necessary since the ACPI names used are never more then 11 chars and
I2C_NAME_SIZE is 20 so the replaced strncmp() would always stop long
before reaching I2C_NAME_SIZE.

Link: https://linux-hardware.org/?computer=AC4301C0542A
Fixes: bbb97d728f77 ("platform/x86: touchscreen_dmi: Add info for the Chuwi Hi8 Air tablet")
Closes: https://github.com/onitake/gsl-firmware/issues/91
Cc: stable@vger.kernel.org
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240212120608.30469-1-hdegoede@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 23:18:27 +01:00
..
intel_speed_select_if Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acer-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acer-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acerhdf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alienware-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amilo-rfkill.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apple-gmux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-nb-wmi.c platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2024-11-18 12:11:27 +01:00
asus-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-wmi.c platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting 2024-11-18 12:11:47 +01:00
asus-wmi.h platform/x86: asus-wmi: Add support for ROG X13 tablet mode 2024-11-18 12:11:27 +01:00
classmate-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compal-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcdbas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcdbas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-rbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-rbtn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-smm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smo8800.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-aio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-descriptor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-descriptor.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell_rbu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeepc-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeepc-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fujitsu-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fujitsu-tablet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpd-pocket-fan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdaps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp_accel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
huawei-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-multi-instantiate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibm_rtl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ideapad-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-hid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-rst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-smartconnect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-uncore-frequency.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-vbtn.c platform/x86: intel-vbtn: Support for tablet mode on HP Pavilion 13 x360 PC 2024-11-18 22:25:36 +01:00
intel-wmi-sbl-fw-update.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-wmi-thunderbolt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_atomisp2_led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_atomisp2_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_bxtwc_tmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_microb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_typec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_chtdc_ti_pwrbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_int0002_vgpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ips.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ips.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_menlow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mid_powerbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mid_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mrfld_pwrbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_oaktrail.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_punit_ipc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_ipc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_ipcutil.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_pcidrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_telemetry_core.c platform/x86: intel_telemetry: Fix kernel doc descriptions 2024-11-18 12:11:56 +01:00
intel_telemetry_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_telemetry_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_turbo_max_3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2024-11-18 12:11:27 +01:00
lg-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mxm-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
panasonic-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcengines-apuv2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
peaq-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmc_atom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-q10.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sony-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3_button.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3_power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surfacepro3_button.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
system76_acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc1100-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Add battery quirk for Thinkpad X120e 2024-11-18 11:43:12 +01:00
topstar-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_bluetooth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_haps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
touchscreen_dmi.c platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names 2024-11-18 23:18:27 +01:00
wmi-bmof.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wmi.c platform/x86: wmi: Fix opening of char device 2024-11-18 11:42:54 +01:00
xiaomi-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xo1-rfkill.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xo15-ebook.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00