Skip to content

Commit f9a59dd

Browse files
committed
Merge tag 'platform-drivers-x86-v6.11-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform drivers fixes from Ilpo Järvinen: - platform/x86/amd/pmc: AMD 1Ah model 60h series support (2nd attempt) - asus-wmi: Prevent spurious rfkill on Asus Zenbook Duo - x86-android-tablets: Relax DMI match to cover another model * tag 'platform-drivers-x86-v6.11-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: platform/x86: x86-android-tablets: Make Lenovo Yoga Tab 3 X90F DMI match less strict platform/x86: asus-wmi: Fix spurious rfkill on UX8406MA platform/x86/amd/pmc: Extend support for PMC features on new AMD platform platform/x86/amd/pmc: Fix SMU command submission path on new AMD platform
2 parents a18093a + a3379ec commit f9a59dd

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

drivers/platform/x86/amd/pmc/pmc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ static void amd_pmc_get_ip_info(struct amd_pmc_dev *dev)
359359
dev->smu_msg = 0x538;
360360
break;
361361
case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
362+
case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
362363
dev->num_ips = 22;
363364
dev->s2d_msg_id = 0xDE;
364365
dev->smu_msg = 0x938;
@@ -597,6 +598,7 @@ static int amd_pmc_idlemask_read(struct amd_pmc_dev *pdev, struct device *dev,
597598
val = amd_pmc_reg_read(pdev, AMD_PMC_SCRATCH_REG_YC);
598599
break;
599600
case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
601+
case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
600602
val = amd_pmc_reg_read(pdev, AMD_PMC_SCRATCH_REG_1AH);
601603
break;
602604
default:
@@ -630,6 +632,7 @@ static bool amd_pmc_is_stb_supported(struct amd_pmc_dev *dev)
630632
case AMD_CPU_ID_CB:
631633
case AMD_CPU_ID_PS:
632634
case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
635+
case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
633636
return true;
634637
default:
635638
return false;

drivers/platform/x86/asus-nb-wmi.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ static struct quirk_entry quirk_asus_ignore_fan = {
145145
.wmi_ignore_fan = true,
146146
};
147147

148+
static struct quirk_entry quirk_asus_zenbook_duo_kbd = {
149+
.ignore_key_wlan = true,
150+
};
151+
148152
static int dmi_matched(const struct dmi_system_id *dmi)
149153
{
150154
pr_info("Identified laptop model '%s'\n", dmi->ident);
@@ -516,6 +520,15 @@ static const struct dmi_system_id asus_quirks[] = {
516520
},
517521
.driver_data = &quirk_asus_ignore_fan,
518522
},
523+
{
524+
.callback = dmi_matched,
525+
.ident = "ASUS Zenbook Duo UX8406MA",
526+
.matches = {
527+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
528+
DMI_MATCH(DMI_PRODUCT_NAME, "UX8406MA"),
529+
},
530+
.driver_data = &quirk_asus_zenbook_duo_kbd,
531+
},
519532
{},
520533
};
521534

@@ -630,7 +643,12 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,
630643
case 0x32: /* Volume Mute */
631644
if (atkbd_reports_vol_keys)
632645
*code = ASUS_WMI_KEY_IGNORE;
633-
646+
break;
647+
case 0x5D: /* Wireless console Toggle */
648+
case 0x5E: /* Wireless console Enable */
649+
case 0x5F: /* Wireless console Disable */
650+
if (quirks->ignore_key_wlan)
651+
*code = ASUS_WMI_KEY_IGNORE;
634652
break;
635653
}
636654
}

drivers/platform/x86/asus-wmi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ struct quirk_entry {
4040
bool wmi_force_als_set;
4141
bool wmi_ignore_fan;
4242
bool filter_i8042_e1_extended_codes;
43+
bool ignore_key_wlan;
4344
enum asus_wmi_tablet_switch_mode tablet_switch_mode;
4445
int wapf;
4546
/*

drivers/platform/x86/x86-android-tablets/dmi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ const struct dmi_system_id x86_android_tablet_ids[] __initconst = {
140140
/* Lenovo Yoga Tab 3 Pro YT3-X90F */
141141
.matches = {
142142
DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
143-
DMI_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
144143
DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"),
145144
},
146145
.driver_data = (void *)&lenovo_yt3_info,

0 commit comments

Comments
 (0)