[PATCH v1] i2c: designware: save the preset value of DW_IC_SDA_HOLD

2016-08-27 Thread Zhuo-hao Lee
for some platforms. Therefore, to have a better tolerance, the DW_IC_SDA_HOLD value should be kept by sda_hold_time. Signed-off-by: Zhuo-hao Lee <zhuo-hao@intel.com> --- drivers/i2c/busses/i2c-designware-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH v1] i2c: designware: save the preset value of DW_IC_SDA_HOLD

2016-08-27 Thread Zhuo-hao Lee
for some platforms. Therefore, to have a better tolerance, the DW_IC_SDA_HOLD value should be kept by sda_hold_time. Signed-off-by: Zhuo-hao Lee --- drivers/i2c/busses/i2c-designware-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c

[PATCH v3] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-17 Thread zhuo-hao . lee
e HPET RTC emulation fires an interrupt every 16ms(=1/2^DEFAULT_RTC_SHIFT) up to the point where the alarm time is reached. This program always hits this situation(https://lkml.org/lkml/2015/11/8/326), if system wake up earlier than alarm time. Cc: Thomas Gleixner Cc: John Stultz Signed-off-by: Zh

[PATCH v3] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-17 Thread zhuo-hao . lee
tronix.de> Cc: John Stultz <john.stu...@linaro.org> Signed-off-by: Zhuo-hao Lee <zhuo-hao@intel.com> --- kernel/time/alarmtimer.c | 17 + 1 file changed, 17 insertions(+) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index 7fbba63..e840ed8 100

[PATCH v2] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-04 Thread zhuo-hao . lee
sleep over time. However, if the system wakeup early than RTC timeout, the RTC timer will not be cleared. And this will cause the hpet_rtc_interrupt come unexpectedly until the RTC timeout. To fix this problem, just adding alarmtimer_resume to cancel the RTC timer. Signed-off-by: Zhuo-hao Lee --- k

[PATCH] alarmtimer: fix unexpected rtc interrupt when system resume

2015-11-04 Thread zhuo-hao . lee
sleep over time. However, if the system wakeup early than RTC timeout, the RTC timer will not be cleared. And this will cause the hpet_rtc_interrupt come unexpectedly until the RTC timeout. To fix this problem, just adding alarmtimer_resume to cancel the RTC timer. Signed-off-by: Zhuo-hao Lee --- k

[PATCH] alarmtimer: fix unexpected rtc interrupt when system resume

2015-11-04 Thread zhuo-hao . lee
ned-off-by: Zhuo-hao Lee <zhuo-hao@intel.com> --- kernel/time/alarmtimer.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index 7fbba63..37ffccd 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtime

[PATCH v2] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-04 Thread zhuo-hao . lee
ned-off-by: Zhuo-hao Lee <zhuo-hao@intel.com> --- kernel/time/alarmtimer.c | 17 + 1 file changed, 17 insertions(+) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index 7fbba63..e840ed8 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtime