linux-stable/drivers/platform/x86
Hans de Goede 1e8c2fa6a8 platform/x86: panasonic-laptop: Allocate 1 entry extra in the sinf array
commit 33297cef31 upstream.

Some DSDT-s have an off-by-one bug where the SINF package count is
one higher than the SQTY reported value, allocate 1 entry extra.

Also make the SQTY <-> SINF package count mismatch error more verbose
to help debugging similar issues in the future.

This fixes the panasonic-laptop driver failing to probe() on some
devices with the following errors:

[    3.958887] SQTY reports bad SINF length SQTY: 37 SINF-pkg-count: 38
[    3.958892] Couldn't retrieve BIOS data
[    3.983685] Panasonic Laptop Support - With Macros: probe of MAT0019:00 failed with error -5

Fixes: 709ee531c1 ("panasonic-laptop: add Panasonic Let's Note laptop extras driver v0.94")
Cc: stable@vger.kernel.org
Tested-by: James Harmison <jharmison@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240909113227.254470-2-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-18 19:23:03 +02:00
..
amd platform/x86/amd/pmf: Fix a missing cleanup path 2023-09-13 09:42:57 +02:00
dell platform/x86: dell-smbios: Fix error path in dell_smbios_init() 2024-09-12 11:10:21 +02:00
hp platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch warning 2023-10-19 23:08:50 +02:00
intel platform/x86/intel/ifs: Initialize union ifs_status to zero 2024-08-14 13:52:43 +02:00
acer-wireless.c
acer-wmi.c
acerhdf.c
adv_swbutton.c
amilo-rfkill.c
apple-gmux.c
asus-laptop.c
asus-nb-wmi.c platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2023-12-13 18:39:05 +01:00
asus-tf103c-dock.c
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2023-12-13 18:39:05 +01:00
asus-wmi.h platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e 2023-10-25 12:03:15 +02:00
barco-p50-gpio.c
classmate-laptop.c
compal-laptop.c
dual_accel_detect.h
eeepc-laptop.c
eeepc-wmi.c
firmware_attributes_class.c
firmware_attributes_class.h
fujitsu-laptop.c
fujitsu-tablet.c
gigabyte-wmi.c
gpd-pocket-fan.c
hdaps.c
huawei-wmi.c platform/x86: huawei-wmi: Silence ambient light sensor 2023-09-13 09:42:22 +02:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Add support for new hotkeys found on ThinkBook 14s Yoga ITL 2023-08-30 16:11:05 +02:00
intel_ips.c
intel_ips.h
intel_scu_ipc.c platform/x86: intel_scu_ipc: Fail IPC send if still busy 2023-10-06 14:56:39 +02:00
intel_scu_ipcutil.c
intel_scu_pcidrv.c
intel_scu_pltdrv.c
intel_scu_wdt.c
Kconfig platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2023-12-13 18:39:05 +01:00
lenovo-yogabook-wmi.c platform/x86: lenovo-yogabook: Set default keyboard backligh brightness on probe() 2023-07-19 16:21:35 +02:00
lg-laptop.c platform/x86: lg-laptop: fix %s null argument warning 2024-08-29 17:30:40 +02:00
Makefile
meraki-mx100.c
mlx-platform.c
msi-laptop.c platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100 2023-08-03 10:24:01 +02:00
msi-wmi.c
mxm-wmi.c
nvidia-wmi-ec-backlight.c
p2sb.c platform/x86: p2sb: Don't init until unassigned resources have been assigned 2024-06-27 13:46:16 +02:00
panasonic-laptop.c platform/x86: panasonic-laptop: Allocate 1 entry extra in the sinf array 2024-09-18 19:23:03 +02:00
pcengines-apuv2.c
peaq-wmi.c
pmc_atom.c
samsung-laptop.c
samsung-q10.c
serial-multi-instantiate.c ACPI: scan: Create platform device for CS35L56 2023-08-16 18:27:31 +02:00
simatic-ipc.c
sony-laptop.c
system76_acpi.c
think-lmi.c platform/x86: think-lmi: Fix reference leak 2023-10-19 23:08:50 +02:00
think-lmi.h
thinkpad_acpi.c platform/x86: thinkpad_acpi: Only update profile if successfully converted 2024-03-01 13:26:37 +01:00
topstar-laptop.c
toshiba-wmi.c
toshiba_acpi.c platform/x86: toshiba_acpi: Fix array out-of-bounds access 2024-07-18 13:18:40 +02:00
toshiba_bluetooth.c
toshiba_haps.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the EZpad 6s Pro 2024-07-11 12:47:18 +02:00
uv_sysfs.c
winmate-fm07-keys.c
wireless-hotkey.c platform/x86: wireless-hotkey: Add support for LG Airplane Button 2024-07-25 09:49:15 +02:00
wmi-bmof.c
wmi.c platform/x86: wmi: Skip blocks with zero instances 2023-12-13 18:39:06 +01:00
x86-android-tablets.c
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c