ddrmc: vybrid: We shall perform bitwise AND, not logical one
Subsystems (4)
PATCH 1/1 ddrmc: vybrid: We shall perform bitwise AND, not logical one
With logical AND - we exit the memory setup procedure on any interrupt - also on errors.
Signed-off-by Lukasz Majewski <[email protected]>
---
arch/arm/mach-imx/ddrmc-vf610.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/ddrmc-vf610.c +1 -1
@@ -231,6 +231,6 @@ void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings,/* all inits done, start the DDR controller */ writel (DDRMC_CR00_DRAM_CLASS_DDR3 |DDRMC_CR00_START , &ddrmr->cr[0 ]); -while (!(readl (&ddrmr->cr[80 ]) &&0x100 )) +while (!(readl (&ddrmr->cr[80 ]) &0x100 ))udelay (10 ); }
Signature · 1 line
2.11.0
Fabio Estevam
reviewerPATCH 1/1 ddrmc: vybrid: We shall perform bitwise AND, not logical one
Quoted 5 lines · Lukasz Majewski
With logical AND - we exit the memory setup procedure on any interrupt - also on errors.
Signed-off-by Lukasz Majewski <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>
Stefan Agner
reviewerPATCH 1/1 ddrmc: vybrid: We shall perform bitwise AND, not logical one
Quoted 8 lines · Fabio Estevam
Quoted 5 lines · Lukasz Majewski
With logical AND - we exit the memory setup procedure on any interrupt - also on errors.
Signed-off-by Lukasz Majewski <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
I have a similar patch downstream which also creates a proper define for the magic 0x100.
Will send soon.
--
Stefan
Quoted 4 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot