summaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-02-12 19:37:35 +0100
committerPatrick Delaunay <patrick.delaunay@st.com>2020-03-24 14:05:35 +0100
commit16aa3e3fdcd36b9a26be54656c9747fb59f8bb3b (patch)
tree9c8d62483411a2ce643e8258dae4f6cf56336ebf /board/st
parent2738f0edea7d19960d692284d1f378b1a2b4c4a5 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
index e994a88e717..b740f4510ea 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;
}