From: Tom Rini <trini@konsulko.com>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>,
u-boot@lists.denx.de, Dmitrii Merkurev <dimorinny@google.com>
Subject: Re: [PATCH RFT v4 2/3] fastboot: blk: switch emmc to use the block helpers
Date: Thu, 22 May 2025 08:35:12 -0600 [thread overview]
Message-ID: <20250522143512.GI100073@bill-the-cat> (raw)
In-Reply-To: <20250522-topic-fastboot-blk-v4-2-af7f7f30564d@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]
On Thu, May 22, 2025 at 02:37:06PM +0200, Neil Armstrong wrote:
> From: Dmitrii Merkurev <dimorinny@google.com>
>
> Switch the mmc backend to this new shared block helpers,
> reducing block logic and only leaving MMC specific logic.
>
> Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
> Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> drivers/fastboot/Kconfig | 4 +-
> drivers/fastboot/Makefile | 3 +-
> drivers/fastboot/fb_mmc.c | 210 +++-------------------------------------------
> 3 files changed, 16 insertions(+), 201 deletions(-)
>
> diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig
> index 70207573de2bd0d56b4b7fa6f7e17fdc5803ba15..33825ee408fbd9aff26cd390a140421c7c98ecc3 100644
> --- a/drivers/fastboot/Kconfig
> +++ b/drivers/fastboot/Kconfig
> @@ -91,7 +91,7 @@ config FASTBOOT_USB_DEV
> config FASTBOOT_FLASH
> bool "Enable FASTBOOT FLASH command"
> default y if ARCH_SUNXI || ARCH_ROCKCHIP
> - depends on MMC || (MTD_RAW_NAND && CMD_MTDPARTS)
> + depends on MMC || (MTD_RAW_NAND && CMD_MTDPARTS) || BLK
> select IMAGE_SPARSE
> help
> The fastboot protocol includes a "flash" command for writing
> @@ -113,7 +113,7 @@ choice
>
> config FASTBOOT_FLASH_MMC
> bool "FASTBOOT on MMC"
> - depends on MMC
> + depends on MMC && BLK
>
> config FASTBOOT_FLASH_NAND
> bool "FASTBOOT on NAND"
OK, this logic is odd. For a little while now at least, MMC select's
BLK. So neither of these are needed. And I bet the first hunk is what
causes the issue of some platform getting stuck at a prompt when
configuring in CI because it enabled FASTBOOT, enables BLK, but did not
enable FASTBOOT_FLASH before now.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2025-05-22 14:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 12:37 [PATCH RFT v4 0/3] fastboot: add support for generic block flashing Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 1/3] fastboot: blk: introduce fastboot block flashing support Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 2/3] fastboot: blk: switch emmc to use the block helpers Neil Armstrong
2025-05-22 14:35 ` Tom Rini [this message]
2025-06-05 8:14 ` Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 3/3] fastboot: integrate block flashing back-end Neil Armstrong
2025-05-22 14:39 ` Tom Rini
2025-06-05 8:16 ` Neil Armstrong
2025-06-05 14:21 ` Tom Rini
2025-06-05 17:48 ` Neil Armstrong
2025-06-06 7:22 ` Mattijs Korpershoek
2025-06-06 9:23 ` Neil Armstrong
2025-06-06 14:25 ` 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=20250522143512.GI100073@bill-the-cat \
--to=trini@konsulko.com \
--cc=dimorinny@google.com \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--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 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.