Skip to content
Commit dd83c1c8 authored by Prasanth Babu Mantena's avatar Prasanth Babu Mantena Committed by Tom Rini
Browse files

board: ti: common: board_detect: Fix EEPROM offset read for 1-byte



EEPROM detection logic in ti_i2c_eeprom_get() involves reading
the total size and the 1-byte size with an offset 1. The commit
9f393a2d ("board: ti: common: board_detect: Fix EEPROM read
quirk for 2-byte") that attempts to fix this uses a wrong pointer to
compare.

The value with one offset is read into offset_test, but the pointer
used to match was still ep, resulting in an invalid comparison of the
values. The intent is to identify bad 2-byte addressing eeproms that
get stuck on the successive reads.

Fixes: 9f393a2d (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte)
Signed-off-by: default avatarPrasanth Babu Mantena <p-mantena@ti.com>
Tested-by: default avatarMatwey V. Kornilov <matwey.kornilov@gmail.com>
Reviewed-by: default avatarNeha Malcom Francis <n-francis@ti.com>
parent 15e7927b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment