|
@@ -956,6 +956,13 @@ s32 ixgbe_identify_sfp_module_generic(struct ixgbe_hw *hw)
|
|
|
else
|
|
|
hw->phy.sfp_type =
|
|
|
ixgbe_sfp_type_1g_sx_core1;
|
|
|
+ } else if (comp_codes_1g & IXGBE_SFF_1GBASELX_CAPABLE) {
|
|
|
+ if (hw->bus.lan_id == 0)
|
|
|
+ hw->phy.sfp_type =
|
|
|
+ ixgbe_sfp_type_1g_lx_core0;
|
|
|
+ else
|
|
|
+ hw->phy.sfp_type =
|
|
|
+ ixgbe_sfp_type_1g_lx_core1;
|
|
|
} else {
|
|
|
hw->phy.sfp_type = ixgbe_sfp_type_unknown;
|
|
|
}
|
|
@@ -1043,6 +1050,8 @@ s32 ixgbe_identify_sfp_module_generic(struct ixgbe_hw *hw)
|
|
|
if (comp_codes_10g == 0 &&
|
|
|
!(hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1 ||
|
|
|
hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core0 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1 ||
|
|
|
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 ||
|
|
|
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1)) {
|
|
|
hw->phy.type = ixgbe_phy_sfp_unsupported;
|
|
@@ -1058,10 +1067,12 @@ s32 ixgbe_identify_sfp_module_generic(struct ixgbe_hw *hw)
|
|
|
|
|
|
hw->mac.ops.get_device_caps(hw, &enforce_sfp);
|
|
|
if (!(enforce_sfp & IXGBE_DEVICE_CAPS_ALLOW_ANY_SFP) &&
|
|
|
- !((hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0) ||
|
|
|
- (hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1) ||
|
|
|
- (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0) ||
|
|
|
- (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1))) {
|
|
|
+ !(hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core0 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 ||
|
|
|
+ hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1)) {
|
|
|
/* Make sure we're a supported PHY type */
|
|
|
if (hw->phy.type == ixgbe_phy_sfp_intel) {
|
|
|
status = 0;
|
|
@@ -1125,10 +1136,12 @@ s32 ixgbe_get_sfp_init_sequence_offsets(struct ixgbe_hw *hw,
|
|
|
* SR modules
|
|
|
*/
|
|
|
if (sfp_type == ixgbe_sfp_type_da_act_lmt_core0 ||
|
|
|
+ sfp_type == ixgbe_sfp_type_1g_lx_core0 ||
|
|
|
sfp_type == ixgbe_sfp_type_1g_cu_core0 ||
|
|
|
sfp_type == ixgbe_sfp_type_1g_sx_core0)
|
|
|
sfp_type = ixgbe_sfp_type_srlr_core0;
|
|
|
else if (sfp_type == ixgbe_sfp_type_da_act_lmt_core1 ||
|
|
|
+ sfp_type == ixgbe_sfp_type_1g_lx_core1 ||
|
|
|
sfp_type == ixgbe_sfp_type_1g_cu_core1 ||
|
|
|
sfp_type == ixgbe_sfp_type_1g_sx_core1)
|
|
|
sfp_type = ixgbe_sfp_type_srlr_core1;
|