Re: [PATCH] OMAP: MMC: recover from transfer failures - Resend

From: Andrew Morton
Date: Thu Feb 05 2009 - 15:18:47 EST


On Tue, 3 Feb 2009 15:05:58 +0100
Jean Pihet <jpihet@xxxxxxxxxx> wrote:

> + while (OMAP_HSMMC_READ(host->base,
> + SYSCTL) & SRD)
> + ;

Is a __raw_readl() sufficient to prevent the cpu from burning up here,
or should we add cpu_relax()?

An infinite loop which assumes the hardware is perfect is always a
worry. But I see the driver already does that, so we're no worse off..

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/