Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1788158ybv; Sat, 8 Feb 2020 06:03:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzBb5BfYeByIqiRcMql6qCpLFEfSeSjbpAo7cwkMI/1x8F2eJ4RPSAru0A9ayY+wr322nqq X-Received: by 2002:a9d:7b4e:: with SMTP id f14mr3513305oto.355.1581170615528; Sat, 08 Feb 2020 06:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581170615; cv=none; d=google.com; s=arc-20160816; b=MwFiWJmrrhkqdcle4IX9qr63WgnqB18q7RMcDOCll5JtZsrCAjXFi2JBVU4GcqMLi3 Ov4YKA3TxAF2WhxABxayTopqfBz8WIo69674TgQwZPvpUIAby60qle7/H91oO0z63L9/ hHsg2DWYxzh6UMgZZENYVEzzQKsRyPSwKw025wK1sDvfoVCaY7qsXY2XTEhBCCMbx8xe pAIOafmhX0IxfelC3J+lBnw1fLimMELe2/LPTuZS4MTfUlmzqS0n+PLL2zS1Rj3KiKEo y0jAGXu7M21JwbYZ7fYm/dDQvR+YlZT5A1qHGVKRZvZbviBHyg8fZP406vxaNxxh8zWW sc8A== 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; bh=B21uA0B8781CBWzAtPQ7e1fQmvZzu9+Hrz+dNdNQ968=; b=qrQwhNnwSnhoyAj0dkGktmfkaIKlmqHZ01R+coNFXoKotVVVYlcyUxHDC1qUxf3Loo KeYDyQ3HMdlIK+84lBj5XXaG8oXrmBNehy0HTTA1JUmrzJtgeb/xiS6lWa2+CBNxw1jn MhMTC34i+sCb2RUypO60WzyGy07p53i/fP5qc+Btgj/D3xPVAJTK0PHzobaJRrXC4/Zx feFWp3jtZ7I3JUQHLC6gvW9aXXgEFx1IxXqxCwQ2WcrfGxT4MdvJ30ZSm7GMSGyVXLbI Pp+KW69xuEm0hKmFxSTbamqkgL4xLigGULvkh+EoaEzOidKGgnvYXsfjNIP8+5vuOWWU VosA== ARC-Authentication-Results: i=1; mx.google.com; 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 v14si1667678otn.293.2020.02.08.06.03.23; Sat, 08 Feb 2020 06:03:35 -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; 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 S1727471AbgBHOBz (ORCPT + 99 others); Sat, 8 Feb 2020 09:01:55 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46329 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727131AbgBHOBz (ORCPT ); Sat, 8 Feb 2020 09:01:55 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0QgC-0002DY-CW; Sat, 08 Feb 2020 15:01:52 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j0QgC-0004Fa-33; Sat, 08 Feb 2020 15:01:52 +0100 Date: Sat, 8 Feb 2020 15:01:52 +0100 From: Marco Felsch To: Guenter Roeck Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Thomson , Stefan Lengfeld Subject: Re: [PATCH] watchdog: da9062: Add dependency on I2C Message-ID: <20200208140152.op4dplfvljosnlvb@pengutronix.de> References: <20200208130803.23387-1-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200208130803.23387-1-linux@roeck-us.net> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:00:11 up 85 days, 5:18, 88 users, load average: 0.00, 0.04, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 20-02-08 05:08, Guenter Roeck wrote: > Since commit 057b52b4b3d58 ("watchdog: da9062: make restart handler atomic > safe"), the driver calls i2c functions directly. It now therefore depends > on I2C. This is a hard dependency which overrides COMPILE_TEST. I just wondered why it doesn't complain if no regmap support is on and surprise it provides stubs ^^ Is it worth to add i2c stubs too? Regards, Marco > Reported-by: kbuild test robot > Fixes: 057b52b4b3d58 ("watchdog: da9062: make restart handler atomic safe") > Cc: Marco Felsch > Cc: Adam Thomson > Cc: Stefan Lengfeld > Signed-off-by: Guenter Roeck > --- > drivers/watchdog/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index c3c8e0786a99..9ea2b43d4b01 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -207,6 +207,7 @@ config DA9063_WATCHDOG > config DA9062_WATCHDOG > tristate "Dialog DA9062/61 Watchdog" > depends on MFD_DA9062 || COMPILE_TEST > + depends on I2C > select WATCHDOG_CORE > help > Support for the watchdog in the DA9062 and DA9061 PMICs. > -- > 2.17.1 > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |