Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85749C38A2D for ; Mon, 24 Oct 2022 11:39:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8947A806F3; Mon, 24 Oct 2022 13:39:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1666611590; bh=mIBFdoxxmyo6WnP/Q39Wr+MVwxmn/mK2y3sgHzXVV2o=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hWol7CTtCTzdhKqZ4d8Vak/BjRxlM93lF78/Mug5D52zhb8y4XE+Ghq8y8HHYrDU0 Xd4JOmfBLwMqbTqCesTM0cHdctBHIVvqNbmNJ9dNZh0fFGxd8t1G51o3MfrQoH7oMu tYXfqycKw6tjRYJzuIsvvIS7TSsgyWxYs5mRz/DxaxvNHS5NHZhkyrw8CqjHpa29CU uW11/AJOXZ2DFzI8c/4svZgqFWHuD5/SUYwr61eSizgieahMgWTBK4offpzZqPVYHH cBluAZ12gSnS8M7i5sxZmFDim9iIyuYFMogdRtIjH4OFMjoMqstH7KS+9bJfKnhKGd +H2lUGvdiM6xA== Received: by phobos.denx.de (Postfix, from userid 109) id C5DBF80700; Mon, 24 Oct 2022 13:39:45 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BA4E8806EC for ; Mon, 24 Oct 2022 13:39:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4MwtQV3xWqz9sNY; Mon, 24 Oct 2022 13:39:30 +0200 (CEST) Message-ID: Date: Mon, 24 Oct 2022 13:39:28 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v1] wdt: nuvoton: add expire function for generic reset Content-Language: en-US To: Jim Liu , JJLIU0@nuvoton.com, YSCHU@nuvoton.com, KWLIU@nuvoton.com Cc: u-boot@lists.denx.de References: <20220913061924.5502-1-JJLIU0@nuvoton.com> From: Stefan Roese In-Reply-To: <20220913061924.5502-1-JJLIU0@nuvoton.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MwtQV3xWqz9sNY X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 13.09.22 08:19, Jim Liu wrote: > Add expire_now function for generic sysreset request > > Signed-off-by: Jim Liu Applied to u-boot-watchdog/master Thanks, Stefan > --- > drivers/watchdog/npcm_wdt.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c > index 256020f5d3..e56aa0ebe1 100644 > --- a/drivers/watchdog/npcm_wdt.c > +++ b/drivers/watchdog/npcm_wdt.c > @@ -75,6 +75,11 @@ static int npcm_wdt_reset(struct udevice *dev) > return 0; > } > > +static int npcm_wdt_expire_now(struct udevice *dev, ulong flags) > +{ > + return npcm_wdt_reset(dev); > +} > + > static int npcm_wdt_of_to_plat(struct udevice *dev) > { > struct npcm_wdt_priv *priv = dev_get_priv(dev); > @@ -87,6 +92,7 @@ static int npcm_wdt_of_to_plat(struct udevice *dev) > } > > static const struct wdt_ops npcm_wdt_ops = { > + .expire_now = npcm_wdt_expire_now, > .start = npcm_wdt_start, > .reset = npcm_wdt_reset, > .stop = npcm_wdt_stop, Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de