* [PATCH] sata_sil: add controller unplug detection in sil_interrupt()
@ 2006-06-12 5:18 Tejun Heo
2006-06-12 6:11 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2006-06-12 5:18 UTC (permalink / raw)
To: Jeff Garzik, linux-ide
Short-circuit interrupt handling if BMDMA2 is reported as 0xffffffff
indicating device removal.
Signed-off-by: Tejun Heo <htejun@gmail.com>
---
drivers/scsi/sata_sil.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
82e7a4a56c55b10bab7fd61a5a3c06131e73786d
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c
index 00906ab..611bf59 100644
--- a/drivers/scsi/sata_sil.c
+++ b/drivers/scsi/sata_sil.c
@@ -416,7 +416,8 @@ static irqreturn_t sil_interrupt(int irq
if (unlikely(!ap || ap->flags & ATA_FLAG_DISABLED))
continue;
- if (!(bmdma2 & (SIL_DMA_COMPLETE | SIL_DMA_SATA_IRQ)))
+ if (bmdma2 == 0xffffffff ||
+ !(bmdma2 & (SIL_DMA_COMPLETE | SIL_DMA_SATA_IRQ)))
continue;
sil_host_intr(ap, bmdma2);
--
1.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sata_sil: add controller unplug detection in sil_interrupt()
2006-06-12 5:18 [PATCH] sata_sil: add controller unplug detection in sil_interrupt() Tejun Heo
@ 2006-06-12 6:11 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-06-12 6:11 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-12 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12 5:18 [PATCH] sata_sil: add controller unplug detection in sil_interrupt() Tejun Heo
2006-06-12 6:11 ` 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).