https://bugzilla.kernel.org/show_bug.cgi?id=217731

--- Comment #5 from Ni (ran...@gmail.com) ---
UPDATE: I noticed that on another report, user August Wikerfors suggested that
is it can be risky to match a board name. Given the fact that Lenovo also
changed the board name on this model (from `Mayan` to `21EF0002CD`), I think we
better also match the product name instead too.

So, I tested matching `DMI_PRODUCT_NAME` instead of `DMI_BOARD_NAME` since both
sharing the same value, and it too worked.

In summary, that's

static const struct dmi_system_id thinkpad_laptop[] = {
        {
                .ident = "ThinkPad neo 14",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
                        DMI_MATCH(DMI_PRODUCT_NAME, "21EF0002CD"),
                },
        },
        { }
};

and then

static const struct irq_override_cmp override_table[] = {
        .....other laptops.....
        { thinkpad_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 0, false },
        { thinkpad_laptop, 12, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 0, false
},
};

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to