From patchwork Tue Sep 19 01:06:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 112960 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4321565qgf; Mon, 18 Sep 2017 18:08:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA6xRcp5e3YVKO/HJDTaXCHJoFmjNkY7TgtqnAtgXJl7LCkANxcIm6sPEVyUSO1ZTCkvZP4 X-Received: by 10.101.93.5 with SMTP id e5mr409000pgr.55.1505783290717; Mon, 18 Sep 2017 18:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505783290; cv=none; d=google.com; s=arc-20160816; b=zWEDa8Pm+QUbfL3VHb2XA7NBB9ITRukVKhtLjiX3Zsx5j9dTDrp0tefBI/rUXGmU7D IxkWszM/H2TzBMkPHU3o0xZDKml88dIHXnggBqxPlUQP+W1vWwuRm3rRV6L9ViOiyG0F Y8SSCgXCDVgF8s1fWwb9tA45BrqEKPVRnPERPk4UO664j7pd3Fvbc4N6P3tK+hH7msH3 lqzSru8AuUvmWPHr9HKSf/uGRINoElmj/keh2BemSgikJ6GwRiX36q4mqRGjsdBf2iKB zMWSzmTkFqHJ9LUFthU/09W1Bcw7MY5hnjwo0Nlkk+5npzqnI2v2B8G4w7woDKi6Mrtu 2fQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=G7QLg+CoV855PDFebKzC9TDkrfZOFMabgvy7Laj6TbU=; b=QyiNWREZOhw5ihrEVFXFgEyFRWtUaFyIyl/t5AoL6AYhOt3PAOt1IsNNjDwU2D0m/y IswdaFGGvLaw3pox8FFjzwgILoQWFdHGzfjFvqUejZIalMhLDqYFD0KE6MGquAhS4jSV cYUEC9/9ghVpKdUP3YjrNSaitfme8WJDd6Wfu5Tvll616K05+EITCBQrKWslqpn0Yi4t buTh5/DkZlncefqeqhRRMbjwz4V6vR3Uq102iCP9hJ5FtJTCE8Q07I4b16PiW6HKQKwl 1CF65pEty3sHzkPeZgEOIJhOeNwTBn6YjW5qIleEYhU57+CuU4M7PdSvTPY9xLNkSlVm FEHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si487401pga.60.2017.09.18.18.08.10; Mon, 18 Sep 2017 18:08:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751660AbdISBHt (ORCPT + 26 others); Mon, 18 Sep 2017 21:07:49 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6489 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbdISBHq (ORCPT ); Mon, 18 Sep 2017 21:07:46 -0400 Received: from 172.30.72.58 (EHLO DGGEMS411-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DHM20745; Tue, 19 Sep 2017 09:07:23 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.92.71) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.301.0; Tue, 19 Sep 2017 09:07:11 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH net 1/7] net: hns3: get phy addr from NCL_config Date: Tue, 19 Sep 2017 02:06:22 +0100 Message-ID: <20170919010628.175732-2-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20170919010628.175732-1-salil.mehta@huawei.com> References: <20170919010628.175732-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.92.71] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.59C06DDD.01BB, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 5655954c9c8ac429b7267239b2a7bd24 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lipeng NCL_config file defines phy address for every port. Driver should get phy address from NCL_config file.If do not get the right phy address, every port will use the default phy address 0, different port use the same phy address will cause error. Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index bb45365fb817..db4e07dac29a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -1066,6 +1066,7 @@ static int hclge_configure(struct hclge_dev *hdev) for (i = 0; i < ETH_ALEN; i++) hdev->hw.mac.mac_addr[i] = cfg.mac_addr[i]; hdev->hw.mac.media_type = cfg.media_type; + hdev->hw.mac.phy_addr = cfg.phy_addr; hdev->num_desc = cfg.tqp_desc_num; hdev->tm_info.num_pg = 1; hdev->tm_info.num_tc = cfg.tc_num;