[PATCH] sata_sil: new interrupt handler
authorTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:27:55 +0000 (18:27 +0900)
committerTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:27:55 +0000 (18:27 +0900)
commitcbe88fbc72d9e1aa4a6f994cb6e19fa08ae5a0ba
tree117fce53d60b1f08346ee9fa64c6b0c6fe72b4bf
parent20888d83687d5cb374cdb5b0afa746ab79666f4e
[PATCH] sata_sil: new interrupt handler

The DMA complete bit of these controllers reflects ATA IRQ status
while no DMA command is in progress.  So, we can tell whether the
controller is raising an interrupt or not in deterministic manner.
This patch gives sata_sil its own interrupt handler which behaves much
better than the original one in terms of error detection and handling.
This change is also necessary for later hotplug support.

Further improvements are possible, in both 2 and 4 ports versions, we
can get all status with only one readl and using custom bmdma
operations can further cut down register accesses.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/sata_sil.c