Index: ixgbe_phy.c =================================================================== RCS file: /cvs/src/sys/dev/pci/ixgbe_phy.c,v retrieving revision 1.23 diff -u -p -r1.23 ixgbe_phy.c --- ixgbe_phy.c 9 Jan 2022 05:42:56 -0000 1.23 +++ ixgbe_phy.c 13 Jan 2023 12:42:18 -0000 @@ -1402,6 +1402,7 @@ int32_t ixgbe_identify_sfp_module_generi if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_fiber) { hw->phy.sfp_type = ixgbe_sfp_type_not_present; status = IXGBE_ERR_SFP_NOT_PRESENT; +printf("%s[%u] status %d\n", __func__, __LINE__, status); goto out; } @@ -1411,6 +1412,7 @@ int32_t ixgbe_identify_sfp_module_generi status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_IDENTIFIER, &identifier); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1418,10 +1420,12 @@ int32_t ixgbe_identify_sfp_module_generi if (identifier != IXGBE_SFF_IDENTIFIER_SFP) { hw->phy.type = ixgbe_phy_sfp_unsupported; status = IXGBE_ERR_SFP_NOT_SUPPORTED; +printf("%s[%u] status %d\n", __func__, __LINE__, status); } else { status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_1GBE_COMP_CODES, &comp_codes_1g); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1429,12 +1433,14 @@ int32_t ixgbe_identify_sfp_module_generi status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_10GBE_COMP_CODES, &comp_codes_10g); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_CABLE_TECHNOLOGY, &cable_tech); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1542,6 +1548,7 @@ int32_t ixgbe_identify_sfp_module_generi status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_VENDOR_OUI_BYTE0, &oui_bytes[0]); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1549,6 +1556,7 @@ int32_t ixgbe_identify_sfp_module_generi status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_VENDOR_OUI_BYTE1, &oui_bytes[1]); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1556,6 +1564,7 @@ int32_t ixgbe_identify_sfp_module_generi status = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_VENDOR_OUI_BYTE2, &oui_bytes[2]); +printf("%s[%u] status %d\n", __func__, __LINE__, status); if (status != IXGBE_SUCCESS) goto err_read_i2c_eeprom; @@ -1597,9 +1606,11 @@ int32_t ixgbe_identify_sfp_module_generi else if (cable_tech & IXGBE_SFF_DA_ACTIVE_CABLE) hw->phy.type = ixgbe_phy_sfp_active_unknown; status = IXGBE_SUCCESS; +printf("%s[%u] status %d\n", __func__, __LINE__, status); goto out; } +#if 0 /* Verify supported 1G SFP modules */ if (comp_codes_10g == 0 && !(hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1 || @@ -1610,14 +1621,17 @@ int32_t ixgbe_identify_sfp_module_generi hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1)) { hw->phy.type = ixgbe_phy_sfp_unsupported; status = IXGBE_ERR_SFP_NOT_SUPPORTED; +printf("%s[%u] status %d\n", __func__, __LINE__, status); goto out; } +#endif /* * We do not limit the definition of "supported SFP modules" * to the vendor/make whitelist. */ status = IXGBE_SUCCESS; +printf("%s[%u] status %d\n", __func__, __LINE__, status); } out: