From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id A2F22A00C5;
	Mon,  6 Jul 2020 10:27:06 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 50E9A1D9B6;
	Mon,  6 Jul 2020 10:24:35 +0200 (CEST)
Received: from mga03.intel.com (mga03.intel.com [134.134.136.65])
 by dpdk.org (Postfix) with ESMTP id 7BD3A1D9AF
 for <dev@dpdk.org>; Mon,  6 Jul 2020 10:24:33 +0200 (CEST)
IronPort-SDR: 5xxIXeQkR8fvYYOkBbgNNjD7EWc73+4/Jt9E0p6mV7+wp8XYcSYrp3NeosFwsCf48pj2GBY2lQ
 1ZKPCf5rClLA==
X-IronPort-AV: E=McAfee;i="6000,8403,9673"; a="147379326"
X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="147379326"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga001.fm.intel.com ([10.253.24.23])
 by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 06 Jul 2020 01:24:33 -0700
IronPort-SDR: SfNiAQpHxWX50FYoaoGonxliiOhzmtNHYyvLzlNPPc7BE3qz2h+5xmcyhGwhepm2g2gGL3r+ah
 0GcE2sundM3Q==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="388128984"
Received: from intel.sh.intel.com ([10.239.255.48])
 by fmsmga001.fm.intel.com with ESMTP; 06 Jul 2020 01:24:31 -0700
From: Guinan Sun <guinanx.sun@intel.com>
To: dev@dpdk.org
Cc: Jeff Guo <jia.guo@intel.com>, Zhao1 Wei <wei.zhao1@intel.com>,
 Guinan Sun <guinanx.sun@intel.com>,
 Maciej Hefczyc <maciej.hefczyc@intel.com>
Date: Mon,  6 Jul 2020 08:12:15 +0000
Message-Id: <20200706081222.19279-21-guinanx.sun@intel.com>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20200706081222.19279-1-guinanx.sun@intel.com>
References: <20200622064634.70941-1-guinanx.sun@intel.com>
 <20200706081222.19279-1-guinanx.sun@intel.com>
Subject: [dpdk-dev] [PATCH v3 20/27] net/e1000/base: led blinking fix for
	i210
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Added initialization of identification LED.

Signed-off-by: Maciej Hefczyc <maciej.hefczyc@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
---
 drivers/net/e1000/base/e1000_i210.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/e1000/base/e1000_i210.c b/drivers/net/e1000/base/e1000_i210.c
index 553803261..d32b0f089 100644
--- a/drivers/net/e1000/base/e1000_i210.c
+++ b/drivers/net/e1000/base/e1000_i210.c
@@ -925,6 +925,7 @@ STATIC s32 e1000_get_cfg_done_i210(struct e1000_hw *hw)
 s32 e1000_init_hw_i210(struct e1000_hw *hw)
 {
 	s32 ret_val;
+	struct e1000_mac_info *mac = &hw->mac;
 
 	DEBUGFUNC("e1000_init_hw_i210");
 	if ((hw->mac.type >= e1000_i210) &&
@@ -934,6 +935,10 @@ s32 e1000_init_hw_i210(struct e1000_hw *hw)
 			return ret_val;
 	}
 	hw->phy.ops.get_cfg_done = e1000_get_cfg_done_i210;
+
+	/* Initialize identification LED */
+	ret_val = mac->ops.id_led_init(hw);
+
 	ret_val = e1000_init_hw_base(hw);
 	return ret_val;
 }
-- 
2.17.1