Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3060410pxx; Sun, 1 Nov 2020 21:21:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/RYBw9GonmC51cob9XuA2driShusPDkeBzENqKR9uexFqVXSbA0u49/elQw8PH4gBEriI X-Received: by 2002:a50:d583:: with SMTP id v3mr5917302edi.125.1604294516274; Sun, 01 Nov 2020 21:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604294516; cv=none; d=google.com; s=arc-20160816; b=yaYtG/anie39z9yHf3AXros3FAOAeuMiX/fkpUmjbUnl5QK0ZhpmV5NW7AmdAIM2/f RIecHjF/8Cydwlwzr90S+Z85bJQjmQFtsX5q6USFrEGK/iYCYqJEopySLHTCnojFec8u h+ri3nR8tacT9drJJwVDcgj/1r5yoCv7OEkpUM8NRAFgk4x+rKt310cL1V83lmzoTV0u NDJxRDDfvzm3W/IlfCzr56kWr7kAefMFlg/BvurTPWxFNb2R2/ILdOzu3HWhWtMx3HGy 8Kp0q3hZdqh/3mqN6xLQmMep1Oh2bIpPfbdjUBnXsBr2c44Hohm21YPzndEm8pYYWhrL yEMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=gglt99q78xy/igDy1zLL7gXHfXLy4ocv/EgOgW7lIEA=; b=fm9I5SKZWH06i7rw1EN/edVfEDxc7uEMHg5DAMQAB0CGZUIK9fPbAbZYYlZJOP3BHp dJNkXOE+745GKx6Un74GmadHf5jiE+t2PePHi6BREAR5dQeRi8ktf8L4G4bZVrs3wfFu IxNp/0TF0d23NqtlxGulOjSouikos/5auIWotgJF/bWSI4I8ORRU1QtpQMldiGj8I6zS pOdflSQAQzEqZ5vp+/eE8w7PVj6Lk9pTroDx3+dSBAuQWpOmAvcXXASWJuCgjo7+t6g5 +2F7UIcQrvy2QjwD5j41XPu4drJht2xFuOe9Ru9AlKRAmf3f86Hale6XRnEKXtzN8Iun JwBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="R74IPCj/"; 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 q15si11479698edi.432.2020.11.01.21.21.33; Sun, 01 Nov 2020 21:21:56 -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=pass header.i=@mg.codeaurora.org header.s=smtp header.b="R74IPCj/"; 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 S1727059AbgKBFT3 (ORCPT + 99 others); Mon, 2 Nov 2020 00:19:29 -0500 Received: from z5.mailgun.us ([104.130.96.5]:64203 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgKBFT3 (ORCPT ); Mon, 2 Nov 2020 00:19:29 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604294368; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=gglt99q78xy/igDy1zLL7gXHfXLy4ocv/EgOgW7lIEA=; b=R74IPCj/noZGY7RBCVAQnhSG7GLEaZojnTqB3po0g1TCYS/W1GULH/IN2CZ+hjnabqQSv+yT BOsVxRPdC4VpziF8CxAa7mKXw3LYe4d/ChPDJN7RmygZFLDlXy8vQbohA9geOUuiDTU/u2xX 0++WXw5lOwO4+m0aMwuq1fURrcE= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f9f96d91df7f5f83c9022ce (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 02 Nov 2020 05:19:21 GMT Sender: kathirav=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 27F65C433C8; Mon, 2 Nov 2020 05:19:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.43.11] (unknown [223.182.216.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kathirav) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9FC19C433C6; Mon, 2 Nov 2020 05:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9FC19C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kathirav@codeaurora.org Subject: Re: [PATCH v4] watchdog: qcom_wdt: set WDOG_HW_RUNNING bit when appropriate To: Guenter Roeck , Robert Marko , agross@kernel.org, bjorn.andersson@linaro.org, wim@linux-watchdog.org, linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Luka Perkov References: <20201031121115.542752-1-robert.marko@sartura.hr> <23aea80f-265b-8a23-e8ea-f46639dd4129@codeaurora.org> <5b7def39-8c23-d30f-e2d3-bc38beee8919@roeck-us.net> From: Kathiravan T Message-ID: Date: Mon, 2 Nov 2020 10:49:08 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <5b7def39-8c23-d30f-e2d3-bc38beee8919@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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