aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 1bc1acf3bbbb..419552603a16 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1299,10 +1299,10 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc)
1299 1299
1300 /* is it pointless to prefer PIO for "safety reasons"? */ 1300 /* is it pointless to prefer PIO for "safety reasons"? */
1301 if (ap->flags & ATA_FLAG_PIO_DMA) { 1301 if (ap->flags & ATA_FLAG_PIO_DMA) {
1302 tf.protocol = ATA_PROT_ATAPI_DMA; 1302 tf.protocol = ATAPI_PROT_DMA;
1303 tf.feature |= ATAPI_PKT_DMA; 1303 tf.feature |= ATAPI_PKT_DMA;
1304 } else { 1304 } else {
1305 tf.protocol = ATA_PROT_ATAPI; 1305 tf.protocol = ATAPI_PROT_PIO;
1306 tf.lbam = SCSI_SENSE_BUFFERSIZE; 1306 tf.lbam = SCSI_SENSE_BUFFERSIZE;
1307 tf.lbah = 0; 1307 tf.lbah = 0;
1308 } 1308 }
@@ -1979,8 +1979,8 @@ static void ata_eh_link_report(struct ata_link *link)
1979 [ATA_PROT_PIO] = "pio", 1979 [ATA_PROT_PIO] = "pio",
1980 [ATA_PROT_DMA] = "dma", 1980 [ATA_PROT_DMA] = "dma",
1981 [ATA_PROT_NCQ] = "ncq", 1981 [ATA_PROT_NCQ] = "ncq",
1982 [ATA_PROT_ATAPI] = "pio", 1982 [ATAPI_PROT_PIO] = "pio",
1983 [ATA_PROT_ATAPI_DMA] = "dma", 1983 [ATAPI_PROT_DMA] = "dma",
1984 }; 1984 };
1985 1985
1986 snprintf(data_buf, sizeof(data_buf), " %s %u %s", 1986 snprintf(data_buf, sizeof(data_buf), " %s %u %s",