From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 11:10:55 +0000 (+0100) Subject: driver: ram: rockchip: rk3399: missing counter increment X-Git-Tag: v2018.05-rc1~5^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ebc80e83c51d56d17708eec40aedbdf2904460c;p=u-boot driver: ram: rockchip: rk3399: missing counter increment If we want to check the duration we need to increment the counter. Signed-off-by: Heinrich Schuchardt Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 76c1fe80a7..5cb470c209 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -1015,6 +1015,7 @@ static int switch_to_phy_index1(struct dram_info *dram, writel(RK_CLRSETBITS(1 << 1, 1 << 1), &dram->cic->cic_ctrl0); while (!(readl(&dram->cic->cic_status0) & (1 << 0))) { mdelay(10); + i++; if (i > 10) { debug("index1 frequency done overtime\n"); return -ETIME;