[U-Boot] [PATCH 1/1] ipu common: reset ipuv3 correctly

Fabio Estevam
2012-10-06T12:59:16Z

Hi Liu Ying,

On Sat, Oct 6, 2012 at 7:32 AM, Liu Ying <Ying.liu@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