]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-pic32: allow driver to be compiled with COMPILE_TEST
authorBrian Masney <bmasney@redhat.com>
Sun, 22 Feb 2026 23:39:14 +0000 (18:39 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Feb 2026 09:32:47 +0000 (10:32 +0100)
This driver currently only supports builds against a PIC32 target. Now
that commit d6618d277c1a ("mmc: sdhci-pic32: update include to use
pic32.h from platform_data") is merged, it's possible to compile this
driver on other architectures.

To avoid future breakage of this driver in the future, let's update the
Kconfig so that it can be built with COMPILE_TEST enabled on all
architectures.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig

index b37e6e014416ad4917c07b94db703379c398bba1..4f060d3e56365368210af42988125e839ca2b730 100644 (file)
@@ -1058,7 +1058,7 @@ config MMC_MTK
 
 config MMC_SDHCI_MICROCHIP_PIC32
        tristate "Microchip PIC32MZDA SDHCI support"
-       depends on MMC_SDHCI && PIC32MZDA && MMC_SDHCI_PLTFM
+       depends on MMC_SDHCI && MMC_SDHCI_PLTFM && (PIC32MZDA || COMPILE_TEST)
        help
          This selects the Secure Digital Host Controller Interface (SDHCI)
          for PIC32MZDA platform.