From patchwork Thu Jan 12 14:53:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Dai X-Patchwork-Id: 19271 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 99ABDF92E; Thu, 12 Jan 2017 15:57:38 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 03E37F919 for ; Thu, 12 Jan 2017 15:57:20 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP; 12 Jan 2017 06:57:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,349,1477983600"; d="scan'208";a="52472397" Received: from dpdk4.bj.intel.com ([172.16.182.178]) by fmsmga005.fm.intel.com with ESMTP; 12 Jan 2017 06:57:19 -0800 From: Wei Dai To: dev@dpdk.org Cc: ferruh.yigit@intel.com, helin.zhang@intel.com, konstantin.ananyev@intel.com, Wei Dai Date: Thu, 12 Jan 2017 22:53:29 +0800 Message-Id: <1484232811-39257-6-git-send-email-wei.dai@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484232811-39257-1-git-send-email-wei.dai@intel.com> References: <1484232811-39257-1-git-send-email-wei.dai@intel.com> Subject: [dpdk-dev] [PATCH v2 5/7] net/ixgbe/base: use clause 22 MDIO functions for Marvell PHYs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch sets the MDIO(Management Data Input/Output Interface) read/write function ponters 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 --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }