···614 } else if (lba48 && (qc->ap->flags & ATA_FLAG_PIO_LBA48)) {615 /* Unable to use DMA due to host limitation */616 tf->protocol = ATA_PROT_PIO;617- index = dev->multi_count ? 0 : 4;618 } else {619 tf->protocol = ATA_PROT_DMA;620 index = 16;···3357{3358 struct ata_queued_cmd *qc;33593360- printk(KERN_WARNING "ata%u: PIO error\n", ap->id);3361-3362 qc = ata_qc_from_tag(ap, ap->active_tag);3363 assert(qc != NULL);00033643365 /* make sure qc->err_mask is available to 3366 * know what's wrong and recover
···614 } else if (lba48 && (qc->ap->flags & ATA_FLAG_PIO_LBA48)) {615 /* Unable to use DMA due to host limitation */616 tf->protocol = ATA_PROT_PIO;617+ index = dev->multi_count ? 0 : 8;618 } else {619 tf->protocol = ATA_PROT_DMA;620 index = 16;···3357{3358 struct ata_queued_cmd *qc;3359003360 qc = ata_qc_from_tag(ap, ap->active_tag);3361 assert(qc != NULL);3362+3363+ if (qc->tf.command != ATA_CMD_PACKET)3364+ printk(KERN_WARNING "ata%u: PIO error\n", ap->id);33653366 /* make sure qc->err_mask is available to 3367 * know what's wrong and recover
+1
drivers/scsi/sata_mv.c
···997 case ATA_CMD_READ_EXT:998 case ATA_CMD_WRITE:999 case ATA_CMD_WRITE_EXT:01000 mv_crqb_pack_cmd(cw++, tf->hob_nsect, ATA_REG_NSECT, 0);1001 break;1002#ifdef LIBATA_NCQ /* FIXME: remove this line when NCQ added */
···997 case ATA_CMD_READ_EXT:998 case ATA_CMD_WRITE:999 case ATA_CMD_WRITE_EXT:1000+ case ATA_CMD_WRITE_FUA_EXT:1001 mv_crqb_pack_cmd(cw++, tf->hob_nsect, ATA_REG_NSECT, 0);1002 break;1003#ifdef LIBATA_NCQ /* FIXME: remove this line when NCQ added */
+29-1
drivers/scsi/sata_vsc.c
···81/* Port stride */82#define VSC_SATA_PORT_OFFSET 0x2008300000000000008485static u32 vsc_sata_scr_read (struct ata_port *ap, unsigned int sc_reg)86{···214 struct ata_port *ap;215216 ap = host_set->ports[i];000000000217 if (ap && !(ap->flags &218 (ATA_FLAG_PORT_DISABLED|ATA_FLAG_NOINTR))) {219 struct ata_queued_cmd *qc;220221 qc = ata_qc_from_tag(ap, ap->active_tag);222- if (qc && (!(qc->tf.ctl & ATA_NIEN)))223 handled += ata_host_intr(ap, qc);000000224 }225 }226 }