]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: meson: fixup error on efuse commands return
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 4 Aug 2022 14:41:38 +0000 (16:41 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 8 Aug 2022 07:56:38 +0000 (09:56 +0200)
commit925b3b9b80bb0a8c7de1b8e62578bacbd89c9bd9
tree01d493c205bd0c580ec85fb5f05d757bf3e041ea
parent003750281aa0d7b78c834c0e8318540e5961f040
ARM: meson: fixup error on efuse commands return

All `sm efuseread/efusewrite` commands exit with an error, even if the fuse
have actually been dealt with correctly.

This is because the smc call return the size it actually processed but this
result is checked against 0.

Return failure in do_efuse_read/write if the return value of
meson_sm_read/write_efuse() is not the requested size.

Fixes: cabd0231e1b8 ("ARM: amlogic: add sm efuse write support and cmd for read/write efuse")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220804144138.33809-1-jbrunet@baylibre.com
arch/arm/mach-meson/sm.c