On Thu, 15 Oct 2026 10:47:05 +0200, Aksel Lunde Aase wrote:

> With CONFIG_I2C_EEPROM enabled, passing both bus and address to the
> eeprom command causes a data abort:
> 
>     eeprom write 0 52 ${loadaddr} 0 1000
> 
> This is due to the eeprom_dev_spec in do_eeprom() being partially
> uninitialized. When given a bus and address, parse_eeprom_dev_spec()
> sets i2c_bus and i2c_addr but never assigns dev->dev.
> eeprom_dev_spec_write() then sees a non-NULL dev->dev and calls
> i2c_eeprom_write() with a garbage udevice pointer. Reads are affected
> the same way.
> 
> [...]

Applied to u-boot/main, thanks!

[1/1] cmd: eeprom: Zero-initialize eeprom_dev_spec
      commit: d11e0b30ec96a1307e6238f28a1252d715e1e896
-- 
Tom


Reply via email to