]> git.baikalelectronics.ru Git - uboot.git/commit
board: st: common: update test on misc_read result in command stboard
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 1 Feb 2022 13:37:19 +0000 (14:37 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 15 Mar 2022 08:10:52 +0000 (09:10 +0100)
commitce321d8375b281bb0ccd028427572871ff17bbc4
treedd3d591cd17feb459a470a2d42a1adb1de71f6ce
parentdb5fef433d361c16b900b72c1c1f24b2b404d793
board: st: common: update test on misc_read result in command stboard

Update management of misc_read/misc_write, which now returns length of
data after the commit 4253e1c17329 ("misc: Update read() and write()
methods to return bytes xfered"): raise a error when the result is not
the expected length.

Fixes: 788ced2f360c ("board: stm32mp1: stboard: lock the OTP after programming")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
board/st/common/cmd_stboard.c