Message ID | 20250418075517.369098-4-dlemoal@kernel.org |
---|---|
State | New |
Headers | show |
Series | CDL Feature control improvements | expand |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 15661b05cb48..f54e8a3dc46d 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -2453,8 +2453,8 @@ static unsigned int ata_msense_control_ata_feature(struct ata_device *dev, */ put_unaligned_be16(ATA_FEATURE_SUB_MPAGE_LEN - 4, &buf[2]); - if (dev->flags & ATA_DFLAG_CDL) - buf[4] = 0x02; /* Support T2A and T2B pages */ + if (dev->flags & ATA_DFLAG_CDL_ENABLED) + buf[4] = 0x02; /* T2A and T2B pages enabled */ else buf[4] = 0;