board: ti: common: Optimize boot when detecting consecutive bad records
authorNishanth Menon <nm@ti.com>
Fri, 17 Jun 2022 18:26:10 +0000 (13:26 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:30:08 +0000 (14:30 -0400)
commit8b5218e7cb9ff4223f2825c04e45dabccbd15a48
tree1cd20747720c59483ab934bfc391ff1e8197ab86
parente4b4501edede200df526dd06af0fdbecf836f2ef
board: ti: common: Optimize boot when detecting consecutive bad records

The eeprom data area is much bigger than the data we intend to store,
however, with bad programming, we might end up reading bad records over
and over till we run out of eeprom space. instead just exit when 10
consecutive records are read.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/common/board_detect.c