Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108795
b: refs/heads/master
c: 77b483f
h: refs/heads/master
i:
  108793: 87dc0e9
  108791: 125e612
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Aug 15, 2008
1 parent 57a0fd4 commit dafa959
Show file tree
Hide file tree
Showing 3 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: c6153b5b77650879d78dec76414213c76dd8d574
refs/heads/master: 77b483f132ba25edf4ef455dd87a91ab7bbf4170
6 changes: 6 additions & 0 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ static int tg3_ape_lock(struct tg3 *tp, int locknum)
return 0;

switch (locknum) {
case TG3_APE_LOCK_GRC:
case TG3_APE_LOCK_MEM:
break;
default:
Expand Down Expand Up @@ -573,6 +574,7 @@ static void tg3_ape_unlock(struct tg3 *tp, int locknum)
return;

switch (locknum) {
case TG3_APE_LOCK_GRC:
case TG3_APE_LOCK_MEM:
break;
default:
Expand Down Expand Up @@ -5760,6 +5762,8 @@ static int tg3_chip_reset(struct tg3 *tp)

tg3_mdio_stop(tp);

tg3_ape_lock(tp, TG3_APE_LOCK_GRC);

/* No matching tg3_nvram_unlock() after this because
* chip reset below will undo the nvram lock.
*/
Expand Down Expand Up @@ -5914,6 +5918,8 @@ static int tg3_chip_reset(struct tg3 *tp)

tg3_mdio_start(tp);

tg3_ape_unlock(tp, TG3_APE_LOCK_GRC);

err = tg3_poll_fw(tp);
if (err)
return err;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/tg3.h
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@
#define APE_EVENT_STATUS_EVENT_PENDING 0x80000000

/* APE convenience enumerations. */
#define TG3_APE_LOCK_GRC 1
#define TG3_APE_LOCK_MEM 4

#define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10
Expand Down

0 comments on commit dafa959

Please sign in to comment.