diff options
| author | Prasanth Babu Mantena <[email protected]> | 2023-10-30 22:34:58 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-01-24 11:12:04 -0500 |
| commit | dd83c1c865f5bd94efae10d4a8e519ad08c8486b (patch) | |
| tree | 08b7ac18dd297bfb67ff79c0d7019a9e878e18c7 /include | |
| parent | 15e7927b5a2d33666af19879577bf0c30ab088fe (diff) | |
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
9f393a2d7af8 ("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: 9f393a2d7af8 (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte)
Signed-off-by: Prasanth Babu Mantena <[email protected]>
Tested-by: Matwey V. Kornilov <[email protected]>
Reviewed-by: Neha Malcom Francis <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
