Title: [3937] trunk/drivers/ata/pata_bf54x.c: Fix bug[#3666] and [#3513] Set ata int status properly to avoid
Revision
3937
Author
sonicz
Date
2007-11-26 01:09:03 -0600 (Mon, 26 Nov 2007)

Log Message

Fix bug[#3666] and [#3513] Set ata int status properly to avoid
unhandled irq.

Diffstat

 pata_bf54x.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Modified Paths

Diff

Modified: trunk/drivers/ata/pata_bf54x.c (3936 => 3937)


--- trunk/drivers/ata/pata_bf54x.c	2007-11-26 07:05:42 UTC (rev 3936)
+++ trunk/drivers/ata/pata_bf54x.c	2007-11-26 07:09:03 UTC (rev 3937)
@@ -1142,13 +1142,13 @@
 	unsigned short int_status = ATAPI_GET_INT_STATUS(base);
 
 	if (ATAPI_GET_STATUS(base) & (MULTI_XFER_ON|ULTRA_XFER_ON)) {
-		host_stat = ATA_DMA_ACTIVE;
+		host_stat |= ATA_DMA_ACTIVE;
 	}
 	if (int_status & (MULTI_DONE_INT|UDMAIN_DONE_INT|UDMAOUT_DONE_INT)) {
-		host_stat = ATA_DMA_INTR;
+		host_stat |= ATA_DMA_INTR;
 	}
 	if (int_status & (MULTI_TERM_INT|UDMAIN_TERM_INT|UDMAOUT_TERM_INT)) {
-		host_stat = ATA_DMA_ERR;
+		host_stat |= ATA_DMA_ERR;
 	}
 
 	return host_stat;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to