summaryrefslogtreecommitdiff
path: root/drivers/ram/starfive/ddrphy_utils.c
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2024-04-19 08:55:39 -0700
committerTom Rini <trini@konsulko.com>2024-04-29 10:55:58 -0600
commite8fc2effdae535766704900f2b9cef64e90c4111 (patch)
tree756661a38bc5fe057658913dfcb5033502dd118b /drivers/ram/starfive/ddrphy_utils.c
parent1e5de690f305ea719ecd906b757b378b412128a3 (diff)
board: phytec: common: Fix eepom is empty check
The ptr variable is currently defined as int and sizeof returns the size of the eeprom data struct as Byte (32 in total). In case the eeprom is empty, the check, if the eeprom is empty, will most likely stop after 8 iterations because it will continue with the stack which should contain some data. Therefore, the init function will detect an empty EEPROM as API0 and return with the valid flag set to True. Fixes: dc22188cdc8 ("board: phytec: Add common PHYTEC SoM detection") Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Reviewed-by: Teresa Remmet <t.remmet@phytec.de>
Diffstat (limited to 'drivers/ram/starfive/ddrphy_utils.c')
0 files changed, 0 insertions, 0 deletions