Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp537031ybl; Tue, 7 Jan 2020 10:28:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyz232QKHpGZygbQfkRq6SeePTBgMvRfqHJdQaQpse4CZ/sW0A8thhQzyqt+cls/Z1niVf5 X-Received: by 2002:a05:6830:174e:: with SMTP id 14mr1175854otz.142.1578421697595; Tue, 07 Jan 2020 10:28:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578421697; cv=none; d=google.com; s=arc-20160816; b=Yf66IdwxSoIlGMx3gLl4n57sNaawJ7U9TJu2QN99LRscA5M3sPum8a0TfHUdE6xil+ x4fx2pGGJipzPy1ZASK78XLIGRweZHMFg6OEjtwaScB50mOaxLaX7QgrggyPbNaNPnLu mz9tCMgo8oXinI0Vgl6y1QOMJmkpNwNzhpz/e78QQluLml1Nz08d87n6jKcoCjrBIj8o f+Hc0v4ij1R7eL+4xwPDhFyZYorwof6CbsnpSrJVOvZhpPLb5IQouHSDkmLdRsXXUtF9 3/YXmLqtA2iVXE4p39tdMU6przkteNyWWv8fyEdIdXSHjI137RI5zSpgrzzBHbqNbKG6 squg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zus/oHEPfUKUrotru7IYE6Udovf2Bf4kyzexAklf/mc=; b=gEnXOoqQVyNkp8cJ+isP0095stqq+dM7aOh65TJVMjCkKXFJsivTeD1v1ernIlxfDY nkoY2nqcH3Q6+FQwhSBW5Sd0LUtAcKMlnK2XFUx659iFGKczdGw2F3GjjGzcKlY/ILmS tIhzB9moGA+cxK8QLOx/1HnAOVktkxB33b7sPQE6pSG8QOZafO+AaiOQaci3K1NqRoX5 twe0MdJw2lVPQsqAi0ZJgBYIqfrTJId0LH8rWM4W5+LzXleErdlcEtCAdKBYQ0eatEPf CB1t9gYkGrVrzhW3riQkyDh7mx84l3bm3fxEQDCuR4k98SsCmrJu9z1TbVY0pEoVrhu/ MUlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZN1v7QiO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si383156oig.65.2020.01.07.10.28.05; Tue, 07 Jan 2020 10:28:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZN1v7QiO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbgAGS0y (ORCPT + 99 others); Tue, 7 Jan 2020 13:26:54 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:53157 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgAGS0y (ORCPT ); Tue, 7 Jan 2020 13:26:54 -0500 Received: by mail-pj1-f67.google.com with SMTP id a6so142855pjh.2; Tue, 07 Jan 2020 10:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zus/oHEPfUKUrotru7IYE6Udovf2Bf4kyzexAklf/mc=; b=ZN1v7QiONPOPW1IOT5zRpZOShKub+VrlaoY9JyHqBNagonMul3zriQZkhMe4mWGP0B FVCSgZmNoeYJNVuSuFFoaabfYXf+Q7gLwpHn9Z+OvTPyf8All5dirorZ82w34aop+ni0 laU4Ajwb0e1J3JUZRkD1296WBkVvgzzaiehbUSBl1AbHab7ElANmsSVjcM9PShfB2HbS b2pcTFrHmAm50ot5Y/cd1SXlpuCLwSGollOeyUDqNEg+h+esFT191xy5hM+2rJd7Zh6d 2kJJ7GTN61Wn4UMZDJUW8df/XoAn9rQZTVCO+QzdWxf3HIT7OlFWmIU42HwTf+arq7ue nWug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=zus/oHEPfUKUrotru7IYE6Udovf2Bf4kyzexAklf/mc=; b=jcSsGjzzB7w5czlLbNr2MDvVyZvVyaJIqQY87CN+mTVAnpwg7C1xLsb4ifYTA8wth6 qNDmc8VgBa75By0/84tgBeB9ympT2HszRP+iqaskC8B/Sej/ZSkJtvPuDuMrNTA2yZsk WJu5Ul8rEK0e4av8eRMRDCW2myjOlL8iFs0PGIjBY4Nqs3lu4+k0kYNHtZ7gE0VOKP1n J2Hz+QitL93FYKbBZ+Gi8vJoIHWp7HAIOpibFTCyescf5fU+sR3LYzZrZdlF8gr1KUFN iptvbRdmG3OBnYwbItaJOYFHqL7eNGYz+DiW6u00XAdt2Isj9EKUBN0pjL0izRv1EBqh xEAg== X-Gm-Message-State: APjAAAU+F49z4S+zGHGNoJbswBD+EQ++KRWzuqYllLnXigzWWM/G/2wV q8uDOxcD7ijZE9MegkGdBEGQ/Lbe X-Received: by 2002:a17:90a:a60c:: with SMTP id c12mr1200747pjq.36.1578421613893; Tue, 07 Jan 2020 10:26:53 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d24sm247488pfq.75.2020.01.07.10.26.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jan 2020 10:26:53 -0800 (PST) Date: Tue, 7 Jan 2020 10:26:52 -0800 From: Guenter Roeck To: Jack Mitchell Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] watchdog: dw_wdt: ping watchdog to reset countdown before start Message-ID: <20200107182652.GA22909@roeck-us.net> References: <20200107155155.278521-1-ml@embed.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107155155.278521-1-ml@embed.me.uk> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 03:51:55PM +0000, Jack Mitchell wrote: > Currently on an rk3288 SoC when trying to use the watchdog the SoC will > instantly reset. This is due to the watchdog countdown counter being set > to its initial value of 0x0. Reset the watchdog counter before start in > order to correctly start the countdown timer from the right position. > > Signed-off-by: Jack Mitchell You sent this three times, one with v2, no explanation for v2. On top of that, the To: destination is messed up in all three versions. Excellent example for how not to send a patch. Anyway, Reviewed-by: Guenter Roeck > --- > drivers/watchdog/dw_wdt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c > index fef7c61f5555..4a902d015bc2 100644 > --- a/drivers/watchdog/dw_wdt.c > +++ b/drivers/watchdog/dw_wdt.c > @@ -135,6 +135,7 @@ static int dw_wdt_start(struct watchdog_device *wdd) > struct dw_wdt *dw_wdt = to_dw_wdt(wdd); > > dw_wdt_set_timeout(wdd, wdd->timeout); > + dw_wdt_ping(&dw_wdt->wdd); > dw_wdt_arm_system_reset(dw_wdt); > > return 0; > -- > 2.24.1 >