提交 9ce768ea 编写于 作者: M Matt Carlson 提交者: 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: NMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a7b850ea
...@@ -6985,9 +6985,10 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) ...@@ -6985,9 +6985,10 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
break; break;
}; };
/* Write our heartbeat update interval to APE. */ if (tp->tg3_flags3 & TG3_FLG3_ENABLE_APE)
tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS, /* Write our heartbeat update interval to APE. */
APE_HOST_HEARTBEAT_INT_DISABLE); tg3_ape_write32(tp, TG3_APE_HOST_HEARTBEAT_INT_MS,
APE_HOST_HEARTBEAT_INT_DISABLE);
tg3_write_sig_post_reset(tp, RESET_KIND_INIT); tg3_write_sig_post_reset(tp, RESET_KIND_INIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册