Re: [PATCH 1/2] watchdog: qcom: support pre-timeout when the bark irq is available
From: Guenter Roeck
Date: Thu Sep 12 2019 - 14:34:40 EST
On Thu, Sep 12, 2019 at 09:24:54AM +0200, Jorge Ramirez-Ortiz, Linaro wrote:
> On 10/09/19 11:06:55, Guenter Roeck wrote:
> > On Fri, Sep 06, 2019 at 10:54:10PM +0200, Jorge Ramirez-Ortiz wrote:
> > > Use the bark interrupt as the pre-timeout notifier whenever this
> > > interrupt is available.
> > >
> > > By default, the pretimeout notification shall occur one second earlier
> > > than the timeout.
> > >
> > > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@xxxxxxxxxx>
> >
> > Nitpick below, otherwise:
> >
> > Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> >
> > > + wdt->wdd.pretimeout = 0;
> >
> > It is not necessary to set pretimeout to 0; the data structure was
> > allocated with devm_kzalloc(). The compiler won't know that and
> > generate unnecessary code otherwise.
>
> will you need me to send another version or could you pick it up as is?
>
I applied the patch to my watchdog-next branch, with the line removed.
Let's assume that Wim will pick it up from there. If not, and
the line stays in, no real damage.
In short, no need to resubmit.
Guenter