Commit 9ce768ea authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

[TG3]: Fix APE induced regression

This patch fixes a bug caused by the recent APE support added for 5761
devices.
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7b850ea
...@@ -6985,6 +6985,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) ...@@ -6985,6 +6985,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
break; break;
}; };
if (tp->tg3_flags3 & TG3_FLG3_ENABLE_APE)
/* Write our heartbeat update interval to APE. */ /* Write our heartbeat update interval to APE. */
tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS, tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS,
APE_HOST_HEARTBEAT_INT_DISABLE); APE_HOST_HEARTBEAT_INT_DISABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment