zephyr/drivers/eeprom
Peter Bigot 669a0d6f5b drivers: eeprom: reduce priority of at2x initialization
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>
2020-09-02 15:27:57 -04:00
..
CMakeLists.txt drivers: eeprom: add driver for NXP LPC11U6X 2020-07-29 20:12:24 +02:00
Kconfig drivers: eeprom: reduce priority of at2x initialization 2020-09-02 15:27:57 -04:00
Kconfig.lpc11u6x drivers: eeprom: add driver for NXP LPC11U6X 2020-07-29 20:12:24 +02:00
Kconfig.stm32
eeprom_at2x.c drivers: eeprom: reduce priority of at2x initialization 2020-09-02 15:27:57 -04:00
eeprom_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom_lpc11u6x.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom_shell.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom_simulator.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom_stm32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00