Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1148362ybl; Thu, 12 Dec 2019 10:21:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyZJbPKZm3d2hubuHegYtuYv9SkrbQjA2z/zbX+4HlWE6iZX+KGBi1dpIMsthxX/5FqFAWn X-Received: by 2002:aca:fdd7:: with SMTP id b206mr5646616oii.35.1576174865872; Thu, 12 Dec 2019 10:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576174865; cv=none; d=google.com; s=arc-20160816; b=BVrNuGC615rWhLkowTqw9XU5juke8XXbWjKg80TRlz0oP3H68eHYyJvl6EfxNOx2PK UMEDHkwqUFI1ntLBZxOmq7CT/l88FyJ8RA/6Q9NoOl/YCfif7jyVQEXinVK7q1gyHc+r 1BSOR9dzJq6lGCzNbHXbhNaEgb/N4lIf6gmKCKZqoV5xwkYSNSJZyaVmktKLYmh0eQGy idldwIgZRRuY3yN9dSuOcDhuEeg4kwsiikefTveC58O82m62iZqnoCjPKY3uryUHvcf1 lkjRbJ6Um2XTQHybO7/+gyYw/5oTQyf9UFNLjWG6Esq4tjqYMI0WD9oukMHLd58pyY1w pUJQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rgR8f1oUjZUBATiXVQBzGKim6OO45u2oQD6/qlDZ5vY=; b=TEjruaIIdNWdHgevoDR5y5LXlXYL4LnV2Nl2HoFDKt6DC+h4Xm6Tv7UypDCZz0VuER tCxdYo/5YCMuDEyHEOk1jbScLMY201dSqXaAJN9dN1Ayxun5uz0pU7M2+NXjs0jFQ52S CBoUAWM2sryU0ZFKC2dvfW8SmF7UeQSoAPfuepZnjnZ8B0vmy9Ncd5yIQ5inygEw+aYL gdl3b6/Jq5PNGpnreWTClgBaXkPxO5KIg/H3pcpv31EX5Zc3LwiUxnAJf9/y7zdnw60E da6v53XNjlzBooh8c0vjCNcNzzCiPcO76FQkwazjE53WJuGsQkGMbl56Ot07BIQh2uVY OJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Wtm9D6o+; 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 c131si3102910oig.170.2019.12.12.10.20.52; Thu, 12 Dec 2019 10:21:05 -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=Wtm9D6o+; 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 S1730305AbfLLSTG (ORCPT + 99 others); Thu, 12 Dec 2019 13:19:06 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45320 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730034AbfLLSTF (ORCPT ); Thu, 12 Dec 2019 13:19:05 -0500 Received: by mail-pg1-f193.google.com with SMTP id b9so1548026pgk.12; Thu, 12 Dec 2019 10:19:05 -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:content-transfer-encoding:in-reply-to :user-agent; bh=rgR8f1oUjZUBATiXVQBzGKim6OO45u2oQD6/qlDZ5vY=; b=Wtm9D6o+Rw8Z/2kp4hHqYDHWqiMHjwhwJqZhBTWYSHV2QpyziCmhpYw+iNK0EgzI3H zGleLoIAO28mM3cOv19mKVDWUK61FVVwzzD3+6kbxOz+BfeHEKNahCUGnzcKrhOEXE+2 aB/nCzugj9ZsvFyd+DPg/5v0DWreTLMC4vnEjGuYeg6Qyq3FlQrMI9sYVRBvRaVuWBDc e7sWjrPaysRzCNwpT/Y3OlICwSLUIgfRSM0eBOzYeA9WtZE3B87GJQT/f5eRnyPcTcYU Ig0qqPA6T1itDrUh/ZAm6nxFSZ3FSEXMYYWNjaTehaci/dCW3SrZZeqUJpfOQcp9jGgA SXLQ== 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 :content-transfer-encoding:in-reply-to:user-agent; bh=rgR8f1oUjZUBATiXVQBzGKim6OO45u2oQD6/qlDZ5vY=; b=boczkkHJLJ8eypLPeFv6fT8IUU/RFnDjb8f3KQH+dQkFwOc6hdRDlbREiYufvZUGFm Uc5k0syikhLMU4p/3vY0pWVaKIoDwP1ko30IuODX7qLOGlKx6Fgkjc9HxkTaidZ7Dkb1 0CkoFCmu/ZKajrEobfkAcq2embesjRHEJRKwEaCUJ7BLLLnd5lrYJTaxbbVUf9j5/HQA +KwvhezNPPWgn8IxnneW/yzt9l1UvmsM8k5Jf/2L+zJlFF/TZu7iM98hMokj1+mm7WXp A/9RbzdLraEO8iVpQVSWWgA2NasRV4EGTrDYzzSEYFHcylY8uAbxLBrVt8VD2Pz1HYam /Rzw== X-Gm-Message-State: APjAAAUaxv9vH+YGNjoC+2RyCpmjaCCnwa58RXiNe8cEiKMSkwrB4GkJ JVufobTpzPmI2R5X/COcLpygKr80 X-Received: by 2002:a63:fd10:: with SMTP id d16mr11817204pgh.177.1576174744975; Thu, 12 Dec 2019 10:19:04 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d14sm6702804pjz.12.2019.12.12.10.19.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Dec 2019 10:19:04 -0800 (PST) Date: Thu, 12 Dec 2019 10:19:02 -0800 From: Guenter Roeck To: Florian Fainelli Cc: linux-watchdog@vger.kernel.org, Wim Van Sebroeck , open list , linux-mips@linux-mips.org, Paul Burton , Denis Efremov Subject: Re: [PATCH 1/2] watchdog: mtx-1: Drop au1000.h header inclusion Message-ID: <20191212181902.GA31779@roeck-us.net> References: <20191211210204.31579-1-f.fainelli@gmail.com> <20191211210204.31579-2-f.fainelli@gmail.com> <21b7be75-db61-3b14-c57c-04af0b78b347@roeck-us.net> <3fdc99fa-f75c-33d4-e1c4-ec8ad185e2cd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3fdc99fa-f75c-33d4-e1c4-ec8ad185e2cd@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 Wed, Dec 11, 2019 at 07:38:29PM -0800, Florian Fainelli wrote: > > > On 12/11/2019 5:35 PM, Guenter Roeck wrote: > > On 12/11/19 1:02 PM, Florian Fainelli wrote: > >> Including au1000.h from the machine specific header directory prevents > >> this driver from being built on any other platforms (MIPS included). > >> Since we do not use any definitions, drop it. > >> > >> Reported-by: Denis Efremov > >> Signed-off-by: Florian Fainelli > >> --- > >> ? drivers/watchdog/mtx-1_wdt.c | 2 -- > >> ? 1 file changed, 2 deletions(-) > >> > >> diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c > >> index 25a92857b217..aeca22f7450e 100644 > >> --- a/drivers/watchdog/mtx-1_wdt.c > >> +++ b/drivers/watchdog/mtx-1_wdt.c > >> @@ -41,8 +41,6 @@ > >> ? #include > >> ? #include > >> ? -#include > >> - > >> ? #define MTX1_WDT_INTERVAL??? (5 * HZ) > >> ? ? static int ticks = 100 * HZ; > >> > > > > Given that this is nothing but yet another gpio watchdog driver, I'd > > personally rather have it merged with gpio_wdt.c. On a higher level, > > cleaning up old-style watchdog drivers, without converting them to > > using the watchdog core, is a waste of time. > > If that makes you feel any better, I was not planning on going further > than that, and yes, removing this driver and using gpio_wdt.c would be > the way to go, this driver greatly predates gpio_wdt.c and I have since > then not had access to my MTX-1 platforms which is why this did not > happen. We can attempt a "blind conversion" without testing, but what > good would that make, not sure. > It sounds like this is a purely cosmetical change to improve test build coverage for a more or less obsolete driver. No, that doesn't make me feel better; I get way too many of those lately. Worse, some of those test build "improvements" actually end up breaking real builds, which then costs me and others even more time to track down. We should really discourage that. Is there some challenge going on somewhere, along the line of "improve test build coverage" ? Guenter > > > > Wim, should we make it a policy to reject patches into old-style drivers > > unless they fix a real bug ? It is getting a pain to have to review those > > patches. > > > > Thanks, > > Guenter > > -- > Florian