|
@@ -2568,7 +2568,8 @@ static unsigned int ata_scsiop_read_cap(struct ata_scsi_args *args, u8 *rbuf)
|
|
|
rbuf[14] = (lowest_aligned >> 8) & 0x3f;
|
|
|
rbuf[15] = lowest_aligned;
|
|
|
|
|
|
- if (ata_id_has_trim(args->id)) {
|
|
|
+ if (ata_id_has_trim(args->id) &&
|
|
|
+ !(dev->horkage & ATA_HORKAGE_NOTRIM)) {
|
|
|
rbuf[14] |= 0x80; /* LBPME */
|
|
|
|
|
|
if (ata_id_has_zero_after_trim(args->id) &&
|