aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-scsi.c7
-rw-r--r--include/linux/libata.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 8ca2caeed017..451f79c6fbac 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -944,6 +944,13 @@ static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc)
944 goto invalid_fld; /* LOEJ bit set not supported */ 944 goto invalid_fld; /* LOEJ bit set not supported */
945 if (((cdb[4] >> 4) & 0xf) != 0) 945 if (((cdb[4] >> 4) & 0xf) != 0)
946 goto invalid_fld; /* power conditions not supported */ 946 goto invalid_fld; /* power conditions not supported */
947
948 if (qc->dev->horkage & ATA_HORKAGE_SKIP_PM) {
949 /* the device lacks PM support, finish without doing anything */
950 scmd->result = SAM_STAT_GOOD;
951 return 1;
952 }
953
947 if (cdb[4] & 0x1) { 954 if (cdb[4] & 0x1) {
948 tf->nsect = 1; /* 1 sector, lba=0 */ 955 tf->nsect = 1; /* 1 sector, lba=0 */
949 956
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2bd1d26c9c8d..56b218771114 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -329,6 +329,7 @@ enum {
329 ATA_HORKAGE_NONCQ = (1 << 2), /* Don't use NCQ */ 329 ATA_HORKAGE_NONCQ = (1 << 2), /* Don't use NCQ */
330 ATA_HORKAGE_MAX_SEC_128 = (1 << 3), /* Limit max sects to 128 */ 330 ATA_HORKAGE_MAX_SEC_128 = (1 << 3), /* Limit max sects to 128 */
331 ATA_HORKAGE_BROKEN_HPA = (1 << 4), /* Broken HPA */ 331 ATA_HORKAGE_BROKEN_HPA = (1 << 4), /* Broken HPA */
332 ATA_HORKAGE_SKIP_PM = (1 << 5), /* Skip PM operations */
332}; 333};
333 334
334enum hsm_task_states { 335enum hsm_task_states {