Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'platform-drivers-x86-v5.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull x86 platform driver fixes from Hans de Goede:
"Various bug-fixes and hardware-id additions"

* tag 'platform-drivers-x86-v5.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
platform/x86/intel: hid: add quirk to support Surface Go 3
platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops
platform/x86: touchscreen_dmi: Add TrekStor SurfTab duo W1 touchscreen info
platform/x86: lg-laptop: Recognize more models
platform/x86: thinkpad_acpi: Add lid_logo_dot to the list of safe LEDs
platform/x86: thinkpad_acpi: Restore missing hotkey_tablet_mode and hotkey_radio_sw sysfs-attr

+42 -3
+1 -1
drivers/platform/x86/amd-pmc.c
··· 76 76 #define AMD_CPU_ID_CZN AMD_CPU_ID_RN 77 77 #define AMD_CPU_ID_YC 0x14B5 78 78 79 - #define PMC_MSG_DELAY_MIN_US 100 79 + #define PMC_MSG_DELAY_MIN_US 50 80 80 #define RESPONSE_REGISTER_LOOP_MAX 20000 81 81 82 82 #define SOC_SUBSYSTEM_IP_MAX 12
+7
drivers/platform/x86/intel/hid.c
··· 99 99 DMI_MATCH(DMI_PRODUCT_FAMILY, "ThinkPad X1 Tablet Gen 2"), 100 100 }, 101 101 }, 102 + { 103 + .ident = "Microsoft Surface Go 3", 104 + .matches = { 105 + DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), 106 + DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go 3"), 107 + }, 108 + }, 102 109 { } 103 110 }; 104 111
+12
drivers/platform/x86/lg-laptop.c
··· 657 657 if (product && strlen(product) > 4) 658 658 switch (product[4]) { 659 659 case '5': 660 + if (strlen(product) > 5) 661 + switch (product[5]) { 662 + case 'N': 663 + year = 2021; 664 + break; 665 + case '0': 666 + year = 2016; 667 + break; 668 + default: 669 + year = 2022; 670 + } 671 + break; 660 672 case '6': 661 673 year = 2016; 662 674 break;
+4 -2
drivers/platform/x86/thinkpad_acpi.c
··· 3015 3015 &dev_attr_hotkey_all_mask.attr, 3016 3016 &dev_attr_hotkey_adaptive_all_mask.attr, 3017 3017 &dev_attr_hotkey_recommended_mask.attr, 3018 + &dev_attr_hotkey_tablet_mode.attr, 3019 + &dev_attr_hotkey_radio_sw.attr, 3018 3020 #ifdef CONFIG_THINKPAD_ACPI_HOTKEY_POLL 3019 3021 &dev_attr_hotkey_source_mask.attr, 3020 3022 &dev_attr_hotkey_poll_freq.attr, ··· 5728 5726 "tpacpi::standby", 5729 5727 "tpacpi::dock_status1", 5730 5728 "tpacpi::dock_status2", 5731 - "tpacpi::unknown_led2", 5729 + "tpacpi::lid_logo_dot", 5732 5730 "tpacpi::unknown_led3", 5733 5731 "tpacpi::thinkvantage", 5734 5732 }; 5735 - #define TPACPI_SAFE_LEDS 0x1081U 5733 + #define TPACPI_SAFE_LEDS 0x1481U 5736 5734 5737 5735 static inline bool tpacpi_is_led_restricted(const unsigned int led) 5738 5736 {
+18
drivers/platform/x86/touchscreen_dmi.c
··· 905 905 .properties = trekstor_primetab_t13b_props, 906 906 }; 907 907 908 + static const struct property_entry trekstor_surftab_duo_w1_props[] = { 909 + PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 910 + { } 911 + }; 912 + 913 + static const struct ts_dmi_data trekstor_surftab_duo_w1_data = { 914 + .acpi_name = "GDIX1001:00", 915 + .properties = trekstor_surftab_duo_w1_props, 916 + }; 917 + 908 918 static const struct property_entry trekstor_surftab_twin_10_1_props[] = { 909 919 PROPERTY_ENTRY_U32("touchscreen-min-x", 20), 910 920 PROPERTY_ENTRY_U32("touchscreen-min-y", 0), ··· 1510 1500 .matches = { 1511 1501 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1512 1502 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"), 1503 + }, 1504 + }, 1505 + { 1506 + /* TrekStor SurfTab duo W1 10.1 ST10432-10b */ 1507 + .driver_data = (void *)&trekstor_surftab_duo_w1_data, 1508 + .matches = { 1509 + DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1510 + DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"), 1513 1511 }, 1514 1512 }, 1515 1513 {