mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-20 08:42:06 +00:00
Pull x86 platform drivers updates from Hans de Goede: - asus-wmi: Add support for vivobook fan profiles - dell-laptop: Add knobs to change battery charge settings - lg-laptop: Add operation region support - intel-uncore-freq: Add support for efficiency latency control - intel/ifs: Add SBAF test support - intel/pmc: Ignore all LTRs during suspend - platform/surface: Support for arm64 based Surface devices - wmi: Pass event data directly to legacy notify handlers - x86/platform/geode: switch GPIO buttons and LEDs to software properties - bunch of small cleanups, fixes, hw-id additions, etc. * tag 'platform-drivers-x86-v6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (65 commits) MAINTAINERS: adjust file entry in INTEL MID PLATFORM platform/x86: x86-android-tablets: Adjust Xiaomi Pad 2 bottom bezel touch buttons LED platform/mellanox: mlxbf-pmc: fix lockdep warning platform/x86/amd: pmf: Add quirk for TUF Gaming A14 platform/x86: touchscreen_dmi: add nanote-next quirk platform/x86: asus-wmi: don't fail if platform_profile already registered platform/x86: asus-wmi: add debug print in more key places platform/x86: intel_scu_wdt: Move intel_scu_wdt.h to x86 subfolder platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm MAINTAINERS: Add Intel MID section platform/x86: panasonic-laptop: Add support for programmable buttons platform/olpc: Remove redundant null pointer checks in olpc_ec_setup_debugfs() platform/x86: intel/pmc: Ignore all LTRs during suspend platform/x86: wmi: Call both legacy and WMI driver notify handlers platform/x86: wmi: Merge get_event_data() with wmi_get_notify_data() platform/x86: wmi: Remove wmi_get_event_data() platform/x86: wmi: Pass event data directly to legacy notify handlers platform/x86: thinkpad_acpi: Fix uninitialized symbol 's' warning platform/x86: x86-android-tablets: Fix spelling in the comments platform/x86: ideapad-laptop: Make the scope_guard() clear of its scope ...
67 lines
1.4 KiB
C
67 lines
1.4 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* AMD Platform Management Framework Driver Quirks
|
|
*
|
|
* Copyright (c) 2024, Advanced Micro Devices, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* Author: Mario Limonciello <mario.limonciello@amd.com>
|
|
*/
|
|
|
|
#include <linux/dmi.h>
|
|
|
|
#include "pmf.h"
|
|
|
|
struct quirk_entry {
|
|
u32 supported_func;
|
|
};
|
|
|
|
static struct quirk_entry quirk_no_sps_bug = {
|
|
.supported_func = 0x4003,
|
|
};
|
|
|
|
static const struct dmi_system_id fwbug_list[] = {
|
|
{
|
|
.ident = "ROG Zephyrus G14",
|
|
.matches = {
|
|
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
|
|
DMI_MATCH(DMI_PRODUCT_NAME, "GA403U"),
|
|
},
|
|
.driver_data = &quirk_no_sps_bug,
|
|
},
|
|
{
|
|
.ident = "ROG Ally X",
|
|
.matches = {
|
|
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
|
|
DMI_MATCH(DMI_PRODUCT_NAME, "RC72LA"),
|
|
},
|
|
.driver_data = &quirk_no_sps_bug,
|
|
},
|
|
{
|
|
.ident = "ASUS TUF Gaming A14",
|
|
.matches = {
|
|
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
|
|
DMI_MATCH(DMI_PRODUCT_NAME, "FA401W"),
|
|
},
|
|
.driver_data = &quirk_no_sps_bug,
|
|
},
|
|
{}
|
|
};
|
|
|
|
void amd_pmf_quirks_init(struct amd_pmf_dev *dev)
|
|
{
|
|
const struct dmi_system_id *dmi_id;
|
|
struct quirk_entry *quirks;
|
|
|
|
dmi_id = dmi_first_match(fwbug_list);
|
|
if (!dmi_id)
|
|
return;
|
|
|
|
quirks = dmi_id->driver_data;
|
|
if (quirks->supported_func) {
|
|
dev->supported_func = quirks->supported_func;
|
|
pr_info("Using supported funcs quirk to avoid %s platform firmware bug\n",
|
|
dmi_id->ident);
|
|
}
|
|
}
|