[PATCH v2] i2c: mux: Fix the crash when the i2c-arbitrator node is present

Tom Rini trini at konsulko.com
Tue Jun 24 16:18:14 CEST 2025


On Mon, 23 Jun 2025 13:36:07 +0530, Venkatesh Yadav Abbarapu wrote:

> Observing the crash when we add the i2c-arbitrator node in the device
> tree as per the DT bindings. The issue is with the child node of
> i2c-arbitrator at 72 i.e., i2c at f1950000->i2c-arbitrator at 72->i2c-arb, as the
> arbitrator uses the uclass of mux(UCLASS_I2C_MUX) and the mux uclass driver
> checks for the "reg" property using the i2c_mux_child_post_bind() function,
> if it won't find the "reg" property it will return -EINVAL which is leading
> to the crash.
> So, add the logic to check whether the  child node has the "reg" property,
> if the "reg" property exists then read the "reg" and update the channel.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] i2c: mux: Fix the crash when the i2c-arbitrator node is present
      commit: 903eb123236ccbd8ef05d43507a2a910b785bd56
-- 
Tom




More information about the U-Boot mailing list