projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b850e
)
[TG3]: Fix APE induced regression
author
Matt Carlson
<
[email protected]
>
Fri, 12 Oct 2007 02:49:11 +0000
(19:49 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 12 Oct 2007 05:17:20 +0000
(22:17 -0700)
This patch fixes a bug caused by the recent APE support added for 5761
devices.
Signed-off-by: Matt Carlson <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/tg3.c
patch
|
blob
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index a402b5c018964ad3faab7d1ffb7214edc98c131c..e795c33b982de885e0ab290d3d325ede7b06b114 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-6985,9
+6985,10
@@
static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
break;
};
- /* Write our heartbeat update interval to APE. */
- tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS,
- APE_HOST_HEARTBEAT_INT_DISABLE);
+ if (tp->tg3_flags3 & TG3_FLG3_ENABLE_APE)
+ /* Write our heartbeat update interval to APE. */
+ tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS,
+ APE_HOST_HEARTBEAT_INT_DISABLE);
tg3_write_sig_post_reset(tp, RESET_KIND_INIT);