ata: libata-core: remove two WDC BROKEN_HPA quirks that never match
Niklas Cassel
maintainerPATCH 1/1 ata: libata-core: remove two WDC BROKEN_HPA quirks that never match
The second field of a __ata_dev_quirks[] entry is matched against the firmware revision of the device, which ata_dev_quirks() reads into a buffer of ATA_ID_FW_REV_LEN (8) characters. The ATA_QUIRK_BROKEN_HPA entries for "WDC WD3200JD-00KLB0" and "WDC WD2500JD-00HBB0" instead contain "WD-WCAMR1130137" and "WD-WMAL71490727", which look like drive serial numbers. Without wildcards, these 15 character patterns can never match a firmware revision, so the two entries have not applied to any drive since they were added in commit 16c55b038033 ("libata: implement BROKEN_HPA horkage and apply it to affected drives").
Remove them. The quirks applied to all drives are unchanged: these models keep getting their quirks from the "WDC WD2500JD-*" and "WDC WD3200JD-*" entries.
--- drivers/ata/libata-core.c | 2 -- 1 file changed, 2 deletions(-)
drivers/ata/libata-core.c +0 -2
@@ -4331,8 +4331,6 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {/* devices which puke on READ_NATIVE_MAX */ { "HDS724040KLSA80", "KFAOA20N", ATA_QUIRK_BROKEN_HPA }, - { "WDC WD3200JD-00KLB0", "WD-WCAMR1130137", ATA_QUIRK_BROKEN_HPA }, - { "WDC WD2500JD-00HBB0", "WD-WMAL71490727", ATA_QUIRK_BROKEN_HPA }, { "MAXTOR 6L080L4", "A93.0500", ATA_QUIRK_BROKEN_HPA },/* this one allows HPA unlocking but fails IOs on the area */
Signature · 1 line
2.56.1
Quoted 10 lines · Niklas Cassel
The second field of a __ata_dev_quirks[] entry is matched against the firmware revision of the device, which
ata_dev_quirks()reads into a buffer ofATA_ID_FW_REV_LEN(8) characters. TheATA_QUIRK_BROKEN_HPAentries for "WDC WD3200JD-00KLB0" and "WDC WD2500JD-00HBB0" instead contain "WD-WCAMR1130137" and "WD-WMAL71490727", which look like drive serial numbers. Without wildcards, these 15 character patterns can never match a firmware revision, so the two entries have not applied to any drive since they were added in commit16c55b038033("libata: implementBROKEN_HPAhorkage and apply it to affected drives").
Quoted 5 lines
Remove them. The quirks applied to all drives are unchanged: these models keep getting their quirks from the "WDC WD2500JD-*" and "WDC WD3200JD-*" entries.
Signed-off-by Niklas Cassel <[email protected]>
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 11 lines · Niklas Cassel
The second field of a __ata_dev_quirks[] entry is matched against the firmware revision of the device, which
ata_dev_quirks()reads into a buffer ofATA_ID_FW_REV_LEN(8) characters. TheATA_QUIRK_BROKEN_HPAentries for "WDC WD3200JD-00KLB0" and "WDC WD2500JD-00HBB0" instead contain "WD-WCAMR1130137" and "WD-WMAL71490727", which look like drive serial numbers. Without wildcards, these 15 character patterns can never match a firmware revision, so the two entries have not applied to any drive since they were added in commit16c55b038033("libata: implementBROKEN_HPAhorkage and apply it to affected drives").[...]
Applied to libata/linux.git (for-7.5), thanks!
[1/1] ata: libata-core: remove two WDC BROKEN_HPA quirks that never match
https://git.kernel.org/libata/linux/c/3391ac40
Kind regards,
Niklas