669a0d6f5b
The default priority for I2C controller initialization is POST_KERNEL 60 (SPI 70), while the default priority for device configuration is POST_KERNEL 50. Thus the EEPROM is being initialized before its controller. While for this driver that wouldn't be an issue recent changes mean the device lookup returns NULL before the device is initialized. Change the AT2X priority to 75 so it falls between the I2C and SPI drivers and the default ethernet priority (80), since some ethernet controllers may store the MAC address in EEPROM. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.lpc11u6x | ||
Kconfig.stm32 | ||
eeprom_at2x.c | ||
eeprom_handlers.c | ||
eeprom_lpc11u6x.c | ||
eeprom_shell.c | ||
eeprom_simulator.c | ||
eeprom_stm32.c |