lkml.org 
[lkml]   [2017]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/8] watchdog: JZ4740: Disable clock after stopping counter
    Date
    Previously, the clock was disabled first, which makes the watchdog
    component insensitive to register writes.

    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    ---
    drivers/watchdog/jz4740_wdt.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    v2: No change

    diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c
    index 20627f22baf6..6955deb100ef 100644
    --- a/drivers/watchdog/jz4740_wdt.c
    +++ b/drivers/watchdog/jz4740_wdt.c
    @@ -124,8 +124,8 @@ static int jz4740_wdt_stop(struct watchdog_device *wdt_dev)
    {
    struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);

    - jz4740_timer_disable_watchdog();
    writeb(0x0, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE);
    + jz4740_timer_disable_watchdog();

    return 0;
    }
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-12-30 14:53    [W:4.114 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site