Skip to content

Commit c0297e7

Browse files
ipylypivdamien-lemoal
authored andcommitted
ata: libata-core: Allow command duration limits detection for ACS-4 drives
Even though the command duration limits (CDL) feature was first added in ACS-5 (major version 12), there are some ACS-4 (major version 11) drives that implement CDL as well. IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages are mandatory in the ACS-4 standard so it should be safe to read these log pages on older drives implementing the ACS-4 standard. Fixes: 62e4a60 ("scsi: ata: libata: Detect support for command duration limits") Cc: [email protected] Signed-off-by: Igor Pylypiv <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 7933650 commit c0297e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,7 @@ static void ata_dev_config_cdl(struct ata_device *dev)
25392539
bool cdl_enabled;
25402540
u64 val;
25412541

2542-
if (ata_id_major_version(dev->id) < 12)
2542+
if (ata_id_major_version(dev->id) < 11)
25432543
goto not_supported;
25442544

25452545
if (!ata_log_supported(dev, ATA_LOG_IDENTIFY_DEVICE) ||

0 commit comments

Comments
 (0)