• Tejun Heo's avatar
    [PATCH] sata_sil: new interrupt handler · cbe88fbc
    Tejun Heo authored
    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: default avatarTejun Heo <htejun@gmail.com>
    cbe88fbc
sata_sil.c 18 KB