I noticed that the AHCI CI (cmd issue) reg wasn't getting cleared
after error ints resulting in no further commands being successfully
issued to the port.  This patch fixes.  All that's really needed is
the 1's complement but I also removed the disabling/enabling of the
FIS_RX b/c this isn't spec'd as necessary when handling error ints.

Signed-off-by: Brett Russ <[EMAIL PROTECTED]>

===== drivers/scsi/ahci.c 1.17 vs edited =====
--- 1.17/drivers/scsi/ahci.c    2005-02-24 14:52:41 -05:00
+++ edited/drivers/scsi/ahci.c  2005-03-09 15:30:06 -05:00
@@ -538,7 +538,7 @@
 
        /* stop DMA */
        tmp = readl(port_mmio + PORT_CMD);
-       tmp &= PORT_CMD_START | PORT_CMD_FIS_RX;
+       tmp &= ~PORT_CMD_START;
        writel(tmp, port_mmio + PORT_CMD);
 
        /* wait for engine to stop.  TODO: this could be
@@ -570,7 +570,7 @@
 
        /* re-start DMA */
        tmp = readl(port_mmio + PORT_CMD);
-       tmp |= PORT_CMD_START | PORT_CMD_FIS_RX;
+       tmp |= PORT_CMD_START;
        writel(tmp, port_mmio + PORT_CMD);
        readl(port_mmio + PORT_CMD); /* flush */
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to