]> git.dujemihanovic.xyz Git - u-boot.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)
commitbc1de483711c30e32dffdf71574aa878c1087ed0
treed83e5e4dc8692932a7d36185cebedc8ccce300da
parent8b5218e7cb9ff4223f2825c04e45dabccbd15a48
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