diff options
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 46c4cdbaee86..7ddd5a69352a 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -614,7 +614,7 @@ int ata_rwcmd_protocol(struct ata_queued_cmd *qc) | |||
614 | } else if (lba48 && (qc->ap->flags & ATA_FLAG_PIO_LBA48)) { | 614 | } else if (lba48 && (qc->ap->flags & ATA_FLAG_PIO_LBA48)) { |
615 | /* Unable to use DMA due to host limitation */ | 615 | /* Unable to use DMA due to host limitation */ |
616 | tf->protocol = ATA_PROT_PIO; | 616 | tf->protocol = ATA_PROT_PIO; |
617 | index = dev->multi_count ? 0 : 4; | 617 | index = dev->multi_count ? 0 : 8; |
618 | } else { | 618 | } else { |
619 | tf->protocol = ATA_PROT_DMA; | 619 | tf->protocol = ATA_PROT_DMA; |
620 | index = 16; | 620 | index = 16; |
@@ -3357,11 +3357,12 @@ static void ata_pio_error(struct ata_port *ap) | |||
3357 | { | 3357 | { |
3358 | struct ata_queued_cmd *qc; | 3358 | struct ata_queued_cmd *qc; |
3359 | 3359 | ||
3360 | printk(KERN_WARNING "ata%u: PIO error\n", ap->id); | ||
3361 | |||
3362 | qc = ata_qc_from_tag(ap, ap->active_tag); | 3360 | qc = ata_qc_from_tag(ap, ap->active_tag); |
3363 | assert(qc != NULL); | 3361 | assert(qc != NULL); |
3364 | 3362 | ||
3363 | if (qc->tf.command != ATA_CMD_PACKET) | ||
3364 | printk(KERN_WARNING "ata%u: PIO error\n", ap->id); | ||
3365 | |||
3365 | /* make sure qc->err_mask is available to | 3366 | /* make sure qc->err_mask is available to |
3366 | * know what's wrong and recover | 3367 | * know what's wrong and recover |
3367 | */ | 3368 | */ |