]> git.baikalelectronics.ru Git - uboot.git/commit
board: ti: common: Handle the legacy eeprom address width properly
authorNishanth Menon <nm@ti.com>
Fri, 17 Jun 2022 18:26:11 +0000 (13:26 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:30:08 +0000 (14:30 -0400)
commita4c7f7373adfeda3add7d802cb8ee49427168fcd
treed83e5e4dc8692932a7d36185cebedc8ccce300da
parent697eafa3e998a5703e8dfee7b3904712dfd8213a
board: ti: common: Handle the legacy eeprom address width properly

Due to supply chain issues, we are starting to see a mixture of eeprom
usage including the smaller 7-bit addressing eeproms such as 24c04
used for eeproms.

These eeproms don't respond well to 2 byte addressing and fail the
read operation. We do have a check to ensure that we are reading the
alternate addressing size, however the valid failure prevents us
from checking at 1 byte anymore.

Rectify the same by falling through and depend on header data comparison
to ensure that we have valid data.

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