[PATCH RFC v5 5/7] ipmi: ls2k: Relax the dependency to its mfd driver
Miao Wang via B4 Relay <[email protected]> Tue, 04 Aug 2026 00:55:53 +0800
| Newsgroups | org.kernel.vger.linux-gpio,dev.linux.lists.mfd,org.kernel.feeds.b4-sent,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Miao Wang <[email protected]> There is no strong dependency between the IPMI driver and its mfd driver. Although the IPMI driver will not work without the mfd driver, it is not a hard dependency. The IPMI driver can actually be compiled without the mfd driver, and it will just fail to probe. When the mfd driver is loaded, the IPMI driver will probe successfully. Therefore, the dependency of the IPMI driver on its mfd driver should be relaxed to "imply" from "select". This will allow the mfd driver to be compiled as a module and the IPMI driver to be compiled as a part of the ipmi_si module. The adjustment to Kconfig for the mfd driver will be introduced in the later patch in this series. Fixes: d46651d4e3c0 ("ipmi: Add Loongson-2K BMC support") Signed-off-by: Miao Wang <[email protected]> --- drivers/char/ipmi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ipmi/Kconfig b/drivers/char/ipmi/Kconfig index 669f7600019747bcd2b37563477cf336f19a0407..f456e3e89416932f0d21bb742153a503aeb24267 100644 --- a/drivers/char/ipmi/Kconfig +++ b/drivers/char/ipmi/Kconfig @@ -87,7 +87,7 @@ config IPMI_IPMB config IPMI_LS2K bool 'Loongson-2K IPMI interface' depends on LOONGARCH - select MFD_LS2K_BMC_CORE + imply MFD_LS2K_BMC_CORE help Provides a driver for Loongson-2K IPMI interfaces. -- 2.49.0