Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4025764pxu; Mon, 30 Nov 2020 16:01:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcNULnZxt/WJ5wtYdMJCn8o3JpKyzVRs8htj0XuOBpHJ7cKmJKPK7wG1c8689HER0mJZBI X-Received: by 2002:a17:906:bc9b:: with SMTP id lv27mr271667ejb.505.1606780885852; Mon, 30 Nov 2020 16:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606780885; cv=none; d=google.com; s=arc-20160816; b=T3Ab0qbnWkTRxh75vCfcTvt8hQT9XcvsNUxBIdA6C21wjaf2f9EPQr/lDLCAru4BIp hgniSoWz1nKQH0Mmuimtr5g7bJ7rTBUPEUGSw8g4hXWFLc9hTpAqpYRd7/nPhvwfPEnb TP0tWq7giQ3Kzt/vTQtb4v8sqOJoJoreFSC+U7MdurBooEfnRB9AItWH1105Mk4y4J98 VfETwDQbkUEq0mwCcexr5qDoYbnSzOATdhlnVqiu3t0HGB1u4c6n8ArTP+g2XpxM3SJS ePojtkVHIdtw6iaSHZQICHQqbmQI+Z86vsr6nAf+cnIFH01Lh9Xy2u3uZrp6FEyeCMC+ hY0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7Cv2ADl5wlW0FzpIAWuvEi3KmaSqX25T5Zo5cTY82DY=; b=uqQUBhuCcqF06Ga/11h+5Gcneh0PrTTVzOpuyYpRfH83UciTSqaikGa08WlJDTW3xi VFhwAz8eRYdrnkOuom2JjPXLDVtLdjbq38juLIVoIq6lgK/0DfkmuGmOgCptksi6l9aU id/vtxv3/cOMBFoDkdTRN8u5vlOzHQHFnqumcytQuMwlPURi6Mr6vfW2XgQvPWJ93/6k TUR4jL3s3cUAQxAh5uMW0KsVCJHCRz4F2yw5fyUae3pvtEEJJYly/gmQtzBy7YEkhvd8 AaWEP7H6qT5u2fAeJVJZLdUTPVqwO6l0j9nwVaFbCBC+miNVoJaGfN/QJvho440bnKT3 UV2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=ohegBH8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si10853112ejz.621.2020.11.30.16.01.00; Mon, 30 Nov 2020 16:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=ohegBH8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388979AbgK3X5S (ORCPT + 99 others); Mon, 30 Nov 2020 18:57:18 -0500 Received: from gproxy1-pub.mail.unifiedlayer.com ([69.89.25.95]:43426 "EHLO gproxy1-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388124AbgK3X5S (ORCPT ); Mon, 30 Nov 2020 18:57:18 -0500 Received: from cmgw12.unifiedlayer.com (unknown [10.9.0.12]) by gproxy1.mail.unifiedlayer.com (Postfix) with ESMTP id 9CCC6BE183613 for ; Mon, 30 Nov 2020 16:56:36 -0700 (MST) Received: from bh-25.webhostbox.net ([208.91.199.152]) by cmsmtp with ESMTP id jt24kX7tkeMJHjt24kdyYV; Mon, 30 Nov 2020 16:56:36 -0700 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=Ff8ZOq26 c=1 sm=1 tr=0 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=nNwsprhYR40A:10:nop_rcvd_month_year a=evQFzbml-YQA:10:endurance_base64_authed_username_1 a=LpQP-O61AAAA:8 a=_jlGtV7tAAAA:8 a=o6rA3mgfRGNJ6BWNUK4A:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=pioyyrs4ZptJ924tMmac:22 a=nlm17XC03S6CtCLSeiRr:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7Cv2ADl5wlW0FzpIAWuvEi3KmaSqX25T5Zo5cTY82DY=; b=ohegBH8rAeAYMUwcTSAwXN/bM9 u1+TQGrXe/1WCrhxvgI5TSJkOMGzxEzUgU2WB2gMUs5Th+IeMsjb36equeL3JN2i/QIviBEYZJzCq NXgLIsYYNIH6fBKqhzaU31SV4KvsgBtBPJA1fahpSqHvvrEfpjohl0BK2w3pIk/WaYeBLEuLcxjxL sqO3xnMw8VydIslyoDtwn7jVth1S/liAR/lng/KSXmAQOtXkjNjY48/3NDU5p+2Umi2zUJhOErqfV So74U/giXOYgZGhj1tQemhIr//fi0KN/hFIP1W3EnFP7vOLdWDUCVhJWB4gD7qD9677Un+/RuEkAA 1FPf85JA==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:57056 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.93) (envelope-from ) id 1kjt23-002FmK-JI; Mon, 30 Nov 2020 23:56:35 +0000 Date: Mon, 30 Nov 2020 15:56:35 -0800 From: Guenter Roeck To: Robert Marko Cc: Kathiravan T , Andy Gross , Bjorn Andersson , wim@linux-watchdog.org, linux-arm-msm , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Luka Perkov Subject: Re: [PATCH v4] watchdog: qcom_wdt: set WDOG_HW_RUNNING bit when appropriate Message-ID: <20201130235635.GA46844@roeck-us.net> References: <20201031121115.542752-1-robert.marko@sartura.hr> <23aea80f-265b-8a23-e8ea-f46639dd4129@codeaurora.org> <5b7def39-8c23-d30f-e2d3-bc38beee8919@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1kjt23-002FmK-JI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (localhost) [108.223.40.66]:57056 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 3 X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 07:27:00PM +0100, Robert Marko wrote: > On Mon, Nov 2, 2020 at 6:19 AM Kathiravan T wrote: > > > > > > On 11/2/2020 10:33 AM, Guenter Roeck wrote: > > > On 11/1/20 7:58 PM, Kathiravan T wrote: > > >> On 10/31/2020 7:38 PM, Guenter Roeck wrote: > > >>> On 10/31/20 5:11 AM, Robert Marko wrote: > > >>>> If the watchdog hardware is enabled/running during boot, e.g. > > >>>> due to a boot loader configuring it, we must tell the > > >>>> watchdog framework about this fact so that it can ping the > > >>>> watchdog until userspace opens the device and takes over > > >>>> control. > > >>>> > > >>>> Do so using the WDOG_HW_RUNNING flag that exists for exactly > > >>>> that use-case. > > >>>> > > >>>> Signed-off-by: Robert Marko > > >>> Reviewed-by: Guenter Roeck > > >> Thanks for addressing the comments and now the patch looks good to me. One more suggestion, can we make the initcall level of the driver to subsys_initcall_sync so that the driver gets registered immediately after the watchdog_core is registered and watchdog_core starts pinging the WDT? > > >> > > > That would mean to replace module_platform_driver(), which would be a whole > > > different discussion, is not widely needed, and would potentially interfere > > > with the subsys_initcall_sync() in the watchdog core. This will require > > > specific evidence that a problem is seen in the field, and that it is truly > > > needed. Plus, it would have to be a different patch (which you could submit > > > yourself, with evidence). Let's stick with one logical change per patch, > > > please. > > > > > > Guenter > > Yeah, of course I don't want to squash the initcall level change with > > this one. Just made a suggestion to consider it. Anyway I will try to > > collect some data and post the patch by own on that suggestion. Thanks > > Guenter. > > > > -- > > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation > > > > Any chance this could be picked for 5.11? > I have some boards depending on it for normal boot. > It is queued in my watchdog-next branch, so Wim will most likely pick it up. Guenter