Skip to content

Commit 17d8bd9

Browse files
committed
u-boot: v2026.04: helios64: add ensure_otp_data_ready() to get_revision()
Same defensive pattern as get_variant(): a transient early OTP read failure would leave otp.valid=false, causing get_revision() to return -1 without ever retrying. Route through ensure_otp_data_ready() so a late-booting SPI controller gets a second chance. Suggested-by: coderabbitai[bot] <coderabbitai[bot]@users.noreply.github.com>
1 parent 6a2789b commit 17d8bd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • patch/u-boot/v2026.04/board_helios64/board

patch/u-boot/v2026.04/board_helios64/board/sys_otp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ int read_otp_data(void)
218218

219219
int get_revision(int *major, int *minor)
220220
{
221-
if (!is_data_valid())
221+
if (ensure_otp_data_ready())
222222
return -1;
223223

224224
*major = (otp.revision & 0xf0) >> 4;

0 commit comments

Comments
 (0)