diff options
author | Fabio Estevam <festevam@gmail.com> | 2024-03-12 21:36:41 -0300 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-03-17 17:59:32 -0300 |
commit | fdd529fa624e8b235a949b63b932d3eb1e9641b9 (patch) | |
tree | 1763935057f6646f0bedcfa00c81e762c509bf7a /doc/usage | |
parent | e1897784aa9e8dec30ad1067c1107dbd287e5024 (diff) |
colibri-imx8x: Fix sc_misc_otp_fuse_read() error check
Commit aa6e698a7acd ("imx: toradex/colibri-imx8x: correct SCU API usage")
made an incorrect logic change in the error code check of
sc_misc_otp_fuse_read():
- if (sc_err == SC_ERR_NONE) {
+ if (sc_err) {
/* DX has two A35 cores disabled */
return (val & 0xf) != 0x0;
}
The other changes in this commit are correct.
sc_misc_otp_fuse_read() returns 0 on a successful fuse read.
This inversion causes board_mem_get_layout() to report incorrect RAM size.
Go back the original error check logic to fix the problem.
Fixes: aa6e698a7acd ("imx: toradex/colibri-imx8x: correct SCU API usage")
Reported-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Hiago De Franco <hiago.franco@toradex.com> # Toradex Colibri iMX8X 1GB
Diffstat (limited to 'doc/usage')
0 files changed, 0 insertions, 0 deletions