Skip to content
Commit 669a0d6f authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

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: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 039e3edc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment