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

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

On Sat, Oct 6, 2012 at 9:59 AM, Fabio Estevam <festevam@gmail.com> wrote:
> 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.

I mean "hang"

>
> Wouldn't it be better to add a timeout here?
>
> Regards,
>
> Fabio Estevam