]> git.sur5r.net Git - u-boot/commitdiff
driver: ram: rockchip: rk3399: missing counter increment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 11:10:55 +0000 (12:10 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 28 Mar 2018 21:30:31 +0000 (23:30 +0200)
If we want to check the duration we need to increment the counter.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/ram/rockchip/sdram_rk3399.c

index 76c1fe80a7fb2c1c900f24a39496d56b91a0d068..5cb470c209f24a0bbc2ea490c6ec8319e4d9af1a 100644 (file)
@@ -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;