mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
e1000: Remove redundant disable_ulp for ich8lan
This call only makes sense for ich8lan, and the shared code does it in e1000_setup_init_funcs() above this deletion. Obtained from: DPDK MFC after: 2 weeks Sponsored by: BBOX.io Pull Request: https://github.com/freebsd/freebsd-src/pull/539
This commit is contained in:
parent
1aa9a35f63
commit
d36fbdb08f
2 changed files with 5 additions and 8 deletions
|
|
@ -72,6 +72,7 @@
|
|||
|
||||
#include "e1000_api.h"
|
||||
|
||||
static s32 e1000_oem_bits_config_ich8lan(struct e1000_hw *hw, bool d0_state);
|
||||
static s32 e1000_acquire_swflag_ich8lan(struct e1000_hw *hw);
|
||||
static void e1000_release_swflag_ich8lan(struct e1000_hw *hw);
|
||||
static s32 e1000_acquire_nvm_ich8lan(struct e1000_hw *hw);
|
||||
|
|
@ -330,7 +331,9 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)
|
|||
* so forcibly disable it.
|
||||
*/
|
||||
hw->dev_spec.ich8lan.ulp_state = e1000_ulp_state_unknown;
|
||||
e1000_disable_ulp_lpt_lp(hw, TRUE);
|
||||
ret_val = e1000_disable_ulp_lpt_lp(hw, true);
|
||||
if (ret_val)
|
||||
ERROR_REPORT("Failed to disable ULP\n");
|
||||
|
||||
ret_val = hw->phy.ops.acquire(hw);
|
||||
if (ret_val) {
|
||||
|
|
@ -1290,14 +1293,12 @@ s32 e1000_enable_ulp_lpt_lp(struct e1000_hw *hw, bool to_sx)
|
|||
|
||||
if (!to_sx) {
|
||||
int i = 0;
|
||||
|
||||
/* Poll up to 5 seconds for Cable Disconnected indication */
|
||||
while (!(E1000_READ_REG(hw, E1000_FEXT) &
|
||||
E1000_FEXT_PHY_CABLE_DISCONNECTED)) {
|
||||
/* Bail if link is re-acquired */
|
||||
if (E1000_READ_REG(hw, E1000_STATUS) & E1000_STATUS_LU)
|
||||
return -E1000_ERR_PHY;
|
||||
|
||||
if (i++ == 100)
|
||||
break;
|
||||
|
||||
|
|
@ -1310,7 +1311,6 @@ s32 e1000_enable_ulp_lpt_lp(struct e1000_hw *hw, bool to_sx)
|
|||
if (!(E1000_READ_REG(hw, E1000_FEXT) &
|
||||
E1000_FEXT_PHY_CABLE_DISCONNECTED))
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
ret_val = hw->phy.ops.acquire(hw);
|
||||
|
|
@ -4318,7 +4318,7 @@ static s32 e1000_update_nvm_checksum_ich8lan(struct e1000_hw *hw)
|
|||
(u8)(data >> 8));
|
||||
if (ret_val)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Don't bother writing the segment valid bits if sector
|
||||
* programming failed.
|
||||
|
|
|
|||
|
|
@ -1111,9 +1111,6 @@ em_if_attach_pre(if_ctx_t ctx)
|
|||
|
||||
em_print_fw_version(sc);
|
||||
|
||||
/* Disable ULP support */
|
||||
e1000_disable_ulp_lpt_lp(hw, true);
|
||||
|
||||
/*
|
||||
* Get Wake-on-Lan and Management info for later use
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue