Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347070
b: refs/heads/master
c: 79f678e
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Kurtz authored and Wolfram Sang committed Nov 16, 2012
1 parent cf59130 commit 37e0f1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe724bf9f023384eb14431c0e49ec46017ba8e30
refs/heads/master: 79f678edfe48db1f234b8de41e24987d6d25ac1a
16 changes: 0 additions & 16 deletions trunk/drivers/i2c/busses/i2c-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,6 @@ static int s3c24xx_i2c_set_master(struct s3c24xx_i2c *i2c)
unsigned long iicstat;
int timeout = 400;

/* the timeout for HDMIPHY is reduced to 10 ms because
* the hangup is expected to happen, so waiting 400 ms
* causes only unnecessary system hangup
*/
if (i2c->quirks & QUIRK_HDMIPHY)
timeout = 10;

while (timeout-- > 0) {
iicstat = readl(i2c->regs + S3C2410_IICSTAT);

Expand All @@ -548,15 +541,6 @@ static int s3c24xx_i2c_set_master(struct s3c24xx_i2c *i2c)
msleep(1);
}

/* hang-up of bus dedicated for HDMIPHY occurred, resetting */
if (i2c->quirks & QUIRK_HDMIPHY) {
writel(0, i2c->regs + S3C2410_IICCON);
writel(0, i2c->regs + S3C2410_IICSTAT);
writel(0, i2c->regs + S3C2410_IICDS);

return 0;
}

return -ETIMEDOUT;
}

Expand Down

0 comments on commit 37e0f1c

Please sign in to comment.