Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225221
b: refs/heads/master
c: 24de528
h: refs/heads/master
i:
  225219: 71d5adb
v: v3
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Dec 21, 2010
1 parent 4427345 commit cfe2f81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 12b16dadbc2406144d408754f96d0f44aa016239
refs/heads/master: 24de5285dce378e4170e068f2662236d2b46c033
7 changes: 5 additions & 2 deletions trunk/drivers/net/sundance.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ enum alta_offsets {
/* Aliased and bogus values! */
RxStatus = 0x0c,
};

#define ASIC_HI_WORD(x) ((x) + 2)

enum ASICCtrl_HiWord_bit {
GlobalReset = 0x0001,
RxReset = 0x0002,
Expand Down Expand Up @@ -1772,10 +1775,10 @@ static int netdev_close(struct net_device *dev)
}

iowrite16(GlobalReset | DMAReset | FIFOReset | NetworkReset,
ioaddr +ASICCtrl + 2);
ioaddr + ASIC_HI_WORD(ASICCtrl));

for (i = 2000; i > 0; i--) {
if ((ioread16(ioaddr + ASICCtrl +2) & ResetBusy) == 0)
if ((ioread16(ioaddr + ASIC_HI_WORD(ASICCtrl)) & ResetBusy) == 0)
break;
mdelay(1);
}
Expand Down

0 comments on commit cfe2f81

Please sign in to comment.