]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: libata: Add ATA_QUIRK_MAX_SEC and convert all device quirks
authorNiklas Cassel <cassel@kernel.org>
Tue, 2 Dec 2025 12:21:31 +0000 (13:21 +0100)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 15 Dec 2025 07:32:05 +0000 (16:32 +0900)
commit59b7bb3d48333889adb1dd2aac3ab0cf26714390
tree00e6539dde00004125d3e2369c91285b884aca80
parent151cabd140322205e27dae5c4bbf261ede0056e3
ata: libata: Add ATA_QUIRK_MAX_SEC and convert all device quirks

Add a new quirk ATA_QUIRK_MAX_SEC, which has a separate table with device
specific values.

Convert all existing ATA_QUIRK_MAX_SEC_XXX device quirks in
__ata_dev_quirks to the new format.

Quirks ATA_QUIRK_MAX_SEC_128 and ATA_QUIRK_MAX_SEC_1024 cannot be removed
yet, since they are also used by libata.force, which functionally, is a
separate user of the quirks. The quirks will be removed once all users
have been converted to use the new format.

The quirk ATA_QUIRK_MAX_SEC_8191 can be removed since it has no equivalent
libata.force parameter.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/libata-core.c
include/linux/ata.h
include/linux/libata.h