From: Quentin Schulz via U-Boot <u-boot@lists.u-boot-project.org>
To: Fabio Estevam <festevam@gmail.com>
Cc: trini@konsulko.com, sjg@chromium.org, kever.yang@rock-chips.com,
u-boot@lists.u-boot-project.org,
Fabio Estevam <festevam@nabladev.com>
Subject: Re: [PATCH v4 3/4] rockchip: rk3399: Add ROC-PC-PLUS board detection
Date: Thu, 13 Aug 2026 10:05:13 +0200 [thread overview]
Message-ID: <665c81ce-ab08-45e2-8f94-453caa321d3f@0leil.net> (raw)
In-Reply-To: <CAOMZO5DHz4z+VmfjRyTxPsepXC7kFMPr+29F1yD-CZ5miwCUXg@mail.gmail.com>
Hi Fabio,
On 8/12/26 11:48 PM, Fabio Estevam wrote:
> Hi Quentin,
>
> On Wed, Aug 12, 2026 at 5:05 AM Quentin Schulz <u-boot@0leil.net> wrote:
>
>> It should be !CONFIG_IS_ENABLED(DM_I2C) as CONFIG_IS_ENABLED is going to
>> add the appropriate prefix based on the current stage being built (so
>> definitely no SPL/TPL/VPL to be added manually) and CONFIG_SPL_I2C is
>> not enough to build the dm_i2c_probe implementation, we need
>> CONFIG_SPL_DM_I2C (well, and CONFIG_SPL_I2C because otherwise the
>> drivers/i2c directory isn't traversed and because SPL_DM_I2C is missing
>> a dependency on it).
>
> I tested !CONFIG_IS_ENABLED(DM_I2C) alone, but the mezzanine SPL still
> fails to link because SPL_DM_I2C is enabled while SPL_I2C is not.
>
Yes, because SPL_DM_I2C (and TPL_DM_I2C) do not depend on
SPL_I2C/TPL_I2C but should. Something else to fix :)
> Checking both works:
>
> if (!(CONFIG_IS_ENABLED(I2C) && CONFIG_IS_ENABLED(DM_I2C)))
> return false;
>
> I tested the mezzanine build successfully with this change.
>
> I'll use this in v5 unless you see an issue.
>
Works for me!
Cheers,
Quentin
next prev parent reply other threads:[~2026-08-13 8:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 19:46 [PATCH v4 1/4] mtd: spi-nor-ids: Add XMC XM25QH128C Fabio Estevam via U-Boot
2026-07-22 19:46 ` [PATCH v4 2/4] rockchip: rk3399: Remove ROC-PC regulator overrides Fabio Estevam via U-Boot
2026-07-22 19:46 ` [PATCH v4 3/4] rockchip: rk3399: Add ROC-PC-PLUS board detection Fabio Estevam via U-Boot
2026-07-23 10:49 ` Quentin Schulz
2026-08-11 11:55 ` Quentin Schulz via U-Boot
2026-08-11 23:01 ` Fabio Estevam
2026-08-12 8:04 ` Quentin Schulz via U-Boot
2026-08-12 21:48 ` Fabio Estevam
2026-08-13 8:05 ` Quentin Schulz via U-Boot [this message]
2026-07-22 19:46 ` [PATCH v4 4/4] rockchip: roc-pc-rk3399: Enable redundant environment Fabio Estevam via U-Boot
2026-07-23 10:50 ` Quentin Schulz
2026-07-29 8:59 ` [PATCH v4 1/4] mtd: spi-nor-ids: Add XMC XM25QH128C Takahiro.Kuwano
2026-07-30 14:26 ` Quentin Schulz via U-Boot
[not found] ` <CAOMZO5AUHUEXvM+39N8oybY_W-+cRZAw0BDENGH1e6kB3PTbfw@mail.gmail.com>
2026-07-31 3:47 ` Takahiro.Kuwano
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=665c81ce-ab08-45e2-8f94-453caa321d3f@0leil.net \
--to=u-boot@lists.u-boot-project.org \
--cc=festevam@gmail.com \
--cc=festevam@nabladev.com \
--cc=kever.yang@rock-chips.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@0leil.net \
/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