diff options
| author | Jerome Brunet <[email protected]> | 2022-08-04 16:41:38 +0200 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2022-08-08 09:56:38 +0200 |
| commit | 3145e0d0ff0837647351f2ca261b4cde779f83e0 (patch) | |
| tree | 01d493c205bd0c580ec85fb5f05d757bf3e041ea /include/linux/linux_string.h | |
| parent | 647ba68841dbb5de82983a1cad4cf42bcf63b9b3 (diff) | |
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: 52195ba5f579 ("ARM: amlogic: add sm efuse write support and cmd for read/write efuse")
Signed-off-by: Jerome Brunet <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
