From: Quentin Schulz <quentin.schulz@cherry.de>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Subject: Re: [PATCH 4/6] blk: Make block subsystems select BLK
Date: Tue, 14 Jan 2025 14:45:25 +0100 [thread overview]
Message-ID: <9fbdbdbc-6708-443f-95a8-e04ee67dbd5e@cherry.de> (raw)
In-Reply-To: <20241220222612.1757884-5-trini@konsulko.com>
Hi Tom,
On 12/20/24 11:22 PM, Tom Rini wrote:
> The BLK symbol has a few meanings, one of which is that it controls the
> driver model portion of a "block device". Rather than having this hidden
> symbol be "default y if ..." it should be select'd by the various block
> subsystems.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> drivers/ata/Kconfig | 2 ++
> drivers/block/Kconfig | 7 +++----
> drivers/mmc/Kconfig | 1 +
> drivers/nvme/Kconfig | 1 +
> drivers/scsi/Kconfig | 1 +
> drivers/usb/Kconfig | 1 +
> drivers/virtio/Kconfig | 1 +
> 7 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
> index 4fbb63a148ac..29ceab849c02 100644
> --- a/drivers/ata/Kconfig
> +++ b/drivers/ata/Kconfig
> @@ -1,6 +1,7 @@
> config AHCI
> bool "Support SATA controllers with driver model"
> depends on DM
> + select BLK
> help
> This enables a uclass for disk controllers in U-Boot. Various driver
> types can use this, such as AHCI/SATA. It does not provide any standard
> @@ -9,6 +10,7 @@ config AHCI
>
> config SATA
> bool "Support SATA controllers"
> + select BLK
> help
> This enables support for SATA (Serial Advanced Technology
> Attachment), a serial bus standard for connecting to hard drives and
> diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
> index 5283d8981e09..cc75bad02b8c 100644
> --- a/drivers/block/Kconfig
> +++ b/drivers/block/Kconfig
> @@ -1,8 +1,5 @@
> config BLK
> - bool # "Support block devices"
> - depends on DM
> - def_bool y if MMC || USB || SCSI || NVME || IDE || AHCI || SATA
> - def_bool y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK
I believe you missed adding a select BLK for the PVBLOCK symbol?
Looks good to me otherwise, I was actually confused as to why we used
def_bool instead of select (see what it prompted in my comment for patch
1 :) ).
Cheers,
Quentin
next prev parent reply other threads:[~2025-01-14 13:45 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
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 [this message]
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=9fbdbdbc-6708-443f-95a8-e04ee67dbd5e@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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