From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
Jaehoon Chung <jh80.chung@samsung.com>,
Marek Vasut <marex@denx.de>, Peng Fan <peng.fan@nxp.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Sean Anderson <seanga2@gmail.com>
Subject: Re: [PATCH 13/18] mmc: Add more debugging for SPL
Date: Wed, 4 Sep 2024 12:14:25 -0600 [thread overview]
Message-ID: <20240904181425.GV2479150@bill-the-cat> (raw)
In-Reply-To: <20240828014538.3322013-14-sjg@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 785 bytes --]
On Tue, Aug 27, 2024 at 07:45:32PM -0600, Simon Glass wrote:
> When MMC booting fails it is sometimes hard to figure out what went
> wrong as there is no error code. It isn't even clear which MMC device
> was chosen, since SPL can have its own numbering.
>
> Add some debugging to help with this.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
[snip]
> +#if CONFIG_IS_ENABLED(DM_MMC)
> + log_debug("mmc %d: %s\n", mmc_dev,
> + CONFIG_IS_ENABLED(DM_MMC) ? (*mmcp)->dev->name : "?");
> +#endif
Please rework to clean this up. I'm not sure we can drop the #if here
(as if ->dev->name is invalid in the non-DM_MMC case, compilation will
still fail), but it's silly to have a check for
CONFIG_IS_ENABLED(DM_MMC) inside #if CONFIG_IS_ENABLED(DM_MMC)
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2024-09-04 18:14 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 1:45 [PATCH 00/18] vbe: Series part D Simon Glass
2024-08-28 1:45 ` [PATCH 01/18] sandbox: Add missing header file Simon Glass
2024-08-28 1:45 ` [PATCH 02/18] bootstd: Add stub for bootdev_setup_for_sibling_blk() Simon Glass
2024-08-28 1:45 ` [PATCH 03/18] gzip: Correct function comment for gunzip() Simon Glass
2024-08-28 1:45 ` [PATCH 04/18] fdtdec: Support separate BSS for all XPL builds Simon Glass
2024-08-28 1:45 ` [PATCH 05/18] tiny-printf: Correct return values Simon Glass
2024-08-28 1:45 ` [PATCH 06/18] tpl: Support numbered aliases in device tree Simon Glass
2024-08-28 1:45 ` [PATCH 07/18] ram: Support driver model in TPL Simon Glass
2024-09-04 18:14 ` Tom Rini
2024-08-28 1:45 ` [PATCH 08/18] serial: Support debug UART " Simon Glass
2024-08-28 1:45 ` [PATCH 09/18] armv8: Support not having separate BSS Simon Glass
2024-08-28 1:45 ` [PATCH 10/18] arm: cache: Drop a stale comment Simon Glass
2024-08-28 1:45 ` [PATCH 11/18] arm: Fix up a stale comment in sections.c Simon Glass
2024-08-28 1:45 ` [PATCH 12/18] mmc: Support driver model in TPL Simon Glass
2024-09-04 18:14 ` Tom Rini
2024-08-28 1:45 ` [PATCH 13/18] mmc: Add more debugging for SPL Simon Glass
2024-08-28 3:38 ` Marek Vasut
2024-08-29 14:05 ` Simon Glass
2024-09-04 18:14 ` Tom Rini [this message]
2024-08-28 1:45 ` [PATCH 14/18] mmc: Log the error when init fails Simon Glass
2024-08-28 1:45 ` [PATCH 15/18] mmc: rockchip: Log some error returns Simon Glass
2024-08-28 1:45 ` [PATCH 16/18] mmc: rockchip: Allow clocks to be missing Simon Glass
2024-08-28 1:45 ` [PATCH 17/18] rockchip: mmc: Fix a missing colon Simon Glass
2024-08-29 6:36 ` Sughosh Ganu
2024-08-28 1:45 ` [PATCH 18/18] rockchip: Provided SPL control over efuse presence Simon Glass
2024-08-28 9:59 ` [PATCH 00/18] vbe: Series part D Peter Robinson
2024-08-28 22:16 ` Simon Glass
2024-08-30 0:49 ` Tom Rini
2024-08-30 1:06 ` Simon Glass
2024-08-30 1:46 ` Tom Rini
2024-09-20 7:25 ` Simon Glass
2024-09-20 15:01 ` Tom Rini
2024-09-20 16:04 ` Simon Glass
2024-09-20 16:40 ` Tom Rini
2024-09-25 12:50 ` Simon Glass
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=20240904181425.GV2479150@bill-the-cat \
--to=trini@konsulko.com \
--cc=jh80.chung@samsung.com \
--cc=marex@denx.de \
--cc=peng.fan@nxp.com \
--cc=quentin.schulz@cherry.de \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.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.