diff options
-rw-r--r-- | drivers/i2c/busses/i2c-s3c2410.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index dd93d3d6510a..081e261ac847 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c | |||
@@ -532,13 +532,6 @@ static int s3c24xx_i2c_set_master(struct s3c24xx_i2c *i2c) | |||
532 | unsigned long iicstat; | 532 | unsigned long iicstat; |
533 | int timeout = 400; | 533 | int timeout = 400; |
534 | 534 | ||
535 | /* the timeout for HDMIPHY is reduced to 10 ms because | ||
536 | * the hangup is expected to happen, so waiting 400 ms | ||
537 | * causes only unnecessary system hangup | ||
538 | */ | ||
539 | if (i2c->quirks & QUIRK_HDMIPHY) | ||
540 | timeout = 10; | ||
541 | |||
542 | while (timeout-- > 0) { | 535 | while (timeout-- > 0) { |
543 | iicstat = readl(i2c->regs + S3C2410_IICSTAT); | 536 | iicstat = readl(i2c->regs + S3C2410_IICSTAT); |
544 | 537 | ||
@@ -548,15 +541,6 @@ static int s3c24xx_i2c_set_master(struct s3c24xx_i2c *i2c) | |||
548 | msleep(1); | 541 | msleep(1); |
549 | } | 542 | } |
550 | 543 | ||
551 | /* hang-up of bus dedicated for HDMIPHY occurred, resetting */ | ||
552 | if (i2c->quirks & QUIRK_HDMIPHY) { | ||
553 | writel(0, i2c->regs + S3C2410_IICCON); | ||
554 | writel(0, i2c->regs + S3C2410_IICSTAT); | ||
555 | writel(0, i2c->regs + S3C2410_IICDS); | ||
556 | |||
557 | return 0; | ||
558 | } | ||
559 | |||
560 | return -ETIMEDOUT; | 544 | return -ETIMEDOUT; |
561 | } | 545 | } |
562 | 546 | ||