* [PATCH] [libata] Return proper ATA INT status in pata_bf54x driver.
@ 2007-11-26 9:50 sonic zhang
2007-11-26 16:04 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: sonic zhang @ 2007-11-26 9:50 UTC (permalink / raw)
To: Linux IDE, Linux Kernel; +Cc: Jeff Garzik
INT status can be OR.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
drivers/ata/pata_bf54x.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c
index b5e3842..81db405 100644
--- a/drivers/ata/pata_bf54x.c
+++ b/drivers/ata/pata_bf54x.c
@@ -1145,13 +1145,13 @@ static unsigned char bfin_bmdma_status(s
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;
--
1.4.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [libata] Return proper ATA INT status in pata_bf54x driver.
2007-11-26 9:50 [PATCH] [libata] Return proper ATA INT status in pata_bf54x driver sonic zhang
@ 2007-11-26 16:04 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-11-26 16:04 UTC (permalink / raw)
To: sonic zhang; +Cc: Linux IDE, Linux Kernel
sonic zhang wrote:
> INT status can be OR.
>
>
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
>
> ---
> drivers/ata/pata_bf54x.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-26 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 9:50 [PATCH] [libata] Return proper ATA INT status in pata_bf54x driver sonic zhang
2007-11-26 16:04 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).