e1000: support flashless i211 PBA
Add support to print PBA when using flashless. Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> Reviewed-by: Wei Zhao <wei.zhao1@intel.com> Approved by: imp Obtained from: DPDK (d3c41d90dfd5b39dec14c74cf53086f4e6634aed) MFC after: 1 week
This commit is contained in:
parent
702cac6c6b
commit
de0ae5d1cb
@ -461,7 +461,7 @@ static s32 e1000_init_mac_params_82575(struct e1000_hw *hw)
|
||||
if ((mac->type == e1000_i210) || (mac->type == e1000_i211))
|
||||
mac->ops.init_hw = e1000_init_hw_i210;
|
||||
else
|
||||
mac->ops.init_hw = e1000_init_hw_82575;
|
||||
mac->ops.init_hw = e1000_init_hw_82575;
|
||||
/* link setup */
|
||||
mac->ops.setup_link = e1000_setup_link_generic;
|
||||
/* physical interface link setup */
|
||||
|
@ -776,8 +776,9 @@ s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num,
|
||||
|
||||
DEBUGFUNC("e1000_read_pba_string_generic");
|
||||
|
||||
if ((hw->mac.type >= e1000_i210) &&
|
||||
!e1000_get_flash_presence_i210(hw)) {
|
||||
if ((hw->mac.type == e1000_i210 ||
|
||||
hw->mac.type == e1000_i211) &&
|
||||
!e1000_get_flash_presence_i210(hw)) {
|
||||
DEBUGOUT("Flashless no PBA string\n");
|
||||
return -E1000_ERR_NVM_PBA_SECTION;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user