[U-Boot] [PATCH 1/1] ipu common: reset ipuv3 correctly
Fabio Estevam
festevam at gmail.com
Sat Oct 6 14:59:16 CEST 2012
Hi Liu Ying,
On Sat, Oct 6, 2012 at 7:32 AM, Liu Ying <Ying.liu at freescale.com> wrote:
> @@ -397,6 +397,9 @@ void ipu_reset(void)
> value = __raw_readl(reg);
> value = value | SW_IPU_RST;
> __raw_writel(value, reg);
> +
> + while (__raw_readl(reg) & SW_IPU_RST)
> + ;
Ok, but if the reset fails we would hand the whole system.
Wouldn't it be better to add a timeout here?
Regards,
Fabio Estevam
More information about the U-Boot
mailing list