u-boot/drivers/i2c/muxes
Venkatesh Yadav Abbarapu 903eb12323 i2c: mux: Fix the crash when the i2c-arbitrator node is present
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@72 i.e., i2c@f1950000->i2c-arbitrator@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.

https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-arb.txt

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2025-06-24 08:18:08 -06:00
..
i2c-arb-gpio-challenge.c i2c: mux: Fix error path in i2c-arb-gpio 2024-08-09 14:46:05 +02:00
i2c-mux-gpio.c drivers: i2c: Remove duplicate newlines 2024-07-22 10:53:05 -06:00
i2c-mux-uclass.c i2c: mux: Fix the crash when the i2c-arbitrator node is present 2025-06-24 08:18:08 -06:00
Kconfig i2c: muxes: pca954x: Add MAX735x/MAX736x support 2024-10-21 06:32:28 +02:00
Makefile Link failure with CONFIG_SPL and CONFIG_I2C_MUX_PCA954x 2020-08-25 06:25:42 +02:00
pca954x.c i2c: muxes: pca954x: Add MAX735x/MAX736x support 2024-10-21 06:32:28 +02:00