]> www.infradead.org Git - linux.git/commitdiff
RDMA/hns: Clean up the legacy CONFIG_INFINIBAND_HNS
authorJunxian Huang <huangjunxian6@hisilicon.com>
Mon, 6 Jan 2025 11:12:11 +0000 (19:12 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 6 Jan 2025 13:41:06 +0000 (08:41 -0500)
hns driver used to support hip06 and hip08 devices with
CONFIG_INFINIBAND_HNS_HIP06 and CONFIG_INFINIBAND_HNS_HIP08
respectively, which both depended on CONFIG_INFINIBAND_HNS.

But we no longer provide support for hip06 and only support
hip08 and higher since the commit in fixes line, so there is
no need to have CONFIG_INFINIBAND_HNS any more. Remove it and
only keep CONFIG_INFINIBAND_HNS_HIP08.

Fixes: 38d220882426 ("RDMA/hns: Remove support for HIP06")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20250106111211.3945051-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/Makefile
drivers/infiniband/hw/hns/Kconfig
drivers/infiniband/hw/hns/Makefile

index 1211f4317a9f4fdab32278e2000c1b2b392e64d5..aba96ca9bce5df4d93201d6434f9c1728a8743ff 100644 (file)
@@ -11,7 +11,7 @@ obj-$(CONFIG_INFINIBAND_OCRDMA)               += ocrdma/
 obj-$(CONFIG_INFINIBAND_VMWARE_PVRDMA) += vmw_pvrdma/
 obj-$(CONFIG_INFINIBAND_USNIC)         += usnic/
 obj-$(CONFIG_INFINIBAND_HFI1)          += hfi1/
-obj-$(CONFIG_INFINIBAND_HNS)           += hns/
+obj-$(CONFIG_INFINIBAND_HNS_HIP08)     += hns/
 obj-$(CONFIG_INFINIBAND_QEDR)          += qedr/
 obj-$(CONFIG_INFINIBAND_BNXT_RE)       += bnxt_re/
 obj-$(CONFIG_INFINIBAND_ERDMA)         += erdma/
index ab3fbba70789ca741183b7023c14dfb052a097c7..44cdb706fe276db45064eaf446f0635ac1a25530 100644 (file)
@@ -1,21 +1,11 @@
 # SPDX-License-Identifier: GPL-2.0-only
-config INFINIBAND_HNS
-       tristate "HNS RoCE Driver"
-       depends on NET_VENDOR_HISILICON
-       depends on ARM64 || (COMPILE_TEST && 64BIT)
-       depends on (HNS_DSAF && HNS_ENET) || HNS3
-       help
-         This is a RoCE/RDMA driver for the Hisilicon RoCE engine.
-
-         To compile HIP08 driver as module, choose M here.
-
 config INFINIBAND_HNS_HIP08
-       bool "Hisilicon Hip08 Family RoCE support"
-       depends on INFINIBAND_HNS && PCI && HNS3
-       depends on INFINIBAND_HNS=m || HNS3=y
+       tristate "Hisilicon Hip08 Family RoCE support"
+       depends on ARM64 || (COMPILE_TEST && 64BIT)
+       depends on PCI && HNS3
        help
          RoCE driver support for Hisilicon RoCE engine in Hisilicon Hip08 SoC.
          The RoCE engine is a PCI device.
 
-         To compile this driver, choose Y here: if INFINIBAND_HNS is m, this
-         module will be called hns-roce-hw-v2.
+         To compile this driver, choose M here. This module will be called
+         hns-roce-hw-v2.
index be1e1cdbcfa8a82ea206ec4ca6d96e1c3924a89d..7917af8e6380e8226ed78d4b84c71b33c0f4980a 100644 (file)
@@ -5,12 +5,9 @@
 
 ccflags-y :=  -I $(srctree)/drivers/net/ethernet/hisilicon/hns3
 
-hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \
+hns-roce-hw-v2-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \
        hns_roce_ah.o hns_roce_hem.o hns_roce_mr.o hns_roce_qp.o \
        hns_roce_cq.o hns_roce_alloc.o hns_roce_db.o hns_roce_srq.o hns_roce_restrack.o \
-       hns_roce_debugfs.o
+       hns_roce_debugfs.o hns_roce_hw_v2.o
 
-ifdef CONFIG_INFINIBAND_HNS_HIP08
-hns-roce-hw-v2-objs := hns_roce_hw_v2.o $(hns-roce-objs)
-obj-$(CONFIG_INFINIBAND_HNS) += hns-roce-hw-v2.o
-endif
+obj-$(CONFIG_INFINIBAND_HNS_HIP08) += hns-roce-hw-v2.o