From: Wim Van Sebroeck <wim@linux-watchdog.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Yassine Oudjana <y.oudjana@protonmail.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Matthias Brugger <matthias.bgg@gmail.com>,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH v2 1/2] watchdog: mediatek: Fix mtk_wdt_restart
Date: Thu, 7 Nov 2024 11:40:40 +0100 [thread overview]
Message-ID: <20241107104040.GA5233@www.linux-watchdog.org> (raw)
In-Reply-To: <2bd7a02d-c5bc-4926-8aee-0eed6eb490a2@collabora.com>
Hi Angelo, Yassine,
> Il 06/11/24 11:47, Yassine Oudjana ha scritto:
> >Clear the IRQ enable bit of WDT_MODE before asserting software reset
> >in order to make TOPRGU issue a system reset signal instead of an IRQ.
> >
> >Fixes: a44a45536f7b ("watchdog: Add driver for Mediatek watchdog")
> >Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
>
> I'd be more comfortable with a title like:
>
> watchdog: mediatek: Make sure system reset gets asserted in mtk_wdt_restart()
>
> or along those lines, saying what's this commit about, because a generic
> "fix" doesn't really mean anything...
>
> About the commit description - that's good.
> Btw, I wonder if maintainers can fix the title without you sending a v3...
I added it into linux-watchdog-next and changed the commit description whiledoing that.
Kind regards,
Wim.
>
> Anyway - you can get my:
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>
> Cheers!
> Angelo
>
> >---
> > drivers/watchdog/mtk_wdt.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> >diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
> >index c35f85ce8d69c..e2d7a57d6ea2e 100644
> >--- a/drivers/watchdog/mtk_wdt.c
> >+++ b/drivers/watchdog/mtk_wdt.c
> >@@ -225,9 +225,15 @@ static int mtk_wdt_restart(struct watchdog_device *wdt_dev,
> > {
> > struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev);
> > void __iomem *wdt_base;
> >+ u32 reg;
> > wdt_base = mtk_wdt->wdt_base;
> >+ /* Enable reset in order to issue a system reset instead of an IRQ */
> >+ reg = readl(wdt_base + WDT_MODE);
> >+ reg &= ~WDT_MODE_IRQ_EN;
> >+ writel(reg | WDT_MODE_KEY, wdt_base + WDT_MODE);
> >+
> > while (1) {
> > writel(WDT_SWRST_KEY, wdt_base + WDT_SWRST);
> > mdelay(5);
>
>
next prev parent reply other threads:[~2024-11-07 11:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-06 10:47 [PATCH v2 0/2] MediaTek MT6735 TOPRGU/WDT support Yassine Oudjana
2024-11-06 10:47 ` [PATCH v2 1/2] watchdog: mediatek: Fix mtk_wdt_restart Yassine Oudjana
2024-11-06 12:31 ` AngeloGioacchino Del Regno
2024-11-07 10:40 ` Wim Van Sebroeck [this message]
2024-11-06 14:57 ` Guenter Roeck
2024-11-06 10:47 ` [PATCH v2 2/2] watchdog: mediatek: Add support for MT6735 TOPRGU/WDT Yassine Oudjana
2024-11-06 12:31 ` AngeloGioacchino Del Regno
2024-11-06 14:57 ` Guenter Roeck
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=20241107104040.GA5233@www.linux-watchdog.org \
--to=wim@linux-watchdog.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=matthias.bgg@gmail.com \
--cc=y.oudjana@protonmail.com \
/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