Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3835297ybf; Tue, 3 Mar 2020 13:51:19 -0800 (PST) X-Google-Smtp-Source: ADFU+vvxZ4igl2XkNlsfrKP/PvGAFlEvcCulN0s63uzMXE+qyspdCWCCtyrUtrzonR0gy+ivTWEp X-Received: by 2002:a54:4098:: with SMTP id i24mr435619oii.149.1583272279547; Tue, 03 Mar 2020 13:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583272279; cv=none; d=google.com; s=arc-20160816; b=zSd4nj0Kr0BV2Osa1WTamQK1Uk3krgIWF9wEeRH6KyPG++6zFbj12EylimBvkui/iY NR8cSNHGnjEEUAnXp5Zlr+OJVFZH1JU6qqNqiJUklikmDyrUqgbsWq+x4wVobad/jR2k 1pSlNTrftFzJqSM8LqmAUkZilVBgsf+bff47SaDxvhRURhUR6QA/TYEawHYPe2ZolBuR 0mEhO+wp4vb8OS5uwVaA6kfmk9Sl1+4g6ya4sXE0/gqfW+HkQ35LKyzKHyKMEEz4VtGm prrRjjIez4EZ3+i4znj210FAOKs2SoFcCGHOl8fvKS0w77VRJNN1cO1ZtSCPsC0ax4NP ltbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Pogs7tPo/L/NBSyyRxPvOrbszi59KiJaOrJoFUbt2WY=; b=aFUprLhrwRntAPvuuGhpZnW6h/QWqiHI6St4EGcAEvgA5Epf3sOm41edJX/HlbIcS/ dlnD/lIFxL4rjeHjXW37yMiYMmgqEzOii7XkmUjObCipqLYcb2CuyfRcCXcpUguQZ01O JOUGlC1AXRxGbcooe+80OjpFJPAbzWxZ6WXMWSjvze8yDzMdOKxvo2FnJhIecyX3iZVa uV/f68X/R0K1S+zK0+DA0Bj7GoEZTGBppGqHrJstQ6ingc8zUsG7XBJMQRUGcpN/E0l7 NURv6y69brAiIGjjUjJ7Jh6wU18J/hEswLDtHpmzSUkpJFm2QUIW5k+49kEtuQj9XPCh 0Gtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Kn9+nUVf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si5627470ota.239.2020.03.03.13.51.07; Tue, 03 Mar 2020 13:51:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Kn9+nUVf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732608AbgCCVZQ (ORCPT + 99 others); Tue, 3 Mar 2020 16:25:16 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42929 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732580AbgCCVZQ (ORCPT ); Tue, 3 Mar 2020 16:25:16 -0500 Received: by mail-pf1-f194.google.com with SMTP id f5so2124892pfk.9; Tue, 03 Mar 2020 13:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Pogs7tPo/L/NBSyyRxPvOrbszi59KiJaOrJoFUbt2WY=; b=Kn9+nUVfu3l+nTvfNq/uPFWNk9LhmCulmVcbQTiFCrzt87NWiJeEfwUlfj+wvg/pjb 8vJWrV3V+QUc+z3cQ3rblXKBOnBh4cxRyH66THpI0TC/g+Yi9viEOfGKoZfvGRbjsTjb lSdn3NmShU2JTxYtekvZsreSYc4PxJETF0GwCh8nx85+DxwfC+3n+LZiR2Kf/nNOPHMy MgiM4+8WUBmXUpScefLvyeHOvU6Axf6+/U7aNd9PELE7dBj4GzXSYsRbsjkMCs7/ej5c Joga0FcKcl2GvMdm5uPoIztFnrnEtK5Jyrzb0zi7aASy+l0JUcZTktxDhE06nV7Xu1UD EKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Pogs7tPo/L/NBSyyRxPvOrbszi59KiJaOrJoFUbt2WY=; b=UKOKodjcmCYkC9ikFFqSh5i+H8ZrACW3UrUxUtTKKYtk8dfsPxWp1pcTaictpVSgZr e4NDsNbHTZFgMHdNqq09aH0GunnuumxjrMnkuwdvV8ZYWRp7rudzQcWMYObwI9xW88ZX X4J1tMotGIkOAQUlqGX6eGUS4CoZeCcYZhbJV4lsLttjU6RHzuFUfJubA1xaMawvR2lx jGhWX4Qww0ycR8d9UgpD2vC5bRjluLjZAZ/SNsJMsSpXeVotQe5+irdAl1VChHHSUpGw MhyWt35RIpwwkTeapICCZQDUKWjx/sZ9OwtZPKO08InAa3lpijQx6YbSyy2pCK/kGQ3e UPaQ== X-Gm-Message-State: ANhLgQ15PCucqbobasirCrKpKUqMnKM6Glo8MxA5mEMIXIK2He3sBwJA s1w14IRgz39BILNZJwOcbQw= X-Received: by 2002:aa7:8582:: with SMTP id w2mr5814744pfn.89.1583270714393; Tue, 03 Mar 2020 13:25:14 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id h16sm131571pje.43.2020.03.03.13.25.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Mar 2020 13:25:13 -0800 (PST) Date: Tue, 3 Mar 2020 13:25:12 -0800 From: Guenter Roeck To: Tomer Maimon Cc: wim@linux-watchdog.org, robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, avifishman70@gmail.com, tali.perry1@gmail.com, yuenn@google.com, benjaminfair@google.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v2 3/3] watchdog: npcm: remove whitespaces Message-ID: <20200303212512.GA20448@roeck-us.net> References: <20200303100114.87786-1-tmaimon77@gmail.com> <20200303100114.87786-4-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303100114.87786-4-tmaimon77@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 12:01:14PM +0200, Tomer Maimon wrote: > Signed-off-by: Tomer Maimon Turns out this problem does not actually exist in the upstream driver (as of v5.6-rc4). You might want to align your code with the upstream kernel. Guenter > --- > drivers/watchdog/npcm_wdt.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) > > diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c > index 84a728af6664..bd38bf1ee6a1 100644 > --- a/drivers/watchdog/npcm_wdt.c > +++ b/drivers/watchdog/npcm_wdt.c > @@ -123,30 +123,29 @@ static int npcm_wdt_stop(struct watchdog_device *wdd) > return 0; > } > > - > static int npcm_wdt_set_timeout(struct watchdog_device *wdd, > unsigned int timeout) > { > if (timeout < 2) > wdd->timeout = 1; > else if (timeout < 3) > - wdd->timeout = 2; > + wdd->timeout = 2; > else if (timeout < 6) > - wdd->timeout = 5; > + wdd->timeout = 5; > else if (timeout < 11) > - wdd->timeout = 10; > + wdd->timeout = 10; > else if (timeout < 22) > - wdd->timeout = 21; > + wdd->timeout = 21; > else if (timeout < 44) > - wdd->timeout = 43; > + wdd->timeout = 43; > else if (timeout < 87) > - wdd->timeout = 86; > + wdd->timeout = 86; > else if (timeout < 173) > - wdd->timeout = 172; > + wdd->timeout = 172; > else if (timeout < 688) > - wdd->timeout = 687; > + wdd->timeout = 687; > else > - wdd->timeout = 2750; > + wdd->timeout = 2750; > > if (watchdog_active(wdd)) > npcm_wdt_start(wdd);