From patchwork Sat Jul 22 22:09:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 108529 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2387973qge; Sat, 22 Jul 2017 15:12:04 -0700 (PDT) X-Received: by 10.98.193.68 with SMTP id i65mr12023777pfg.142.1500761524215; Sat, 22 Jul 2017 15:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500761524; cv=none; d=google.com; s=arc-20160816; b=CAa5zHtUsZbBZg30kZP6ZfpHL6wkGWaAhDPr13IZQhobvONpqlUtRo+RK/LSFHfVfD DwYxddcu5bunyqnenBJvbOrzdjcDw1yDOgmILE1J5yi3fLBgKB7G/2SVcd9dDl8s9U8y nvPJLs6ugc4zQydmrtY/qBIrG4S9ACGVXqxaim1euLjPb9TwrHncCeoTq7DiGZ/1eedN 0LFHIUTq7OgHm/WIVknXK7+buUrVEyfitpuO7fLDy27Ey3dY0AJaTc/4ola0ke55nkFt S7BftmHFGst4auyKs6jk1U1zkG8tcr7aFjxgM675P5KbA5aEZ8gOXo1jUecUQY7e0p5/ T1IQ== 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=jARnmQJ+2kzZx+WUGc3B3Mu3hfXpvKXnSpUIpTb6QHU=; b=DX6RDmFekvfjPpgTO0P0XzbmkngwdF/Cmuvz29QtX+7VDBKA2vtFzrKdZ/z7AQ/VPk 56hFK3s2TxDj4nPB+3LxMX7pOo1V5Ey507PzuYZVH37fyZrCcpi5Tz7zsJaWlSo2ZSei r05rr2oLqrNyUd8jsMtdbUPhBBC/gEtdjg/KyfMMAuyUIepKA4o7TKiEfEfEwmo4XT62 LyFQP1z38F1ejLsQUTog760NMOL09DIfhUq8igDv1bILqKvwNrw/I7moPhYVi8Ll21wD lrIy7uYZj9g7wNDNM2CmqiCgJ1h/aEG/vRA79sH+H565xsffEsys18JSXcCwdTXlmkXi oYQg== 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 u10si4676365pfi.252.2017.07.22.15.12.03; Sat, 22 Jul 2017 15:12:04 -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 S1755322AbdGVWMA (ORCPT + 26 others); Sat, 22 Jul 2017 18:12:00 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10249 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754798AbdGVWLy (ORCPT ); Sat, 22 Jul 2017 18:11:54 -0400 Received: from 172.30.72.53 (EHLO DGGEML403-HUB.china.huawei.com) ([172.30.72.53]) by dggrg01-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id ASR68333; Sun, 23 Jul 2017 06:11:51 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.95.3) by DGGEML403-HUB.china.huawei.com (10.3.17.33) with Microsoft SMTP Server id 14.3.301.0; Sun, 23 Jul 2017 06:11:43 +0800 From: Salil Mehta To: CC: , , , , , , , , Subject: [PATCH V4 net-next 8/8] net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS Date: Sat, 22 Jul 2017 23:09:42 +0100 Message-ID: <20170722220942.78852-9-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20170722220942.78852-1-salil.mehta@huawei.com> References: <20170722220942.78852-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.95.3] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.5973CDA8.000D, 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: 02e02bdc13632f85f7b443d87cf97f54 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch updates the MAINTAINERS file with HNS3 Ethernet driver maintainers names and other details. This also introduces the new Makefiles required to build the HNS3 Ethernet driver and updates the existing Kconfig file in the hisilicon folder. Signed-off-by: Salil Mehta --- Patch V3: Addressed below errors: 1. Intel kbuild: https://lkml.org/lkml/2017/6/14/313 2. Intel Kbuild: https://lkml.org/lkml/2017/6/14/636 Patch V2: No change Patch V1: Initial Submit --- MAINTAINERS | 8 +++++++ drivers/net/ethernet/hisilicon/Kconfig | 27 ++++++++++++++++++++++ drivers/net/ethernet/hisilicon/Makefile | 1 + drivers/net/ethernet/hisilicon/hns3/Makefile | 7 ++++++ .../net/ethernet/hisilicon/hns3/hns3pf/Makefile | 11 +++++++++ 5 files changed, 54 insertions(+) create mode 100644 drivers/net/ethernet/hisilicon/hns3/Makefile create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile -- 2.11.0 diff --git a/MAINTAINERS b/MAINTAINERS index 297e610c9163..a22d5b86c2b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6197,6 +6197,14 @@ S: Maintained F: drivers/net/ethernet/hisilicon/ F: Documentation/devicetree/bindings/net/hisilicon*.txt +HISILICON NETWORK SUBSYSTEM 3 DRIVER (HNS3) +M: Yisen Zhuang +M: Salil Mehta +L: netdev@vger.kernel.org +W: http://www.hisilicon.com +S: Maintained +F: drivers/net/ethernet/hisilicon/hns3/ + HISILICON ROCE DRIVER M: Lijun Ou M: Wei Hu(Xavier) diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig index d11287e11371..9f8ea283c531 100644 --- a/drivers/net/ethernet/hisilicon/Kconfig +++ b/drivers/net/ethernet/hisilicon/Kconfig @@ -76,4 +76,31 @@ config HNS_ENET This selects the general ethernet driver for HNS. This module make use of any HNS AE driver, such as HNS_DSAF +config HNS3 + tristate "Hisilicon Network Subsystem Support HNS3 (Framework)" + depends on PCI + ---help--- + This selects the framework support for Hisilicon Network Subsystem 3. + This layer facilitates clients like ENET, RoCE and user-space ethernet + drivers(like ODP)to register with HNAE devices and their associated + operations. + +config HNS3_HCLGE + tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support" + depends on PCI_MSI + select HNS3 + ---help--- + This selects the HNS3_HCLGE network acceleration engine & its hardware + compatibility layer. The engine would be used in Hisilicon hip08 family of + SoCs and further upcoming SoCs. + +config HNS3_ENET + tristate "Hisilicon HNS3 Ethernet Device Support" + depends on 64BIT && PCI + select HNS3 + ---help--- + This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08 + family of SoCs. This module depends upon HNAE3 driver to access the HNAE3 + devices and their associated operations. + endif # NET_VENDOR_HISILICON diff --git a/drivers/net/ethernet/hisilicon/Makefile b/drivers/net/ethernet/hisilicon/Makefile index 8661695024dc..3828c435c18f 100644 --- a/drivers/net/ethernet/hisilicon/Makefile +++ b/drivers/net/ethernet/hisilicon/Makefile @@ -6,4 +6,5 @@ obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o obj-$(CONFIG_HIP04_ETH) += hip04_eth.o obj-$(CONFIG_HNS_MDIO) += hns_mdio.o obj-$(CONFIG_HNS) += hns/ +obj-$(CONFIG_HNS3) += hns3/ obj-$(CONFIG_HISI_FEMAC) += hisi_femac.o diff --git a/drivers/net/ethernet/hisilicon/hns3/Makefile b/drivers/net/ethernet/hisilicon/hns3/Makefile new file mode 100644 index 000000000000..5e53735b2d4e --- /dev/null +++ b/drivers/net/ethernet/hisilicon/hns3/Makefile @@ -0,0 +1,7 @@ +# +# Makefile for the HISILICON network device drivers. +# + +obj-$(CONFIG_HNS3) += hns3pf/ + +obj-$(CONFIG_HNS3) +=hnae3.o diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile b/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile new file mode 100644 index 000000000000..c0a92b5690a9 --- /dev/null +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile @@ -0,0 +1,11 @@ +# +# Makefile for the HISILICON network device drivers. +# + +ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3 + +obj-$(CONFIG_HNS3_HCLGE) += hclge.o +hclge-objs =hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o + +obj-$(CONFIG_HNS3_ENET) += hns3.o +hns3-objs = hns3_enet.o hns3_ethtool.o