From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3chas3@gmail.com> Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by dpdk.org (Postfix) with ESMTP id 13A7C2B99 for ; Thu, 7 Dec 2017 00:55:36 +0100 (CET) Received: by mail-qt0-f194.google.com with SMTP id u10so13437617qtg.2 for ; Wed, 06 Dec 2017 15:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qAI6lqKKVzdlsF8jsir5zY12XV0YXtoERT+K/nmb1QE=; b=ng+KEdvblgAhfGMsRonD1aYdtDFbzZRK6BHXBw3wEDSaG+9c+Ke6/D3gfWdYaYjJAs cmrnYqvCgc+fnjoIHK0v6vrQ6lhFF7qwe4f9V6YJ0m6IwqlfV6H/XBy7HyzhVNYRr1dq 7J7zr8QFTCSCP/1KuA0E0MzOsp3ehDEkQfqS5Evp4PgsaBWAcjpXhalbjfCz3vyAMqqY rbWBHuZOcItqFksmIiaH+JiS4oCkdezZC8xi5QET/fAYGetlhuYNPcLNbNE/4Rb/c6Zm FQnW4nXFPrIA65IsXIL8a8Q15KmAur9xgBZ36NqWlxzHJSheZRJYac5lSAZuPKq2FyjK laVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qAI6lqKKVzdlsF8jsir5zY12XV0YXtoERT+K/nmb1QE=; b=YoEsZd1w/a1SvFlW+5S6xUjAgb2J1oznJE8pyjSKpaYMDrR/YrjmM4MjbNL1C68DEP xF21LJYgMUEbt8pcrim1DF0wPmfG5dO3jFt/HIsenfQGqjYHLClhlXdSCI0g/yjfVWkN QK+7aKu0DEEGRXFs82l3QSNhprLV/7qSJ9A7saVO2QIi6jOBLqNU+VSBS0Fj8EdCOaga Ca55lXJT9ZUZXV3eyCCulcUbch6k99cQ8l4i/lEUcKXA5XKYbh+S8hAped5AeAJRXXOr yOpz44VcKwPesJgllys1TOYcahLwcNEh25ESs6AsCxcPkVNADEKESF6qsXZmnks98WXq xlrw== X-Gm-Message-State: AKGB3mJ/4TKd/5VKRruNKVFUV14qyouza3x/jC9ZZjrR/+TX5YRnf9eI E01zT0C8NErWoaUNvDV4kl2VpA== X-Google-Smtp-Source: AGs4zMY0ZVepAHqewsvw6gWR82uGgjo4funmWI20hmbT9ihOTrQmjJcU0iS8mW3ZNIUelbKEvkKiUg== X-Received: by 10.55.41.206 with SMTP id p75mr25648582qkp.207.1512604535203; Wed, 06 Dec 2017 15:55:35 -0800 (PST) Received: from monolith.home (pool-173-79-224-159.washdc.fios.verizon.net. [173.79.224.159]) by smtp.gmail.com with ESMTPSA id x40sm2263492qtb.77.2017.12.06.15.55.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 15:55:34 -0800 (PST) From: Chas Williams <3chas3@gmail.com> To: dev@dpdk.org Cc: skhare@vmware.com, "Charles (Chas) Williams" , Chas Williams Date: Wed, 6 Dec 2017 18:55:28 -0500 Message-Id: <20171206235528.29746-1-3chas3@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [dpdk-dev] [PATCH] net/e1000: add minimum support for Broadcom 54616 PHY 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: , X-List-Received-Date: Wed, 06 Dec 2017 23:55:36 -0000 From: "Charles (Chas) Williams" If we find a Broadcom 54616, handle as a e1000_phy_none assuming that the NIC reset has initialized the PHY to a sane state. Signed-off-by: Chas Williams --- drivers/net/e1000/base/e1000_82575.c | 5 +++++ drivers/net/e1000/base/e1000_defines.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/net/e1000/base/e1000_82575.c b/drivers/net/e1000/base/e1000_82575.c index c6400bd..3bcb6da 100644 --- a/drivers/net/e1000/base/e1000_82575.c +++ b/drivers/net/e1000/base/e1000_82575.c @@ -312,6 +312,9 @@ STATIC s32 e1000_init_phy_params_82575(struct e1000_hw *hw) phy->ops.set_d3_lplu_state = e1000_set_d3_lplu_state_82580; phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_m88; break; + case BCM54616_E_PHY_ID: + phy->type = e1000_phy_none; + break; default: ret_val = -E1000_ERR_PHY; goto out; @@ -1607,6 +1610,8 @@ STATIC s32 e1000_setup_copper_link_82575(struct e1000_hw *hw) case e1000_phy_82580: ret_val = e1000_copper_link_setup_82577(hw); break; + case e1000_phy_none: + break; default: ret_val = -E1000_ERR_PHY; break; diff --git a/drivers/net/e1000/base/e1000_defines.h b/drivers/net/e1000/base/e1000_defines.h index dbc2bbb..e2101c1 100644 --- a/drivers/net/e1000/base/e1000_defines.h +++ b/drivers/net/e1000/base/e1000_defines.h @@ -1274,6 +1274,7 @@ POSSIBILITY OF SUCH DAMAGE. #define I350_I_PHY_ID 0x015403B0 #define I210_I_PHY_ID 0x01410C00 #define IGP04E1000_E_PHY_ID 0x02A80391 +#define BCM54616_E_PHY_ID 0x03625D10 #define M88_VENDOR 0x0141 /* M88E1000 Specific Registers */ -- 2.9.5