Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247431
b: refs/heads/master
c: 6ed35ee
h: refs/heads/master
i:
  247429: 7320a07
  247427: dcdafa9
  247423: 823a5db
v: v3
  • Loading branch information
Sathya Perla authored and David S. Miller committed May 13, 2011
1 parent 5e7f07f commit a91eee6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 29dd54b72ba8c5ad0dd6dd33584449b5953f700b
refs/heads/master: 6ed35eea3b96977d76d61b5862a3209044cb4b1f
12 changes: 7 additions & 5 deletions trunk/drivers/net/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,23 +376,25 @@ int be_cmd_POST(struct be_adapter *adapter)
{
u16 stage;
int status, timeout = 0;
struct device *dev = &adapter->pdev->dev;

do {
status = be_POST_stage_get(adapter, &stage);
if (status) {
dev_err(&adapter->pdev->dev, "POST error; stage=0x%x\n",
stage);
dev_err(dev, "POST error; stage=0x%x\n", stage);
return -1;
} else if (stage != POST_STAGE_ARMFW_RDY) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(2 * HZ);
if (msleep_interruptible(2000)) {
dev_err(dev, "Waiting for POST aborted\n");
return -EINTR;
}
timeout += 2;
} else {
return 0;
}
} while (timeout < 40);

dev_err(&adapter->pdev->dev, "POST timeout; stage=0x%x\n", stage);
dev_err(dev, "POST timeout; stage=0x%x\n", stage);
return -1;
}

Expand Down

0 comments on commit a91eee6

Please sign in to comment.