Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3611248imm; Mon, 2 Jul 2018 02:14:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBEuZciZ4zBR249CFUYucLIAwPCRGkH3n/e9QRmDD82o0v5JAnQWpoMrUBbncPWupc6Ge+ X-Received: by 2002:a65:62c7:: with SMTP id m7-v6mr20691097pgv.286.1530522844383; Mon, 02 Jul 2018 02:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530522844; cv=none; d=google.com; s=arc-20160816; b=n0/qtRzHgOB8WZFWn4ztLyBTqDhbsBKK0NNq1bAC1iJ+y7drdd3oaDGZCbk8HvIbiD kVxEdhprSOSAvtOhKFxDzQNHyX9vDWK2hZYI7gN7tkuG3dldL/63cJsJmQEICeyvvzVi u4A+N/fMIAI9kWKReeNV/30La8gahnrfoZPhBAAPPJFXgN+o8RWYC3r2rqocYc7lEWQz 7PM4WCTy4WXV+PWgc4bbSEFdrlKpuGP+wGSfsOnL4hWoEm1aeL1qjOkhG4i1GYum0Z55 S3LYKCRhzoTjoDFcKCXgbnTb5LQQ+fqOwDp2gylgCjRYCpn4LOQRvpf37KvXVKsuSQbI Autg== 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=uDiOpeu4Yi8++W+U547N2waq+yBAqoqbadh11jhclMrJ0U8HJuzGP7nglqK+MprwiW TORUUwWK2X5NBUOVMBi9Ni15URwNNQ1ZY4q8dV0l+ag8N4KPDaFJTc0d4AquJdR6hM7x +2VqjvinBUYKR3AAFwaAIDHULdKkyGeNcfUKDKxV5T/vdfw4hy7iBu92x/0zr+SjBueF nt6m8Hn6n1uS6m/pBqMUCong9m5cBNk21ZHEy+4em5BDm/0jB6CutIW/4+LuU1w6+ssL EFMt9Z+10KzL0RX5TTHoQbKpHZ7Gdl6PQN3ctimvooGxsO9ke1F4BH3M1M2cY9KXRd6Y VLHQ== 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 67-v6si15808033pfe.49.2018.07.02.02.13.36; Mon, 02 Jul 2018 02:14: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 S933039AbeGBHT1 (ORCPT + 99 others); Mon, 2 Jul 2018 03:19:27 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9149 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753566AbeGBHTO (ORCPT ); Mon, 2 Jul 2018 03:19:14 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 92FDE1FCDEC40; Mon, 2 Jul 2018 15:18:57 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.382.0; Mon, 2 Jul 2018 15:18:51 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH V2 net-next 7/9] net: hns3: give default option while dependency HNS3 set Date: Mon, 2 Jul 2018 15:50:24 +0800 Message-ID: <1530517826-69226-8-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530517826-69226-1-git-send-email-lipeng321@huawei.com> References: <1530517826-69226-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