diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-02-12 19:37:35 +0100 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-03-24 14:05:35 +0100 |
commit | 16aa3e3fdcd36b9a26be54656c9747fb59f8bb3b (patch) | |
tree | 9c8d62483411a2ce643e8258dae4f6cf56336ebf /board/st | |
parent | 2738f0edea7d19960d692284d1f378b1a2b4c4a5 (diff) | |
download | u-boot-16aa3e3fdcd36b9a26be54656c9747fb59f8bb3b.tar.gz |
board: stm32mp1: update command stboard on misc_write result
Update management of misc_write, which now return length of data
after the commit 8729b1ae2cbd ("misc: Update read() and write()
methods to return bytes xfered")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'board/st')
-rw-r--r-- | board/st/common/cmd_stboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index e994a88e71..b740f4510e 100644 --- a/board/st/common/cmd_stboard.c +++ b/board/st/common/cmd_stboard.c @@ -125,7 +125,7 @@ static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc, ret = misc_write(dev, STM32_BSEC_OTP(BSEC_OTP_BOARD), &otp, sizeof(otp)); - if (ret) { + if (ret < 0) { puts("BOARD programming error\n"); return CMD_RET_FAILURE; } |