Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5968857pxb; Mon, 14 Feb 2022 11:58:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqlI/2A/ZmFgC67u0cDZyTsSkxqVxOKZvmBKoYiedG17gjgyBjAnVGRLzr4DSLehTCxnxf X-Received: by 2002:a17:90b:4a92:b0:1b8:a3c5:1afe with SMTP id lp18-20020a17090b4a9200b001b8a3c51afemr267125pjb.69.1644868698604; Mon, 14 Feb 2022 11:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644868698; cv=none; d=google.com; s=arc-20160816; b=YyZELHDG/SFPeK3y8T/HZTFl9t8ted90wnbpzQnG5AcVBoOLWQ1uJdJLsBByR3bvEz 5O+GeFhCtxM05tzKQbf/KTwJsZ72N69jYzf4dc1/n2UzV7V4f6bWXlo2u3TIj6XmkuIu ItPBBgwbzui792SRnkfSRRM1QaRAR++WUqYmyz/KMvg6Pm6Uav71Mq/3m0M54teWYfhG loL6A5RVwXk1HNLD4xFUTv9K6HbGakrDAy5r3CJC/+4uZwxnCbb3aZ26GhkjFrKYz/bw PTMfH4kImSp+QfR2ywfGnk0k/Nh0JH1YQK1lphms9wY1QsQBtDAmNeXYRCzhl05FplIW wW+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7RHiKZsY59wISE4AYIiP/ixieiK00lmTUSWXlAgJM/8=; b=Xj218uQw++TyrozGJrPy6A5aJIQ2ES0F/OWrCMZiQyZBi18wO9F2FKGUNpzAsTug+L XU8YCNhcoOPyLCrIDrOpklfY9D1Lgy+hSH/6klF7hPvyP9qhVrB2cFnA64his9Bmv5e8 dWqVI+/PMMFpeNNP7TkXUSvKRWwxNpY664YH6szXQY7jJlPfhdgNDaMp4nrU62PZjlA/ IoohqeU9MWO4SAr/6i9UEPWTKIXDLltAhWugjfUfcXB95cKslaJs/H77sxL1yR03O7tP D9bOi3qB23vq9xhwQkmdp1dUWP1G/sfdL5+WPNemedJNoXA5npp6rBQI+X8zCXmYTSsb D6ZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p17si5123596pjo.36.2022.02.14.11.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:58:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 024B2107D3A; Mon, 14 Feb 2022 11:39:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354854AbiBNOCL (ORCPT + 99 others); Mon, 14 Feb 2022 09:02:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354846AbiBNOCG (ORCPT ); Mon, 14 Feb 2022 09:02:06 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79A5A4A903 for ; Mon, 14 Feb 2022 06:01:55 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJbu2-0007Aw-Jd; Mon, 14 Feb 2022 15:00:30 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nJbu1-00GYgZ-R1; Mon, 14 Feb 2022 15:00:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nJbu0-0038OM-4h; Mon, 14 Feb 2022 15:00:28 +0100 Date: Mon, 14 Feb 2022 15:00:27 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Geert Uytterhoeven Cc: Andrew Lunn , Ulf Hansson , Vignesh Raghavendra , kvm@vger.kernel.org, "Rafael J. Wysocki" , linux-iio@vger.kernel.org, Linus Walleij , Amit Kucheria , alsa-devel@alsa-project.org, Andy Shevchenko , Liam Girdwood , Guenter Roeck , Thierry Reding , linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, Miquel Raynal , linux-phy@lists.infradead.org, Oleksij Rempel , Lee Jones , "David S. Miller" , Peter Korsgaard , Florian Fainelli , Matthias Schiffer , Joakim Zhang , Kamal Dasu , Jiri Slaby , Bartosz Golaszewski , Daniel Lezcano , Kishon Vijay Abraham I , bcm-kernel-feedback-list@broadcom.com, linux-serial@vger.kernel.org, Jakub Kicinski , Zhang Rui , platform-driver-x86@vger.kernel.org, linux-pwm@vger.kernel.org, Pengutronix Kernel Team , Corey Minyard , linux-pm@vger.kernel.org, John Garry , William Breathitt Gray , Mark Gross , linux-gpio@vger.kernel.org, Alex Williamson , Mark Brown , linux-mediatek@lists.infradead.org, Eric Auger , Takashi Iwai , Matthias Brugger , openipmi-developer@lists.sourceforge.net, Jaroslav Kysela , Benson Leung , linux-arm-kernel@lists.infradead.org, Sergey Shtylyov , Mun Yew Tham , Hans de Goede , Greg Kroah-Hartman , Yoshihiro Shimoda , Cornelia Huck , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Vinod Koul , Zha Qipeng , Richard Weinberger , Niklas =?utf-8?Q?S=C3=B6derlund?= , Brian Norris , netdev@vger.kernel.org Subject: Re: [PATCH v2 1/2] platform: make platform_get_irq_optional() optional Message-ID: <20220214140027.npw6ddrxklarb6wp@pengutronix.de> References: <20220212201631.12648-1-s.shtylyov@omp.ru> <20220212201631.12648-2-s.shtylyov@omp.ru> <20220214071351.pcvstrzkwqyrg536@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mxy3a336cmbyaspi" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mxy3a336cmbyaspi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Geert, On Mon, Feb 14, 2022 at 10:01:14AM +0100, Geert Uytterhoeven wrote: > Also IMHO, the dummy value handling is a red herring. Contrary to > optional clocks and resets, a missing optional interrupt does not > always mean there is nothing to do: in case of polling, something > else must definitely be done.=20 Note this is exactly why I don't like this change. I'd even go so far and claim that "a missing optional interrupt hardly ever means there is nothing to do". > So even if request_irq() would accept a dummy interrupt zero and just > do nothing, it would give the false impression that that is all there > is to do, while an actual check for zero with polling code handling > may still need to be present, thus leading to more not less bugs. Yes, a dummy irq value will just not be possible. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --mxy3a336cmbyaspi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmIKYHgACgkQwfwUeK3K 7AkfUwf+PjHT71nPQKjE5hOrUJs08gV3dPyFE+Lky6h3jHjtzp+VwX3waHB3n4Iy r1fdR+06wiK9BWaTD2PdT8FdEYo9n0yQlTx+03PQXtLFnutK7QSb0fBMQs7sVAfa nxp4CK8a1wlf0mzj1zSaeiGm6BYTsoJxoblrZ8hWbpbiVfhF6Eo5zXr0toHMI0WF QOhqgWNpQjHlpU+2paIvbOnBpNxJaXj3cycd6036NHAFQvZN5xrDdqHa+By0jeU0 bm8NmjRjwHCqvhBpRYUglt+KhyRYWWTC/83WFKviLwnPV7tnkh5ZhJE50aUUp1Lr hyNbZjQKG8NIOTLNKMgY4nM0uni8jg== =vr2/ -----END PGP SIGNATURE----- --mxy3a336cmbyaspi--