Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp659086imm; Fri, 29 Jun 2018 04:22:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJNpEUdv2YrxoL48SzE1MndCV6Bzy9SkzvCBwP0+Qs37dYEuo2EftBqGfGDVgdj5HpAV6N3 X-Received: by 2002:a63:5e45:: with SMTP id s66-v6mr12186548pgb.151.1530271353592; Fri, 29 Jun 2018 04:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530271353; cv=none; d=google.com; s=arc-20160816; b=O0aHXLhWODeL6Yy31pB7H3RwfW4w5EQtZFP5KY3FbUvubth14towCajsjA/LsnViCS yvMH7KbXaB2Xc95ONgRueliJA3oojOAj+WZ21vEV2Tx/neX0Dad9eGkfWiRz/n5WakK9 +ipcRX5Jj8HVR+iOs8ob/7mhXiVgQhVnG+xgDl9LnLLHH1hF/nUCj2gQkUnZAfDlevTS mLnQcdtDgFN95JNsYLI0UFx5o2QTcJoGyBMfo7L1ZQtp+a/FIqkqMNMUGzIjV8UsnzNj x3VqeulpjgYZmYS1OGo4HGJPpbh0W9yqwK8/JsXLYDKdc2rNjiQMzFYtC12EiWSiokBO e61g== 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=G2PIKGGQ6ZqlnEExJSlRiz16AV3otKGBiaON755FNyw=; b=XLgAIC8NBXuf+ohIY2J3T0r49p9F/zevih9oEmEZsXnVmXuFFFhCAbjItuAtC/v4ga u5qHuYgMXt8wIAIya2PpgNcrP4ksB6vOi1ciqqgtotd7PWFk682SsFAr5YDX/mDu/ORm I9zfOLKRZEozk1ppB3X0+P6YpQ33DGkxJnDs6zPE0a0SQKmLq1LaIm6+maS1LS773Aw7 eiCLuRlTm6PmUhFUBBWicGkojwrnv7agQI/yzyzLZuD21i2C6b/FmA5xSFlNp7qUkj4a D20KrnRi5miG4Liw4kDRcTOBA1l8DeFsIa7V1MRTLCcEdVownIhx14Ajrn30SrA13Ghf z+Wg== 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 j1-v6si8774452pfb.32.2018.06.29.04.22.19; Fri, 29 Jun 2018 04:22:33 -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 S1755078AbeF2K44 (ORCPT + 99 others); Fri, 29 Jun 2018 06:56:56 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59911 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753841AbeF2Kyk (ORCPT ); Fri, 29 Jun 2018 06:54:40 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 153BF8A85C3C1; Fri, 29 Jun 2018 18:54:37 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.382.0; Fri, 29 Jun 2018 18:51:24 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH net-next 08/10] net: hns3: give default option while dependency HNS3 set Date: Fri, 29 Jun 2018 19:23:03 +0800 Message-ID: <1530271385-49668-9-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> References: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan Give default option for HNS3_HCLGE and HNS3_ENET will be helpful, while dependency HNS3 is set. Meanwhile, use "if HNS3" section instead of all the "depends on HNS3". Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/Kconfig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig index 8bcf470..27edca8 100644 --- a/drivers/net/ethernet/hisilicon/Kconfig +++ b/drivers/net/ethernet/hisilicon/Kconfig @@ -85,10 +85,12 @@ config HNS3 drivers(like ODP)to register with HNAE devices and their associated operations. +if HNS3 + config HNS3_HCLGE tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support" + default m depends on PCI_MSI - depends on HNS3 ---help--- This selects the HNS3_HCLGE network acceleration engine & its hardware compatibility layer. The engine would be used in Hisilicon hip08 family of @@ -97,16 +99,15 @@ config HNS3_HCLGE config HNS3_DCB bool "Hisilicon HNS3 Data Center Bridge Support" default n - depends on HNS3 && HNS3_HCLGE && DCB + depends on HNS3_HCLGE && DCB ---help--- Say Y here if you want to use Data Center Bridging (DCB) in the HNS3 driver. If unsure, say N. config HNS3_HCLGEVF - tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support" - depends on PCI_MSI - depends on HNS3 + tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support" + depends on PCI_MSI depends on HNS3_HCLGE ---help--- This selects the HNS3 VF drivers network acceleration engine & its hardware @@ -115,11 +116,13 @@ config HNS3_HCLGEVF config HNS3_ENET tristate "Hisilicon HNS3 Ethernet Device Support" + default m depends on 64BIT && PCI - depends on 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 #HNS3 + endif # NET_VENDOR_HISILICON -- 1.9.1