mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
i2c: i2c-s3c2410: Add a cpu_relax() to busy wait for bus idle
Be a bit more friendly. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
parent
a36bfddd65
commit
37de03ea12
@ -534,6 +534,7 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c,
|
||||
|
||||
/* first, try busy waiting briefly */
|
||||
do {
|
||||
cpu_relax();
|
||||
iicstat = readl(i2c->regs + S3C2410_IICSTAT);
|
||||
} while ((iicstat & S3C2410_IICSTAT_START) && --spins);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user