Create sub-menus for bus drivers and remove artificial dependencies between vfio-pci and vfio-platform and other variant drivers like vfio-amba, mlx5-vfio-pci, or hisi-acc-vfio-pci. This is an alternative proposal vs [1], which attempts to make the vfio-pci-core module individually selectable, even without built dependencies, in order to avoid the select per variant module. The solution presented here is my preference, I don't see the select as overly burdensome or error prone, we have very good randconfig test coverage, and I prefer to not allow building module which have no in-kernel requirements. Thanks, Alex v3: Move the depends line up to the menu level for fsl Kconfig as discussed with Cedric in v2. Add R-bs. v2: Move dependencies from config VFIO_PLATFORM to menu, make existing platform reset drivers depend on VFIO_PLATFORM. Add R-bs. [1]https://lore.kernel.org/all/0-v1-7eacf832787f+86-vfio_pci_kconfig_jgg@xxxxxxxxxx/ Alex Williamson (3): vfio/pci: Cleanup Kconfig vfio/platform: Cleanup Kconfig vfio/fsl: Create Kconfig sub-menu drivers/vfio/Makefile | 4 ++-- drivers/vfio/fsl-mc/Kconfig | 6 +++++- drivers/vfio/pci/Kconfig | 8 ++++++-- drivers/vfio/pci/hisilicon/Kconfig | 4 ++-- drivers/vfio/pci/mlx5/Kconfig | 2 +- drivers/vfio/platform/Kconfig | 18 ++++++++++++++---- drivers/vfio/platform/Makefile | 9 +++------ drivers/vfio/platform/reset/Kconfig | 2 ++ 8 files changed, 35 insertions(+), 18 deletions(-) -- 2.39.2