From: Tom Rini <trini@konsulko.com>
To: Quentin Schulz <quentin.schulz@cherry.de>
Cc: u-boot@lists.denx.de, "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Fabio Estevam <festevam@gmail.com>,
Minkyu Kang <mk7.kang@samsung.com>,
Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,
Stefano Babic <sbabic@denx.de>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Thierry Reding <treding@nvidia.com>
Subject: Re: [PATCH 2/6] drivers/mmc/Kconfig: Make DM_MMC a hidden symbol
Date: Tue, 14 Jan 2025 10:58:46 -0600 [thread overview]
Message-ID: <20250114165846.GL3476@bill-the-cat> (raw)
In-Reply-To: <975a6b12-f401-4909-9163-20b7f1d6d542@cherry.de>
[-- Attachment #1: Type: text/plain, Size: 1928 bytes --]
On Tue, Jan 14, 2025 at 02:43:44PM +0100, Quentin Schulz wrote:
> Hi Tom,
>
> On 12/20/24 11:22 PM, Tom Rini wrote:
> > At this point in time, DM is always enabled. So if MMC is enabled, it
> > should select DM_MMC. No drivers need to depend on DM_MMC being enabled
> > now, so remove that from dependency lists. This now means that a number
> > of platforms which select'd DM_MMC need to select MMC instead.
> >
> > Signed-off-by: Tom Rini <trini@konsulko.com>
[snip]
> > @@ -1211,7 +1210,6 @@ config ARCH_U8500
> > select CPU_V7A
> > select DM
>
> I guess this can be removed in may places since it defaults to y and we are
> relying on it being set to y?
Yes, a clean-up to remove "select DM" would be good. This dates back to
before everyone was converted.
> [...]
>
> > diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
> > index 9f2fecce3826..46513db0d6e3 100644
> > --- a/drivers/mmc/Kconfig
> > +++ b/drivers/mmc/Kconfig
> > @@ -3,7 +3,7 @@ menu "MMC Host controller Support"
> > config MMC
> > bool "MMC/SD/SDIO card support"
> > default ARM || PPC || SANDBOX
> > - select DM_MMC if DM
> > + select DM_MMC
> > help
> > This selects MultiMediaCard, Secure Digital and Secure
> > Digital I/O support.
> > @@ -39,14 +39,14 @@ config MMC_BROKEN_CD
> > If card detection feature is broken, just poll to detect.
> > config DM_MMC
> > - bool "Enable MMC controllers using Driver Model"
> > + bool
> > depends on DM
>
> We can probably remove this depends on as well since DM is implied?
Correct.
> Generally, I'm wondering why we are even keeping this symbol and not merging
> MMC and DM_MMC together? This is not a blocker for this change though, we
> can go babysteps :)
What makes merging MMC and DM_MMC somewhat tricky is that DM is not
required in SPL/TPL. So yeah, small steps here is the way forward.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2025-01-14 16:58 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-20 22:22 [PATCH 0/6] Rework the BLK symbol usage in Kconfig Tom Rini
2024-12-20 22:22 ` [PATCH 1/6] drivers/mmc/Kconfig: Remove extraneous BLK dependencies Tom Rini
2024-12-22 23:49 ` Jaehoon Chung
2025-01-14 13:25 ` Quentin Schulz
2025-01-14 16:58 ` Tom Rini
2024-12-20 22:22 ` [PATCH 2/6] drivers/mmc/Kconfig: Make DM_MMC a hidden symbol Tom Rini
2024-12-23 18:26 ` Peter Robinson
2025-01-14 13:43 ` Quentin Schulz
2025-01-14 16:58 ` Tom Rini [this message]
2024-12-20 22:22 ` [PATCH 3/6] efi_loader: Depend on BLK Tom Rini
2024-12-20 22:50 ` Heinrich Schuchardt
2024-12-20 22:22 ` [PATCH 4/6] blk: Make block subsystems select BLK Tom Rini
2024-12-23 18:31 ` Peter Robinson
2024-12-23 18:53 ` Tom Rini
2025-01-14 13:45 ` Quentin Schulz
2025-01-14 16:58 ` Tom Rini
2025-01-15 17:38 ` Quentin Schulz
2024-12-20 22:22 ` [PATCH 5/6] mtd: Correct dependency of BLK Tom Rini
2024-12-23 18:27 ` Peter Robinson
2025-01-14 13:46 ` Quentin Schulz
2024-12-20 22:22 ` [PATCH 6/6] block: Remove "select BLK" from non-block drivers Tom Rini
2024-12-23 18:26 ` Peter Robinson
2025-01-14 13:53 ` Quentin Schulz
2025-01-14 16:59 ` Tom Rini
2025-01-15 17:49 ` Quentin Schulz
2025-01-15 20:20 ` Tom Rini
2025-01-16 9:21 ` Quentin Schulz
2025-01-16 14:33 ` Tom Rini
2025-01-15 1:22 ` [PATCHv2 0/6] Rework the BLK symbol usage in Kconfig Tom Rini
2025-01-15 1:22 ` [PATCHv2 1/6] drivers/mmc/Kconfig: Remove extraneous BLK dependencies Tom Rini
2025-01-15 1:22 ` [PATCHv2 2/6] drivers/mmc/Kconfig: Make DM_MMC a hidden symbol Tom Rini
2025-01-15 1:22 ` [PATCHv2 3/6] efi_loader: Depend on BLK Tom Rini
2025-01-15 1:22 ` [PATCHv2 4/6] blk: Make block subsystems select BLK Tom Rini
2025-01-15 17:51 ` Quentin Schulz
2025-01-15 18:28 ` Tom Rini
2025-01-15 1:22 ` [PATCHv2 5/6] mtd: Correct dependency of BLK Tom Rini
2025-01-15 1:22 ` [PATCHv2 6/6] block: Remove "select BLK" from non-block drivers Tom Rini
2025-01-21 4:49 ` [PATCHv2 0/6] Rework the BLK symbol usage in Kconfig Tom Rini
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=20250114165846.GL3476@bill-the-cat \
--to=trini@konsulko.com \
--cc=clamor95@gmail.com \
--cc=festevam@gmail.com \
--cc=mk7.kang@samsung.com \
--cc=quentin.schulz@cherry.de \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=sbabic@denx.de \
--cc=treding@nvidia.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.