X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fata%2Fsata_nv.c;h=9d9670a9b117e67d3689b8f5b2a1aa4b586f9ac6;hb=ddda08624013e8435e9f7cfc34a35bd7b3520b6d;hp=388d07fab5f7dcc465d1d962db09ac8a65909b24;hpb=7c368bb1049bde17fc4f8655492478d7f2918da9;p=powerpc.git diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 388d07fab5..9d9670a9b1 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c @@ -874,8 +874,14 @@ static irqreturn_t nv_adma_interrupt(int irq, void *dev_instance) if (status & (NV_ADMA_STAT_DONE | NV_ADMA_STAT_CPBERR)) { - u32 check_commands = notifier | notifier_error; + u32 check_commands; int pos, error = 0; + + if(ata_tag_valid(ap->active_tag)) + check_commands = 1 << ap->active_tag; + else + check_commands = ap->sactive; + /** Check CPBs for completed commands */ while ((pos = ffs(check_commands)) && !error) { pos--;