diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-07-17 19:41:57 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-07-17 19:41:57 +0200 |
commit | 82bbf281341ef6fdc89bf3cd4b8f9e49884deccd (patch) | |
tree | 7d0f2ea8b4cf6bbab4f9413f4625176115069842 /SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch | |
parent | 805152f39f74846f5b07f681b55e3356907bd428 (diff) | |
download | kernel-fsync-82bbf281341ef6fdc89bf3cd4b8f9e49884deccd.tar.gz kernel-fsync-82bbf281341ef6fdc89bf3cd4b8f9e49884deccd.zip |
kernel 6.9.9
Diffstat (limited to 'SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch')
-rw-r--r-- | SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch b/SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch new file mode 100644 index 0000000..e0753ae --- /dev/null +++ b/SOURCES/0001-add-ally-x-dmi-quirk-for-controller-suspend.patch @@ -0,0 +1,48 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jan200101 <sentrycraft123@gmail.com> +Date: Mon, 15 Jul 2024 19:31:40 +0200 +Subject: [PATCH] add ally x dmi quirk for controller suspend + +Signed-off-by: Jan200101 <sentrycraft123@gmail.com> +--- + drivers/platform/x86/asus-wmi.c | 3 +-- + include/linux/platform_data/x86/asus-wmi.h | 14 ++++++++++++++ + 2 files changed, 15 insertions(+), 2 deletions(-) + +diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c +index 4b78c4f4e..a8060e7fb 100644 +--- a/drivers/platform/x86/asus-wmi.c ++++ b/drivers/platform/x86/asus-wmi.c +@@ -4646,8 +4646,7 @@ static int asus_wmi_add(struct platform_device *pdev) + asus->egpu_enable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_EGPU); + asus->dgpu_disable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_DGPU); + asus->kbd_rgb_state_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_TUF_RGB_STATE); +- asus->ally_mcu_usb_switch = acpi_has_method(NULL, ASUS_USB0_PWR_EC0_CSEE) +- && dmi_match(DMI_BOARD_NAME, "RC71L"); ++ asus->ally_mcu_usb_switch = acpi_has_method(NULL, ASUS_USB0_PWR_EC0_CSEE) && dmi_check_system(ally_usb_switch_dmi_ids); + + if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_MINI_LED_MODE)) + asus->mini_led_dev_id = ASUS_WMI_DEVID_MINI_LED_MODE; +diff --git a/include/linux/platform_data/x86/asus-wmi.h b/include/linux/platform_data/x86/asus-wmi.h +index 870f4bb57..3e8edc07e 100644 +--- a/include/linux/platform_data/x86/asus-wmi.h ++++ b/include/linux/platform_data/x86/asus-wmi.h +@@ -225,4 +225,18 @@ static const struct dmi_system_id asus_use_hid_led_dmi_ids[] = { + NULL, + }; + ++static const struct dmi_system_id ally_usb_switch_dmi_ids[] = { ++ { ++ .matches = { ++ DMI_MATCH(DMI_BOARD_NAME, "RC71L"), ++ }, ++ }, ++ { ++ .matches = { ++ DMI_MATCH(DMI_BOARD_NAME, "RC72LA"), ++ }, ++ }, ++ NULL, ++}; ++ + #endif /* __PLATFORM_DATA_X86_ASUS_WMI_H */ |