[PATCH v3] i2c: dev: prevent adapter retries and timeout being set as minus value

2019-01-08 Thread Yi Zeng
always break after the the first try, due to the time_after always returns true. Signed-off-by: Yi Zeng --- drivers/i2c/i2c-dev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 1aca742..ccd76c7 100644 --- a/drivers/i2c/i2c-dev.c +++ b/dri

[PATCH] thermal: of-thermal: support to select governor in dts for thermal zone

2019-01-07 Thread Yi Zeng
r. Signed-off-by: Yi Zeng --- drivers/thermal/of-thermal.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a..f9368f4 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -1024,6 +1024,7 @@

[PATCH] i2c: dev: prevent adapter retries and timeout being set as minus value

2019-01-07 Thread Yi Zeng
always break after the the first try, due to the time_after always returns true. Signed-off-by: Yi Zeng --- drivers/i2c/i2c-dev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 1aca742..14d01f5 100644 --- a/drivers/i2c/i2c-dev.c +++ b/dri

[PATCH] i2c: dev: prevent adapter retries being set as minus value

2018-12-21 Thread Yi Zeng
The bus driver will never be accessed anymore by all users, besides, the users may still get successful return value with no any error or information log print out. Signed-off-by: Yi Zeng --- drivers/i2c/i2c-dev.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/i2c-dev.c b/driver

[PATCH] thermal: power_allocator: fix one race condition issue for thermal_instances list

2017-12-26 Thread Yi Zeng
50] c3 25 (kworker/3:0) [] kthread+0xe8/0xfc [ 34.979187] c3 25 (kworker/3:0) [] ret_from_fork+0x10/0x40 [ 34.986244] c3 25 (kworker/3:0) Code: f9405e73 eb1302bf d102e273 54ffc460 (b9402a61) [ 34.994339] c3 25 (kworker/3:0) ---[ end trace 32057901e3b7e1db ]--- Signed-off-by: Yi Zen

[PATCH] thermal: power_allocator: fix one race condition issue for thermal_instances list

2017-12-26 Thread Yi Zeng
50] c3 25 (kworker/3:0) [] kthread+0xe8/0xfc [ 34.979187] c3 25 (kworker/3:0) [] ret_from_fork+0x10/0x40 [ 34.986244] c3 25 (kworker/3:0) Code: f9405e73 eb1302bf d102e273 54ffc460 (b9402a61) [ 34.994339] c3 25 (kworker/3:0) ---[ end trace 32057901e3b7e1db ]--- Signed-off-by: Yi Zeng --- d