Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82057
b: refs/heads/master
c: a1fe782
h: refs/heads/master
i:
  82055: 112f346
v: v3
  • Loading branch information
Robert Hancock authored and Jeff Garzik committed Feb 1, 2008
1 parent 1c042df commit cf44d9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7bb3c5290ca0ec9e65947c907495c2b56e895e46
refs/heads/master: a1fe782414b7122d4c0501d3a0988b7302fa586f
18 changes: 12 additions & 6 deletions trunk/drivers/ata/sata_nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,14 +1011,20 @@ static irqreturn_t nv_adma_interrupt(int irq, void *dev_instance)
}

if (status & (NV_ADMA_STAT_DONE |
NV_ADMA_STAT_CPBERR)) {
u32 check_commands;
NV_ADMA_STAT_CPBERR |
NV_ADMA_STAT_CMD_COMPLETE)) {
u32 check_commands = notifier_clears[i];
int pos, error = 0;

if (ata_tag_valid(ap->link.active_tag))
check_commands = 1 << ap->link.active_tag;
else
check_commands = ap->link.sactive;
if (status & NV_ADMA_STAT_CPBERR) {
/* Check all active commands */
if (ata_tag_valid(ap->link.active_tag))
check_commands = 1 <<
ap->link.active_tag;
else
check_commands = ap->
link.sactive;
}

/** Check CPBs for completed commands */
while ((pos = ffs(check_commands)) && !error) {
Expand Down

0 comments on commit cf44d9f

Please sign in to comment.