summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Jaszczyk <jaz@semihalf.com>2018-04-17 11:09:18 +0200
committerKostya Porotchkin <kostap@marvell.com>2018-04-25 16:54:02 +0300
commit4f7f5f8c7ca53bd5d83a54df6d5c2d18c8e0bbeb (patch)
tree0998f64df6ea77f456d171a2c9a8b324765db9f0
parent0064108e4d1f9b4b93298322938fd80cbcb29609 (diff)
mvebu: cp110: fix comphy offset error checking
Change-Id: If62977b92f13409bca90a690b179aa3cfada9be1 Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/53493 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
-rw-r--r--plat/marvell/common/mrvl_sip_svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/marvell/common/mrvl_sip_svc.c b/plat/marvell/common/mrvl_sip_svc.c
index bdd33ad6..bf1e7778 100644
--- a/plat/marvell/common/mrvl_sip_svc.c
+++ b/plat/marvell/common/mrvl_sip_svc.c
@@ -53,7 +53,7 @@ uint64_t mrvl_sip_smc_handler(uint32_t smc_fid,
if (x1 & MVEBU_SD_OFFSET)
x1 = (x1 & ~0xffffff) + MVEBU_COMPHY_OFFSET;
- if (!(x1 & MVEBU_COMPHY_OFFSET)) {
+ if ((x1 & 0xffffff) != MVEBU_COMPHY_OFFSET) {
ERROR("%s: Wrong smc (0x%x) address: %lx\n", __func__, smc_fid, x1);
SMC_RET1(handle, SMC_UNK);
}