linux/drivers/platform/x86
Mario Limonciello 1bcad8e510 platform/x86: think-lmi: Fix issues with duplicate attributes
On an AMD based Lenovo T14, I find that the module doesn't work at
all, and instead has a traceback with messages like:

```
sysfs: cannot create duplicate filename '/devices/virtual/firmware-attributes/thinklmi/attributes/Reserved'
```

Duplicate and reserved values showing up appear to be a firmware bug,
but they shouldn't make the driver explode.  So catch them and skip
them.

Fixes: a40cd7ef22 ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20210622200755.12379-2-mario.limonciello@amd.com
[hdegoede@redhat.com: Add missing kfree(tlmi_priv.setting[i])]
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-06-28 11:34:44 +02:00
..
dell platform/x86: Remove "default n" entries 2021-06-22 11:05:08 +02:00
intel platform/x86: intel_cht_int33fe: Move to its own subfolder 2021-06-22 11:32:30 +02:00
intel_speed_select_if platform/x86: ISST: Use numa node id for cpu pci dev mapping 2021-06-18 15:29:36 +02:00
acer-wireless.c
acer-wmi.c
acerhdf.c
adv_swbutton.c platform/x86: add support for Advantech software defined button 2021-04-07 19:46:56 +02:00
amd-pmc.c
amilo-rfkill.c
apple-gmux.c
asus-laptop.c platform/x86: asus-laptop: fix kobj_to_dev.cocci warnings 2021-03-23 21:06:10 +01:00
asus-nb-wmi.c platform/x86: asus-nb-wmi: Revert "add support for ASUS ROG Zephyrus G14 and G15" 2021-06-16 17:47:50 +02:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Add param to turn fn-lock mode on by default 2021-04-07 19:47:08 +02:00
asus-wmi.h
classmate-laptop.c platform/x86: Typo fix in the file classmate-laptop.c 2021-03-23 21:05:58 +01:00
compal-laptop.c
eeepc-laptop.c
eeepc-wmi.c
firmware_attributes_class.c platform/x86: dell-wmi-sysman: fw_attr_inuse can be static 2021-06-16 17:47:52 +02:00
firmware_attributes_class.h platform/x86: firmware_attributes_class: Create helper file for handling firmware-attributes class registration events 2021-06-16 17:47:51 +02:00
fujitsu-laptop.c
fujitsu-tablet.c
gigabyte-wmi.c platform/x86: gigabyte-wmi: add support for B550 Aorus Elite 2021-05-19 15:59:47 +02:00
gpd-pocket-fan.c
hdaps.c platform/x86: hdaps: Constify static attribute_group struct 2021-06-16 17:47:54 +02:00
hp-wmi.c
hp_accel.c platform/x86: hp_accel: Avoid invoking _INI to speed up resume 2021-05-11 13:44:18 +02:00
huawei-wmi.c
i2c-multi-instantiate.c
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Ignore VPC event bit 10 2021-06-16 17:47:50 +02:00
intel-hid.c platform/x86: intel-hid: Fix spurious wakeups caused by tablet-mode events during suspend 2021-04-06 22:10:21 +02:00
intel-rst.c
intel-smartconnect.c
intel-uncore-frequency.c
intel-vbtn.c platform/x86: intel-vbtn: Remove unused KEYMAP_LEN define 2021-04-07 19:47:13 +02:00
intel-wmi-sbl-fw-update.c
intel-wmi-thunderbolt.c
intel_atomisp2_led.c
intel_atomisp2_pm.c
intel_bxtwc_tmu.c
intel_chtdc_ti_pwrbtn.c platform/x86: intel_chtdc_ti_pwrbtn: Fix missing IRQF_ONESHOT as only threaded handler 2021-04-15 13:46:23 +02:00
intel_int0002_vgpio.c platform/x86: intel_int0002_vgpio: Only call enable_irq_wake() when using s2idle 2021-05-19 15:59:47 +02:00
intel_ips.c platform/x86: intel_ips: fix set but unused warning in read_mgtv 2021-06-16 17:47:55 +02:00
intel_ips.h
intel_menlow.c
intel_mrfld_pwrbtn.c
intel_oaktrail.c
intel_pmc_core.c platform/x86: intel_pmc_core: Uninitialized data in pmc_core_lpm_latch_mode_write() 2021-04-21 21:32:31 +02:00
intel_pmc_core.h platform/x86: intel_pmc_core: Add LTR registers for Tiger Lake 2021-04-19 10:44:28 +02:00
intel_pmc_core_pltdrv.c
intel_pmt_class.c platform/x86: intel_pmt_class: Initial resource to 0 2021-03-23 21:49:56 +01:00
intel_pmt_class.h
intel_pmt_crashlog.c platform/x86: intel_pmt_crashlog: Constify static attribute_group struct 2021-06-16 17:47:54 +02:00
intel_pmt_telemetry.c
intel_punit_ipc.c platform/x86: intel_punit_ipc: Append MODULE_DEVICE_TABLE for ACPI 2021-05-19 15:59:47 +02:00
intel_scu_ipc.c
intel_scu_ipcutil.c
intel_scu_pcidrv.c
intel_scu_pltdrv.c
intel_scu_wdt.c
intel_telemetry_core.c
intel_telemetry_debugfs.c
intel_telemetry_pltdrv.c
intel_turbo_max_3.c
Kconfig platform/x86: intel_cht_int33fe: Move to its own subfolder 2021-06-22 11:32:30 +02:00
lg-laptop.c
Makefile platform/x86: intel_cht_int33fe: Move to its own subfolder 2021-06-22 11:32:30 +02:00
mlx-platform.c
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c platform/x86: panasonic-laptop: remove redundant assignment of variable result 2021-04-07 19:47:22 +02:00
pcengines-apuv2.c
peaq-wmi.c
pmc_atom.c platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table 2021-04-14 15:52:37 +02:00
samsung-laptop.c platform/x86: samsung-laptop: set debugfs blobs to read only 2021-06-16 17:47:49 +02:00
samsung-q10.c
sony-laptop.c
system76_acpi.c
tc1100-wmi.c platform/x86: tc1100-wmi: Constify static attribute_group struct 2021-06-16 17:47:54 +02:00
think-lmi.c platform/x86: think-lmi: Fix issues with duplicate attributes 2021-06-28 11:34:44 +02:00
think-lmi.h platform/x86: thinkpad-lmi: Remove unused display_name member from struct tlmi_pwd_setting 2021-06-16 17:47:52 +02:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Add X1 Carbon Gen 9 second fan support 2021-06-16 17:47:51 +02:00
topstar-laptop.c
toshiba-wmi.c
toshiba_acpi.c platform/x86: toshiba_acpi: Fix missing error code in toshiba_acpi_setup_keyboard() 2021-06-16 17:47:51 +02:00
toshiba_bluetooth.c
toshiba_haps.c platform/x86: toshiba_haps: Fix missing newline in pr_debug call in toshiba_haps_notify 2021-06-16 17:47:49 +02:00
touchscreen_dmi.c Signed tag for the immutable platform-drivers-x86-goodix branch for merging into the input subsystem. 2021-06-16 17:48:11 +02:00
uv_sysfs.c x86/platform/uv: Constify static attribute_group struct 2021-06-16 17:47:55 +02:00
wireless-hotkey.c platform/x86: Rename hp-wireless to wireless-hotkey 2021-06-16 17:47:49 +02:00
wmi-bmof.c
wmi.c
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c