From: Jijiang Liu Date: Wed, 18 Jun 2014 12:26:25 +0000 (+0200) Subject: e1000/base: fix m88e1112 for 82575 X-Git-Tag: spdx-start~10653 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3890ce00339f323537a436eb8fce7cb4ae0eaa0a;p=dpdk.git e1000/base: fix m88e1112 for 82575 Signed-off-by: Jijiang Liu Acked-by: Helin Zhang Tested-by: Waterman Cao [Thomas: split code drop] --- diff --git a/lib/librte_pmd_e1000/e1000/e1000_82575.c b/lib/librte_pmd_e1000/e1000/e1000_82575.c index 36cab3029b..28b29ba8f7 100644 --- a/lib/librte_pmd_e1000/e1000/e1000_82575.c +++ b/lib/librte_pmd_e1000/e1000/e1000_82575.c @@ -1248,6 +1248,11 @@ STATIC s32 e1000_check_for_link_media_swap(struct e1000_hw *hw) if (ret_val) return ret_val; + /* reset page to 0 */ + ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); + if (ret_val) + return ret_val; + if (data & E1000_M88E1112_STATUS_LINK) port = E1000_MEDIA_PORT_OTHER;