Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315405
b: refs/heads/master
c: efdfad3
h: refs/heads/master
i:
  315403: 9b0a8d7
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Jul 17, 2012
1 parent 101af9e commit 8a2d731
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aed93e0bf493535c25c27270001226bb1dd379b2
refs/heads/master: efdfad3205403e1d1c5c0bdcbdb647ddd89bfaa3
7 changes: 7 additions & 0 deletions trunk/drivers/net/ethernet/broadcom/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6388,6 +6388,7 @@ bnx2_reset_task(struct work_struct *work)
{
struct bnx2 *bp = container_of(work, struct bnx2, reset_task);
int rc;
u16 pcicmd;

rtnl_lock();
if (!netif_running(bp->dev)) {
Expand All @@ -6397,6 +6398,12 @@ bnx2_reset_task(struct work_struct *work)

bnx2_netif_stop(bp, true);

pci_read_config_word(bp->pdev, PCI_COMMAND, &pcicmd);
if (!(pcicmd & PCI_COMMAND_MEMORY)) {
/* in case PCI block has reset */
pci_restore_state(bp->pdev);
pci_save_state(bp->pdev);
}
rc = bnx2_init_nic(bp, 1);
if (rc) {
netdev_err(bp->dev, "failed to reset NIC, closing\n");
Expand Down

0 comments on commit 8a2d731

Please sign in to comment.