0xffd0628 is a handoff register. This looks like a debugging writel that
was accidentally commited, as the write to this register is useless otherwise.

Signed-off-by: Steffen Trumtrar <s.trumt...@pengutronix.de>
---
 arch/arm/mach-socfpga/arria10-xload.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/mach-socfpga/arria10-xload.c 
b/arch/arm/mach-socfpga/arria10-xload.c
index f846781e8f..22b23d2dc7 100644
--- a/arch/arm/mach-socfpga/arria10-xload.c
+++ b/arch/arm/mach-socfpga/arria10-xload.c
@@ -220,10 +220,8 @@ static int a10_fpga_init(void *buf)
        /* wait for nstatus == 1 */
        timeout = 1000000;
        while ((socfpga_a10_fpga_read_stat() & mask) != mask) {
-               if (timeout-- < 0) {
-                       writel(socfpga_a10_fpga_read_stat(), 0xFFD06238);
+               if (timeout-- < 0)
                        return -ETIMEDOUT;
-               }
        }
 
        stat = socfpga_a10_fpga_read_stat();

-- 
2.43.2


Reply via email to