Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754679AbdL1SiS (ORCPT ); Thu, 28 Dec 2017 13:38:18 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:46046 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbdL1SiQ (ORCPT ); Thu, 28 Dec 2017 13:38:16 -0500 X-Google-Smtp-Source: ACJfBosSEJNTnC038Ld/plqH9/9JOx58r5xa9WPnQlzKK4hURetc+QaZ2ym/g4jP4KLcU10cj0hG6g== Subject: Re: [PATCH 1/7] watchdog: JZ4740: Disable clock after stopping counter To: Paul Cercueil , Ralf Baechle , Rob Herring , Mark Rutland , Wim Van Sebroeck Cc: devicetree@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org References: <20171228162939.3928-1-paul@crapouillou.net> <20171228162939.3928-2-paul@crapouillou.net> From: Guenter Roeck Message-ID: <1d54ed58-8e30-6fdc-60b8-541d3775280b@roeck-us.net> Date: Thu, 28 Dec 2017 10:38:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171228162939.3928-2-paul@crapouillou.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 890 Lines: 27 On 12/28/2017 08:29 AM, Paul Cercueil wrote: > Previously, the clock was disabled first, which makes the watchdog > component insensitive to register writes. > > Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck > --- > drivers/watchdog/jz4740_wdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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; > } >