[PATCH v2 1/1] watchdog: mtk_wdt: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-30 Thread Freddy Hsin
From: "freddy.hsin" Before user space daemon start to access the watchdog device, there is a time interval that watchdog is disabled in the original flow. If the system freezing at this interval, it cannot be rebooted by watchdog hardware automatically. In order to solve this problem, the watchd

driver: watchdog: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-24 Thread Freddy Hsin
Before user space daemon start to access the watchdog device, there is a time interval that watchdog is disabled in the original flow. If the system freezing at this interval, it cannot be rebooted by watchdog hardware automatically. In order to solve this problem, the watchdog hardware should be

[PATCH v1 1/1] driver: watchdog: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-24 Thread Freddy Hsin
From: "freddy.hsin" Before user space daemon start to access the watchdog device, there is a time interval that watchdog is disabled in the original flow. If the system freezing at this interval, it cannot be rebooted by watchdog hardware automatically. In order to solve this problem, the watchd

[PATCH v1 1/1] timer: mt6873: remove COMPILE_TEST condition for MTK timer

2020-08-27 Thread Freddy Hsin
MTK timer driver can work on MTK platform normally, so remove the redundant condition for MTK_TIMER Signed-off-by: Freddy Hsin --- drivers/clocksource/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index

[PATCH 0/1] Remove redundant condition for MTK_TIMER

2020-08-27 Thread Freddy Hsin
Remove the redundant condition of MTK_TIMER because the driver can work on MTK platform normally, so COMPILE_TEST is no longer needed for development purpose Freddy Hsin (1): timer: mt6873: remove COMPILE_TEST condition for MTK timer drivers/clocksource/Kconfig | 2 +- 1 file changed, 1

[PATCH 0/1] Refine mtk wdt driver init flow

2020-08-28 Thread Freddy Hsin
Add mtk_wdt_init() functin in probe flow to determine enable/disable the hw watchdog by its original setting Freddy Hsin (1): driver: watchdog: Add mtk_wdt_init for mediatek watchdog hw init drivers/watchdog/mtk_wdt.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-)

[PATCH v1 1/1] driver: watchdog: Add mtk_wdt_init for mediatek watchdog hw init

2020-08-28 Thread Freddy Hsin
: Freddy Hsin --- drivers/watchdog/mtk_wdt.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index d6a6393..59b5061 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -57,6 +57,9

[PATCH v1 1/2] kernel: time: export sched_clock_register function

2020-07-28 Thread Freddy Hsin
export sched_clock_register function, because the Mediatek timer loadable module depends on this function Signed-off-by: Freddy Hsin --- kernel/time/sched_clock.c |1 + 1 file changed, 1 insertion(+) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index fa3f800..e1d5afe

[PATCH v1] Porting Mediatek timer driver to kernel module

2020-07-28 Thread Freddy Hsin
Porting Mediatek timer driver to kernel module for GKI (Generic Kernel Image). Clocksource mmio functions are exported for Mediatek timer init function. This patch depends on the timer-of patch submitted by Baolin Wang https://lkml.org/lkml/2020/3/24/72 Freddy Hsin (2): kernel: time: remove

[PATCH v1 2/2] timer: mt6873: porting Mediatek timer driver to loadable module

2020-07-28 Thread Freddy Hsin
porting Mediatek timer driver to loadable module Signed-off-by: Freddy Hsin --- drivers/clocksource/Kconfig |2 +- drivers/clocksource/mmio.c |4 +++- drivers/clocksource/timer-mediatek.c | 39 ++ 3 files changed, 43 insertions(+), 2