From 98fa31b9d42b2c00263e2a6152398e1cb95deaac 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 (cherry picked from commit 17f2872c6b15f4ebd5878b99c64e4abf922781c5) --- 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 d47edba113..cd40ad92c1 100644 --- a/board/qca/arm/ipq5332/ipq5332.c +++ b/board/qca/arm/ipq5332/ipq5332.c @@ -1200,10 +1200,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); + } } }