From 4264bd33e718023c62a2776e3ca40db88fce8b08 Mon Sep 17 00:00:00 2001 From: Akshay Belsare Date: Tue, 23 Aug 2022 11:39:35 +0530 Subject: [PATCH] fix(zynqmp): fix for incorrect afi write mask value Currently, the AFIFM6_WRCTRL bus-width configuration is not happening correctly due to the wrong register write mask value. To fix this issue updated the mask value handling logic. Signed-off-by: Nava kishore Manne Signed-off-by: Akshay Belsare Acked-by: Venkatesh Yadav Abbarapu Change-Id: I8443c369a84339018310cfb6cd498d21474da3e4 --- plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c b/plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c index 8a5a25a05..48e1b8d9e 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c +++ b/plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c @@ -553,7 +553,7 @@ static enum pm_ret_status pm_ioctl_afi(uint32_t index, return PM_RET_ERROR_ARGS; } - if (index < AFIFM6_WRCTRL) { + if (index <= AFIFM6_WRCTRL) { mask = FABRIC_WIDTH; } else { mask = 0xf00;