]> git.dujemihanovic.xyz Git - u-boot.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)
commit5563167e6e612e87be1722f28881e835d8836a1d
treeb167ff710c8b3d93fc9dcd3c3cc463600249a5ef
parente6c62537dbf5bb8b43dbe8c89d1bb61c647b6b24
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