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)
commit6ed21f3d704370d5b1a5db8ee953fd7c5cea08d6
treedd3d591cd17feb459a470a2d42a1adb1de71f6ce
parent2d48d99c4a90750b80438314bae20499b4ce6705
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 8729b1ae2cbd ("misc: Update read() and write()
methods to return bytes xfered"): raise a error when the result is not
the expected length.

Fixes: 658fde8a36ff ("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