From: Naresh Kumar Ravulapalli <[email protected]>

During flushing of data cache operation, the stop address
was modified incorrectly. This led to Linux certificate
authentication failure during VAB flow. So, addressing
this cache issue with this patch.

Signed-off-by: Naresh Kumar Ravulapalli <[email protected]>
Signed-off-by: Boon Khai Ng <[email protected]>
---
 arch/arm/mach-socfpga/smc_api.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-socfpga/smc_api.c b/arch/arm/mach-socfpga/smc_api.c
index a531030f5be..87834e59206 100644
--- a/arch/arm/mach-socfpga/smc_api.c
+++ b/arch/arm/mach-socfpga/smc_api.c
@@ -44,11 +44,11 @@ int smc_send_mailbox(u32 cmd, u32 len, u32 *arg, u8 urgent, 
u32 *resp_buf_len,
        args[4] = (u64)resp_buf;
 
        if (arg && len > 0)
-               flush_dcache_range((uintptr_t)arg, (uintptr_t)arg + len);
+               flush_dcache_range((uintptr_t)arg, (uintptr_t)(arg + len));
 
        if (resp_buf && resp_buf_len && *resp_buf_len > 0) {
                args[5] = *resp_buf_len;
-               flush_dcache_range((uintptr_t)resp_buf, (uintptr_t)resp_buf + 
*resp_buf_len);
+               flush_dcache_range((uintptr_t)resp_buf, (uintptr_t)(resp_buf + 
*resp_buf_len));
        } else {
                args[5] = 0;
        }
-- 
2.43.7

Reply via email to