summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Dai <wei.dai@intel.com>2017-01-12 22:53:29 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:41:42 +0100
commit96dae4644af74f1b55f2558eda147eb8ac1306e8 (patch)
tree1cfe18d02a1b8f78bbefa6319f1ea11b3dfa2e02
parent18f5a572d81a9588e2b96103bc415232ac44ef70 (diff)
downloaddpdk-96dae4644af74f1b55f2558eda147eb8ac1306e8.zip
dpdk-96dae4644af74f1b55f2558eda147eb8ac1306e8.tar.gz
dpdk-96dae4644af74f1b55f2558eda147eb8ac1306e8.tar.xz
net/ixgbe/base: use clause 22 MDIO functions for Marvell PHYs
Set the MDIO (Management Data Input/Output Interface) read/write function pointers for Marvell PHYs on some X550 platforms to use the clause 22 functions. Marvell PHYs do not support clause 45. Signed-off-by: Wei Dai <wei.dai@intel.com>
-rw-r--r--drivers/net/ixgbe/base/ixgbe_x550.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c
index 1fd7ffb..e15054b 100644
--- a/drivers/net/ixgbe/base/ixgbe_x550.c
+++ b/drivers/net/ixgbe/base/ixgbe_x550.c
@@ -2373,6 +2373,10 @@ s32 ixgbe_init_phy_ops_X550em(struct ixgbe_hw *hw)
/* set up for CS4227 usage */
hw->phy.phy_semaphore_mask = IXGBE_GSSR_SHARED_I2C_SM;
break;
+ case IXGBE_DEV_ID_X550EM_X_1G_T:
+ phy->ops.read_reg_mdi = ixgbe_read_phy_reg_mdi_22;
+ phy->ops.write_reg_mdi = ixgbe_write_phy_reg_mdi_22;
+ break;
default:
break;
}