Skip to content

Commit

Permalink
[PATCH] sata_sil: add controller unplug detection in sil_interrupt()
Browse files Browse the repository at this point in the history
Short-circuit interrupt handling if BMDMA2 is reported as 0xffffffff
indicating device removal.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jun 12, 2006
1 parent 3b01b8a commit 23fa961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/sata_sil.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ static irqreturn_t sil_interrupt(int irq, void *dev_instance,
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);
Expand Down

0 comments on commit 23fa961

Please sign in to comment.