From 17f2872c6b15f4ebd5878b99c64e4abf922781c5 Mon Sep 17 00:00:00 2001 From: Ram Kumar D Date: Fri, 2 Feb 2024 16:36:59 +0530 Subject: [PATCH] board: qca: ipq5332: updated scope for the loop in PHY reset The missing calibrace leads to an in-valid hardware access, it in-turn causes silent reboot. So, added the calibrace to define the scope for the loop statement. Change-Id: I0c719798af35eb21a824ee6f570501dab720e241 Signed-off-by: Ram Kumar D --- board/qca/arm/ipq5332/ipq5332.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/qca/arm/ipq5332/ipq5332.c b/board/qca/arm/ipq5332/ipq5332.c index 261660643b..4d1877899b 100644 --- a/board/qca/arm/ipq5332/ipq5332.c +++ b/board/qca/arm/ipq5332/ipq5332.c @@ -1205,10 +1205,11 @@ void aquantia_phy_reset_init_done(void) aquantia_gpio_cnt = get_aquantia_gpio(aquantia_gpio); if (aquantia_gpio_cnt >= 1) { - for (i = 0; i < aquantia_gpio_cnt; i++) + for (i = 0; i < aquantia_gpio_cnt; i++) { gpio_set_value(aquantia_gpio[i], 0x1); writel(0x3, GPIO_IN_OUT_ADDR(aquantia_gpio[i])); mdelay(500); + } } }