提交 8a52f9f3 编写于 作者: T Tomoya MORINAGA 提交者: Wolfram Sang

i2c-eg20t: change timeout value 50msec to 1000msec

Currently, during i2c works alone, wait-event timeout is not occurred.
However, as CPU load increases, timeout occurs frequently.
So, I modified like this patch.
Modifying like this patch, I've never seen the timeout event with high
load test.
Signed-off-by: NTomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
上级 f70893d0
...@@ -324,7 +324,7 @@ static s32 pch_i2c_wait_for_xfer_complete(struct i2c_algo_pch_data *adap) ...@@ -324,7 +324,7 @@ static s32 pch_i2c_wait_for_xfer_complete(struct i2c_algo_pch_data *adap)
{ {
long ret; long ret;
ret = wait_event_timeout(pch_event, ret = wait_event_timeout(pch_event,
(adap->pch_event_flag != 0), msecs_to_jiffies(50)); (adap->pch_event_flag != 0), msecs_to_jiffies(1000));
if (ret == 0) { if (ret == 0) {
pch_err(adap, "timeout: %x\n", adap->pch_event_flag); pch_err(adap, "timeout: %x\n", adap->pch_event_flag);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册