Skip to content

Commit d2dfed3

Browse files
flukejonesij-intel
authored andcommitted
platform/x86: asus-wmi: Add quirk for ROG Ally X
The new ROG Ally X functions the same as the previus model so we can use the same method to ensure the MCU USB devices wake and reconnect correctly. Given that two devices marks the start of a trend, this patch also adds a quirk table to make future additions easier if the MCU is the same. Signed-off-by: Luke D. Jones <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 7cc06e7 commit d2dfed3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,20 @@ static const char * const ashs_ids[] = { "ATK4001", "ATK4002", NULL };
146146

147147
static int throttle_thermal_policy_write(struct asus_wmi *);
148148

149+
static const struct dmi_system_id asus_ally_mcu_quirk[] = {
150+
{
151+
.matches = {
152+
DMI_MATCH(DMI_BOARD_NAME, "RC71L"),
153+
},
154+
},
155+
{
156+
.matches = {
157+
DMI_MATCH(DMI_BOARD_NAME, "RC72L"),
158+
},
159+
},
160+
{ },
161+
};
162+
149163
static bool ashs_present(void)
150164
{
151165
int i = 0;
@@ -4685,7 +4699,7 @@ static int asus_wmi_add(struct platform_device *pdev)
46854699
asus->dgpu_disable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_DGPU);
46864700
asus->kbd_rgb_state_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_TUF_RGB_STATE);
46874701
asus->ally_mcu_usb_switch = acpi_has_method(NULL, ASUS_USB0_PWR_EC0_CSEE)
4688-
&& dmi_match(DMI_BOARD_NAME, "RC71L");
4702+
&& dmi_check_system(asus_ally_mcu_quirk);
46894703

46904704
if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_MINI_LED_MODE))
46914705
asus->mini_led_dev_id = ASUS_WMI_DEVID_MINI_LED_MODE;

0 commit comments

Comments
 (0)