From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Arnd Bergmann <arnd@arndb.de>, Binbin Zhou <zhoubinbin@loongson.cn>
Cc: "linux-mmc @ vger . kernel . org" <linux-mmc@vger.kernel.org>,
"Ulf Hansson" <ulf.hansson@linaro.org>,
"Heiko Stübner" <heiko@sntech.de>,
linux-kernel@vger.kernel.org,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Victor Shih" <victor.shih@genesyslogic.com.tw>,
"Ben Chuang" <ben.chuang@genesyslogic.com.tw>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Yixun Lan" <dlan@gentoo.org>,
zhoubb.aaron@gmail.com
Subject: Re: [PATCH v3 3/4] mmc: remove COMPILE_TEST from MMC_LOONGSON2
Date: Mon, 15 Sep 2025 10:01:46 +0300 [thread overview]
Message-ID: <aMe52k8wtQBU-eyN@nuoska> (raw)
In-Reply-To: <1f09322b-6bc5-437b-88b5-dec306748d80@loongson.cn> <413a49f5-91f3-4334-9128-29297293f953@app.fastmail.com>
Hi,
On Fri, Sep 12, 2025 at 04:50:38PM +0200, Arnd Bergmann wrote:
> On Fri, Sep 12, 2025, at 16:22, Mikko Rapeli wrote:
> > It fails to link due to undeclared dependency
> > to regmap which is not enabled for COMPILE_TEST:
> >
> > ERROR: modpost: "__devm_regmap_init_mmio_clk"
> > [drivers/mmc/host/loongson2-mmc.ko] undefined!
>
> Nice catch! I assume my normal randconfig builds never
> run into this because there is always something selecting
> REGMAP_MMIO.
>
> > config MMC_LOONGSON2
> > tristate "Loongson-2K SD/SDIO/eMMC Host Interface support"
> > - depends on LOONGARCH || COMPILE_TEST
> > + depends on LOONGARCH
> > depends on HAS_DMA
>
> I would instead add 'select REGMAP_MMIO' here, which is what
> we do for other drivers using this.
On Sat, Sep 13, 2025 at 12:58:00PM +0800, Binbin Zhou wrote:
<snip>
> > --- a/drivers/mmc/host/Kconfig
> > +++ b/drivers/mmc/host/Kconfig
> > @@ -1113,7 +1113,7 @@ config MMC_OWL
> > config MMC_LOONGSON2
> > tristate "Loongson-2K SD/SDIO/eMMC Host Interface support"
> > - depends on LOONGARCH || COMPILE_TEST
> > + depends on LOONGARCH
>
> How about add `select REGMAP_MMIO` instead.
Sorry, my bad. I just checked drivers/base/regmap/Kconfig for COMPILE_TEST
and since it was not found thought that it's not supported with
COMPILE_TEST.
I will add the REGMAP_MMIO dependency instead in v4.
Cheers,
-Mikko
next prev parent reply other threads:[~2025-09-15 7:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250912143036.2844523-1-mikko.rapeli@linaro.org>
[not found] ` <20250912142735.2843958-1-mikko.rapeli@linaro.org>
2025-09-12 14:22 ` [PATCH v3 0/4] enable ROCKCHIP_PM_DOMAINS Mikko Rapeli
2025-09-12 14:22 ` [PATCH v3 1/4] pmdomain: rockchip: enable ROCKCHIP_PM_DOMAINS with ARCH_ROCKCHIP Mikko Rapeli
2025-09-12 14:53 ` Arnd Bergmann
2025-09-12 15:00 ` Heiko Stübner
2025-09-12 14:22 ` [PATCH v3 2/4] mmc: add COMPILE_TEST to multiple drivers Mikko Rapeli
2025-09-12 14:53 ` Arnd Bergmann
2025-09-12 14:22 ` [PATCH v3 3/4] mmc: remove COMPILE_TEST from MMC_LOONGSON2 Mikko Rapeli
2025-09-12 14:50 ` Arnd Bergmann
2025-09-15 7:01 ` Mikko Rapeli [this message]
2025-09-13 4:58 ` Binbin Zhou
2025-09-12 14:22 ` [PATCH v3 4/4] ARM: rockchip: remove REGULATOR conditional to PM Mikko Rapeli
2025-09-12 14:36 ` [PATCH v3 0/4] enable ROCKCHIP_PM_DOMAINS Mikko Rapeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aMe52k8wtQBU-eyN@nuoska \
--to=mikko.rapeli@linaro.org \
--cc=adrian.hunter@intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arnd@arndb.de \
--cc=ben.chuang@genesyslogic.com.tw \
--cc=dlan@gentoo.org \
--cc=geert+renesas@glider.be \
--cc=heiko@sntech.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=victor.shih@genesyslogic.com.tw \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).