]> git.baikalelectronics.ru Git - uboot.git/commit
xilinx: board: Update logic in xilinx_read_eeprom_legacy
authorMichal Simek <michal.simek@amd.com>
Tue, 24 Jan 2023 15:19:28 +0000 (16:19 +0100)
committerMichal Simek <michal.simek@amd.com>
Fri, 27 Jan 2023 07:48:32 +0000 (08:48 +0100)
commit1bc43a6a3051e97457364444380d809eb0a100a0
treeb167ff710c8b3d93fc9dcd3c3cc463600249a5ef
parentbc909ede08d48bf749bca5cdd5e4b511d94c92d3
xilinx: board: Update logic in xilinx_read_eeprom_legacy

When eeprom has random content printing random chars can stuck U-Boot.
That's why update legacy eeprom format decoding algorithm to copy only
maximum amount of chars allocated for fields.
And also print them directly from desc structure.

Previous algorithm was printing strings first directly from eeprom content
and then copy them to desc structure.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/42065fcbb1a10581f9f4f091d64b43c01fe595c6.1674573561.git.michal.simek@amd.com
board/xilinx/common/board.c