From: Guenter Roeck <linux@roeck-us.net>
To: Pavankumar Kondeti <quic_pkondeti@quicinc.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org,
linux-kernel@vger.kernel.org,
Mukesh Ojha <quic_mojha@quicinc.com>
Subject: Re: [PATCH] watchdog: qcom: Start the watchdog in probe
Date: Tue, 30 Jan 2024 22:01:15 -0800 [thread overview]
Message-ID: <1a996038-bcc7-4c0f-8f27-ca36a2eb9d3d@roeck-us.net> (raw)
In-Reply-To: <20240131-qcom-wdt-start-probe-v1-1-bee0a86e2bba@quicinc.com>
On 1/30/24 20:15, Pavankumar Kondeti wrote:
> When CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is enabled, kernel can pet the
> watchdog until user space takes over. Make use of this feature and
> start the watchdog in probe.
>
> Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
> ---
> drivers/watchdog/qcom-wdt.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c
> index 9e790f0c2096..4fb5dbf5faee 100644
> --- a/drivers/watchdog/qcom-wdt.c
> +++ b/drivers/watchdog/qcom-wdt.c
> @@ -276,12 +276,16 @@ static int qcom_wdt_probe(struct platform_device *pdev)
> watchdog_init_timeout(&wdt->wdd, 0, dev);
>
> /*
> + * Kernel can pet the watchdog until user space takes over.
> + * Start the watchdog here to make use of this feature.
> +
No, that is not what CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is about.
Please see its description.
NACK.
Guenter
> * If WDT is already running, call WDT start which
> * will stop the WDT, set timeouts as bootloader
> * might use different ones and set running bit
> * to inform the WDT subsystem to ping the WDT
> */
> - if (qcom_wdt_is_running(&wdt->wdd)) {
> + if (IS_ENABLED(CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED) ||
> + qcom_wdt_is_running(&wdt->wdd)) {
> qcom_wdt_start(&wdt->wdd);
> set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
> }
>
> ---
> base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
> change-id: 20240131-qcom-wdt-start-probe-b8e0560aef7d
>
> Best regards,
next prev parent reply other threads:[~2024-01-31 6:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 4:15 Pavankumar Kondeti
2024-01-31 6:01 ` Guenter Roeck [this message]
2024-01-31 6:16 ` Pavan Kondeti
2024-01-31 6:37 ` Guenter Roeck
2024-01-31 6:51 ` Pavan Kondeti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a996038-bcc7-4c0f-8f27-ca36a2eb9d3d@roeck-us.net \
--to=linux@roeck-us.net \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=quic_mojha@quicinc.com \
--cc=quic_pkondeti@quicinc.com \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®