Hi Simon,

On 7/13/2026 4:28 PM, Simon Glass wrote:
> Hi Jonas,
> 
> On 2026-07-08T22:05:26, Jonas Karlman <[email protected]> wrote:
>> Kconfig: i2c: Depend on correct xPL symbol
>>
>> Change to depend on the xPL symbol instead of the SUPPORT_xPL symbol to
>> only make the xPL_SYS_I2C_LEGACY symbols available when xPL is enabled.
>>
>> Signed-off-by: Jonas Karlman <[email protected]>
>>
>> drivers/i2c/Kconfig | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
>> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
>> @@ -78,14 +78,14 @@ config SYS_I2C_LEGACY
>>  config TPL_SYS_I2C_LEGACY
>>       bool "Enable legacy I2C subsystem and drivers in TPL"
>> -     depends on SUPPORT_TPL && !SPL_DM_I2C
>> +     depends on TPL && !TPL_DM_I2C
> 
> This also changes !SPL_DM_I2C to !TPL_DM_I2C, which fixes what looks
> like a copy-paste error, similar to the DM_SERIAL fix in the next
> patch. Please can you mention this in the commit message too? I
> checked the boards that enable TPL_SYS_I2C_LEGACY (the mpc85xx
> P1010RDB / P1020RDB / P2020RDB NAND configs) and none enables SPL_DM
> or TPL_DM, so there should no functional change, but it is worth
> recording that this dependency is also being corrected.

Sure and great, I will update commit message in v2.

> 
> With that (assuming you figure out what Tom raised):

It looked like SYS_I2C_EARLY_INIT is the culprit for size change.

See [1] for my findings, and I am still not sure if we can live without
the call to i2c_early_init_f() for the handful of possible affected
boards.

My gut feeling, without knowing anything about the affected platform,
says we should accept the dropped call to i2c_early_init_f() ;-)

[1] 
https://lore.kernel.org/u-boot/[email protected]/

Regards,
Jonas

> 
> Reviewed-by: Simon Glass <[email protected]>
> 
> Regards,
> Simon

Reply via email to