Skip to contentSkip to conversation

I2C: Change the value of octeon i2c adapter timeout value

PATCH In review EUNBONG SONG 2 participants 2 messages Apr 19, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: Change the value of octeon i2c adapter timeout value

I think HZ/50 is better than 2 for adapter timeout.

---
 drivers/i2c/busses/i2c-octeon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-octeon.c +1 -1
index 935585e..ca489f3 100644
@@ -440,7 +440,7 @@ static struct i2c_adapter octeon_i2c_ops = {
 	.owner = THIS_MODULE,
 	.name = "OCTEON adapter",
 	.algo = &octeon_i2c_algo,
-	.timeout = 2,
+	.timeout = HZ/50,
 };
 
 /**
Signature · 1 line
1.7.0.1
#1 lore raw
Quoted 2 lines · EUNBONG SONG

I think HZ/50 is better than 2 for adapter timeout.

Basically OK. But why HZ/50? Most drivers use HZ.