diff options
author | Kah Jing Lee <kah.jing.lee@intel.com> | 2023-01-04 10:36:10 +0800 |
---|---|---|
committer | Lokanathan, Raaj <raaj.lokanathan@intel.com> | 2023-01-06 15:53:55 +0800 |
commit | 54b13d11cb4e2e56948925eb3079eab3ff37d99e (patch) | |
tree | 27d0f2bc30eb765102199f6d8bda60d9ea0cf752 | |
parent | 7b0c13622eaaa7680a489a35e71f1cc1d38b47e0 (diff) | |
download | u-boot-socfpga-54b13d11cb4e2e56948925eb3079eab3ff37d99e.tar.gz |
arch: arm: rsu-spl: Compare FACTORY IMAGE with current running SPL slot
Commit a5091a719e: Bug Fix: Compare FACTORY IMAGE with current running
SPL image slot instead of current SSBL slot.
Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
---
v2:
- Rework based on review
---
-rw-r--r-- | arch/arm/mach-socfpga/rsu_spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/rsu_spl.c b/arch/arm/mach-socfpga/rsu_spl.c index 8bbda4979d..245d6c4e6b 100644 --- a/arch/arm/mach-socfpga/rsu_spl.c +++ b/arch/arm/mach-socfpga/rsu_spl.c @@ -141,7 +141,8 @@ static int get_ssbl_slot(struct socfpga_rsu_s10_spt_slot *rsu_ssbl_slot) /* compare SPL's spt name after the prefix */ if (!strncmp(result, rsu_spt.spt_slot[crt_spt_index].name, MAX_PART_NAME_LENGTH - strlen(SSBL_PART_PREFIX)) || - !strncmp(result, FACTORY_IMG_NAME, strlen(FACTORY_IMG_NAME))) { + !strncmp(result, rsu_spt.spt_slot[crt_spt_index].name, + strlen(FACTORY_IMG_NAME))) { printf("RSU: found SSBL partition %s at address 0x%08x.\n", result, (int)rsu_spt.spt_slot[i].offset[0]); memcpy(rsu_ssbl_slot, &rsu_spt.spt_slot[i], |