ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk
Subsystems (2)
Niklas Cassel
maintainerPATCH 1/1 ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk
While most entries in ahci_broken_lpm(), for Lenovo based boards, match on DMI_PRODUCT_VERSION, ASUS apparently store the board name in DMI_PRODUCT_NAME rather than DMI_PRODUCT_VERSION.
Use the correct DMI identifier (DMI_PRODUCT_NAME) to match the ASUSPRO-D840SA board, such that the quirk will actually get applied.
--- drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci.c +1 -1
@@ -1450,7 +1450,7 @@ static bool ahci_broken_lpm(struct pci_dev *pdev) { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_VERSION, "ASUSPRO D840MB_M840SA"), + DMI_MATCH(DMI_PRODUCT_NAME, "ASUSPRO D840MB_M840SA"), }, /* 320 is broken, there is no known good version. */ },
Signature · 1 line
2.49.0
Hi,
Quoted 1 line · Niklas Cassel
While most entries in
ahci_broken_lpm(), for Lenovo based boards,
Note the Lenovo matching is done on Lenovo laptop model / product names not on the (mother/main)board names.
Quoted 3 lines
match on
DMI_PRODUCT_VERSION, ASUS apparently store the board name inDMI_PRODUCT_NAMErather thanDMI_PRODUCT_VERSION.
Actually Lenovo is the weird one here, all other vendors store the laptop model-name in PRODUCT_NAME rather then in PRODUCT_VERSION.
For motherboards the motherboard modelnr is typically stored in BOARD_NAME and what is in PRODUCT_NAME varies.
E.g. my MSI B550M PRO-VDH desktop motherboard has:
DMI_BOARD_NAME "B550M PRO-VDH WIFI (MS-7C95)"DMI_PRODUCT_NAME "MS-7C95"
So you may want to reword the commit message a bit.
Either way the patch contents looks good to me:
Regards,
Hans
Quoted 26 lines
Use the correct DMI identifier (
DMI_PRODUCT_NAME) to match the ASUSPRO-D840SA board, such that the quirk will actually get applied.Reported-by Andy Yang <[email protected]>Fixes b5acc3628898 ("ata: ahci: Disallow LPM for ASUSPRO-D840SA motherboard")Signed-off-by Niklas Cassel <[email protected]>--- drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/ahci.c +1
-1@@ -1450,7 +1450,7 @@ static bool ahci_broken_lpm(struct pci_dev *pdev) { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_VERSION, "ASUSPRO D840MB_M840SA"), + DMI_MATCH(DMI_PRODUCT_NAME, "ASUSPRO D840MB_M840SA"), }, /* 320 is broken, there is no known good version. */ },