u-boot/arch/arm/mach-meson
Jerome Brunet 3145e0d0ff 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: 52195ba5f5 ("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
2022-08-08 09:56:38 +02:00
..
board-axg.c meson: axg: search dtb for meson-axg-usb-ctrl on board axg 2022-05-23 10:40:01 +02:00
board-common.c Revert "ARM: meson: Add support for fastboot_set_reboot_flag()" 2021-07-30 14:54:03 +02:00
board-g12a.c arm: meson: remove static ethernet link setup 2021-04-06 11:10:29 +02:00
board-gx.c arm: meson: remove static ethernet link setup 2021-04-06 11:10:29 +02:00
board-info.c ARM: meson: Add S905Y2 SOC ID 2021-10-07 10:14:50 +02:00
Kconfig ARM: mach-meson: select MMC_PWRSEQ config 2021-02-19 15:11:21 +08:00
Makefile ARM: meson: add G12a support 2019-04-23 11:19:09 +02:00
sm.c ARM: meson: fixup error on efuse commands return 2022-08-08 09:56:38 +02:00