[PATCH 06/11] boards: enclustra-sa2: read MAC address from EEPROM

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 23 02:40:03 PDT 2025


On Tue, Sep 23, 2025 at 11:07:39AM +0200, David Picard wrote:
> Hi,
> 
> The driver crashes and causes immediate reset.
> 
> I could track it as far as this line:
> https://git.pengutronix.de/cgit/barebox/tree/drivers/nvmem/core.c#n473
> 
> Boot log and some more details: https://paste.debian.net/1397772/

Seems *i2c_priv is not zeroed. Could you replace the devm_kmalloc() in
atmel_i2c_probe() with devm_kzalloc()?

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list