RDMA/bnxt_re: Depend on bnxt ethernet driver and not blindly select it
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 1 Apr 2021 06:57:11 +0000 (09:57 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 19 Apr 2021 17:57:03 +0000 (14:57 -0300)
commitae9884829c48528ae43b963bddd8856505fcfef1
tree3a87fb94e260839758d792b05712b7f6f3266b2c
parent338a010cb616b6b257bd7fe615bd4a87ca575c3a
RDMA/bnxt_re: Depend on bnxt ethernet driver and not blindly select it

The "select" kconfig keyword provides reverse dependency, however it
doesn't check that selected symbol meets its own dependencies. Usually
"select" is used for non-visible symbols, so instead of trying to keep
dependencies in sync with BNXT ethernet driver, simply "depends on" it,
like Kconfig documentation suggest.

* CONFIG_PCI is already required by BNXT
* CONFIG_NETDEVICES and CONFIG_ETHERNET are needed to chose BNXT

Link: https://lore.kernel.org/r/20210401065715.565226-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-By: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/Kconfig