]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ata/sata_sil.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6-omap-h63xx.git] / drivers / ata / sata_sil.c
index 025622b14efb5dd141ab59e8487221d45205b048..0b8191b52f97b8e3b1d032eca7a01e6d7069e898 100644 (file)
@@ -394,16 +394,7 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
                 * it's PHYRDY CHG.
                 */
                if (serror & SERR_PHYRDY_CHG) {
-                       /* Trigger hotplug and accumulate SError only
-                        * if the port isn't already frozen.
-                        * Otherwise, PHY events during hardreset
-                        * makes controllers with broken SIEN repeat
-                        * probing needlessly.
-                        */
-                       if (!(ap->pflags & ATA_PFLAG_FROZEN)) {
-                               ata_ehi_hotplugged(&ap->link.eh_info);
-                               ap->link.eh_info.serror |= serror;
-                       }
+                       ap->link.eh_info.serror |= serror;
                        goto freeze;
                }
 
@@ -425,15 +416,14 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
                 */
 
                /* Check the ATA_DFLAG_CDB_INTR flag is enough here.
-                * The flag was turned on only for atapi devices.
-                * No need to check is_atapi_taskfile(&qc->tf) again.
+                * The flag was turned on only for atapi devices.  No
+                * need to check ata_is_atapi(qc->tf.protocol) again.
                 */
                if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR))
                        goto err_hsm;
                break;
        case HSM_ST_LAST:
-               if (qc->tf.protocol == ATA_PROT_DMA ||
-                   qc->tf.protocol == ATA_PROT_ATAPI_DMA) {
+               if (ata_is_dma(qc->tf.protocol)) {
                        /* clear DMA-Start bit */
                        ap->ops->bmdma_stop(qc);
 
@@ -460,8 +450,7 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
        /* kick HSM in the ass */
        ata_hsm_move(ap, qc, status, 0);
 
-       if (unlikely(qc->err_mask) && (qc->tf.protocol == ATA_PROT_DMA ||
-                                      qc->tf.protocol == ATA_PROT_ATAPI_DMA))
+       if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
                ata_ehi_push_desc(ehi, "BMDMA2 stat 0x%x", bmdma2);
 
        return;