FreeBSD Bugzilla – Attachment 177725 Details for
Bug 215101
[ixgbe] Intel X552 SFP+ fails to initialize when no SFP module is plugged in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix
fbsd.ix.diff (text/plain), 1.20 KB, created by
Mike Belopuhov
on 2016-12-06 16:39:21 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Mike Belopuhov
Created:
2016-12-06 16:39:21 UTC
Size:
1.20 KB
patch
obsolete
>diff --git sys/dev/ixgbe/ixgbe_x550.c sys/dev/ixgbe/ixgbe_x550.c >index 1199d38..071df89 100644 >--- sys/dev/ixgbe/ixgbe_x550.c >+++ sys/dev/ixgbe/ixgbe_x550.c >@@ -323,28 +323,37 @@ static void ixgbe_setup_mux_ctl(struct ixgbe_hw *hw) > } > > /** > * ixgbe_identify_phy_x550em - Get PHY type based on device id > * @hw: pointer to hardware structure > * > * Returns error code > */ > static s32 ixgbe_identify_phy_x550em(struct ixgbe_hw *hw) > { >+ s32 ret_val; >+ > switch (hw->device_id) { > case IXGBE_DEV_ID_X550EM_X_SFP: > /* set up for CS4227 usage */ > hw->phy.phy_semaphore_mask = IXGBE_GSSR_SHARED_I2C_SM; > ixgbe_setup_mux_ctl(hw); > ixgbe_check_cs4227(hw); > >- return ixgbe_identify_module_generic(hw); >+ ret_val = ixgbe_identify_module_generic(hw); >+ >+ /* Set PHY type none if no SFP detected */ >+ if (ret_val == IXGBE_ERR_SFP_NOT_PRESENT) { >+ hw->phy.type = ixgbe_phy_none; >+ return IXGBE_SUCCESS; >+ } >+ return ret_val; > break; > case IXGBE_DEV_ID_X550EM_X_KX4: > hw->phy.type = ixgbe_phy_x550em_kx4; > break; > case IXGBE_DEV_ID_X550EM_X_KR: > hw->phy.type = ixgbe_phy_x550em_kr; > break; > case IXGBE_DEV_ID_X550EM_X_1G_T: > case IXGBE_DEV_ID_X550EM_X_10G_T: > return ixgbe_identify_phy_generic(hw);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215101
: 177725