Merge branch 'upstream'
[deliverable/linux.git] / drivers / scsi / sata_vsc.c
index e484e8db68105f346ad38aa49247334caf5eb6d3..2d448e84889cfceed5810a6f0fbe502fc2e7f9dd 100644 (file)
@@ -223,12 +223,11 @@ static irqreturn_t vsc_sata_interrupt (int irq, void *dev_instance,
                                handled++;
                        }
 
-                       if (ap && !(ap->flags &
-                                   (ATA_FLAG_PORT_DISABLED|ATA_FLAG_NOINTR))) {
+                       if (ap && !(ap->flags & ATA_FLAG_PORT_DISABLED)) {
                                struct ata_queued_cmd *qc;
 
                                qc = ata_qc_from_tag(ap, ap->active_tag);
-                               if (qc && (!(qc->tf.ctl & ATA_NIEN))) {
+                               if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING)))
                                        handled += ata_host_intr(ap, qc);
                                } else {
                                        printk(KERN_DEBUG "%s: ignoring interrupt(s)\n", __FUNCTION__);
@@ -251,11 +250,11 @@ static struct scsi_host_template vsc_sata_sht = {
        .name                   = DRV_NAME,
        .ioctl                  = ata_scsi_ioctl,
        .queuecommand           = ata_scsi_queuecmd,
+       .eh_timed_out           = ata_scsi_timed_out,
        .eh_strategy_handler    = ata_scsi_error,
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
This page took 0.030068 seconds and 5 git commands to generate.