Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1198427pxb; Fri, 21 Jan 2022 12:04:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBjzoyM6eIPWxlToDq4bJN2vZ4eio2qkaOLXiJXrpVJqhukiK6z7EnKlOAksgE/+wllkVJ X-Received: by 2002:a17:90b:4c91:: with SMTP id my17mr2262933pjb.101.1642795448855; Fri, 21 Jan 2022 12:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795448; cv=none; d=google.com; s=arc-20160816; b=qadWN+Cb1OyRpDyNz4NUYFDL4ONi0fYF1ZA6qYJeAe2ny34g57tH/U/2MSwGZ1OpPH P5M3wCI1edQiu4rSO61d8p7ZNU4qgZWPHwXEM7hlVNiXF5LNsWn3qCE3iwcq15yZzeSg HkLyLNCzIzNOmUHZZyJGH0H0pSwCRPOqcDV922c29EDpSgEKMPDj0T5mxVSAkCVUbYGo NZ3A/7uI6QDOK49qhQkgUazcALzMOoOhYaKpHp/tmX6ipkFP9C3MymfyXk+7wgj9OwnK Yy+fNquWof9YtDC4eLpIzcmDIU5NEqDF9pE1lxi9PK2B/APYhTZh1TrIKiJ+ERrOVIOO HAbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TJLIj6FPzI2lP/RC8OWxFYGyUyM0Nd/dVjAMTmubrbU=; b=PCPrvWYCfnqzTUSGgrszM/WcfXb89hWLrGgmr3+5u01cS+nytHo856hSVfec3nfeOP TtbeKf02H+sSG+HxWVVT5YXnWmRoQ9N9EOvg5FDcDneI92Fn9C8mwOst+VYaJTKRpETh jqDQiammrcvp2kpNpOnK582oygD3+5D9rrnjRRWARl0f0lQctxpvgus2lRiq6atROCas QZf7ZmoT8m97mUtq3MKMuZilyKSKpnOZB9Y9uKxYlwQlU7iUfA/DGjbrNwDQj7SHurDl yZ0C/3wJc/PI8K6/7Uv6g8B//y+fD+P0U2SQGhuQQNPvGYOMXvukGXrTalLsl5pgwAQ7 NZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UKP5BPWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si9489422plg.343.2022.01.21.12.03.56; Fri, 21 Jan 2022 12:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UKP5BPWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245102AbiASU4j (ORCPT + 99 others); Wed, 19 Jan 2022 15:56:39 -0500 Received: from mga17.intel.com ([192.55.52.151]:54135 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbiASU4h (ORCPT ); Wed, 19 Jan 2022 15:56:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642625797; x=1674161797; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Zn3K2EdVeDLJCMJ0xbcykPqu/tTiNlke9kM/JdHhcyA=; b=UKP5BPWQ+uw2sBH+BM1UqeeTghbHvgaSjb/HR8XqV2m/L0x+YVEmxOGG flhgx042uwtvDmyFlbH1w3PHokLzPGv6z+k+i45vi98jaPXt+vr175APx AbZt1GcjiOufYlT52vxr4qzItwd0SVdtcN8WG3VZf89UFYd8sgki/FTZ0 nAJVaJF3b9itTPyNWKR/tIDClRlUTOZwB+qhiCz2ulEGjz2iqqn3ekqLu wBY0+mwl9tNWjORFuFbtJE0r88oQiNJ8px6dZJvxRVbsCoXYnnCWjk+qF bKdDmFFe8Dlc4vZoy0A9phMp1kTFErGo9dZCebUQjx5RAQ/pMMDiEL2gZ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10231"; a="225862988" X-IronPort-AV: E=Sophos;i="5.88,300,1635231600"; d="scan'208";a="225862988" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 12:56:37 -0800 X-IronPort-AV: E=Sophos;i="5.88,300,1635231600"; d="scan'208";a="615845335" Received: from smile.fi.intel.com ([10.237.72.61]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 12:56:21 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nAHz3-00CGxM-Ht; Wed, 19 Jan 2022 22:55:09 +0200 Date: Wed, 19 Jan 2022 22:55:09 +0200 From: Andy Shevchenko To: Sergey Shtylyov Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Andrew Lunn , Ulf Hansson , Vignesh Raghavendra , KVM list , "Rafael J. Wysocki" , linux-iio@vger.kernel.org, Linus Walleij , Amit Kucheria , ALSA Development Mailing List , Jaroslav Kysela , Guenter Roeck , Thierry Reding , MTD Maling List , Linux I2C , "open list:GPIO SUBSYSTEM" , Miquel Raynal , linux-phy@lists.infradead.org, netdev@vger.kernel.org, linux-spi , Jiri Slaby , Khuong Dinh , Florian Fainelli , Matthias Schiffer , Kamal Dasu , Lee Jones , Bartosz Golaszewski , Daniel Lezcano , Kishon Vijay Abraham I , Geert Uytterhoeven , "open list:SERIAL DRIVERS" , bcm-kernel-feedback-list , Zhang Rui , platform-driver-x86@vger.kernel.org, Linux PWM List , Robert Richter , Saravanan Sekar , Corey Minyard , Linux PM list , Liam Girdwood , John Garry , Takashi Iwai , Peter Korsgaard , William Breathitt Gray , Mark Gross , Hans de Goede , Alex Williamson , Mark Brown , Borislav Petkov , Jakub Kicinski , Matthias Brugger , openipmi-developer@lists.sourceforge.net, Mauro Carvalho Chehab , Benson Leung , Pengutronix Kernel Team , Linux ARM , linux-edac@vger.kernel.org, Tony Luck , Richard Weinberger , Mun Yew Tham , Eric Auger , Greg Kroah-Hartman , Yoshihiro Shimoda , Cornelia Huck , Linux MMC List , Joakim Zhang , Linux Kernel Mailing List , Linux-Renesas , Vinod Koul , James Morse , Zha Qipeng , Sebastian Reichel , Niklas =?iso-8859-1?Q?S=F6derlund?= , linux-mediatek@lists.infradead.org, Brian Norris , "David S. Miller" Subject: Re: [PATCH] driver core: platform: Rename platform_get_irq_optional() to platform_get_irq_silent() Message-ID: References: <20220112213121.5ruae5mxwj6t3qiy@pengutronix.de> <20220113110831.wvwbm75hbfysbn2d@pengutronix.de> <20220113194358.xnnbhsoyetihterb@pengutronix.de> <20220115154539.j3tsz5ioqexq2yuu@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 10:47:06PM +0300, Sergey Shtylyov wrote: > On 1/19/22 9:51 PM, Andy Shevchenko wrote: > >>>>> It'd certainly be good to name anything that doesn't correspond to one > >>>>> of the existing semantics for the API (!) something different rather > >>>>> than adding yet another potentially overloaded meaning. > >>>> > >>>> It seems we're (at least) three who agree about this. Here is a patch > >>>> fixing the name. > >>> > >>> And similar number of people are on the other side. > >> > >> If someone already opposed to the renaming (and not only the name) I > >> must have missed that. > >> > >> So you think it's a good idea to keep the name > >> platform_get_irq_optional() despite the "not found" value returned by it > >> isn't usable as if it were a normal irq number? > > > > I meant that on the other side people who are in favour of Sergey's patch. > > Since that I commented already that I opposed the renaming being a standalone > > change. > > > > Do you agree that we have several issues with platform_get_irq*() APIs? > > > > 1. The unfortunate naming > > Mmm, "what's in a name?"... is this the topmost prio issue? The order is arbitrary. > > 2. The vIRQ0 handling: a) WARN() followed by b) returned value 0 > > This is the most severe issue, I think... > > > 3. The specific cookie for "IRQ not found, while no error happened" case -- With Best Regards, Andy Shevchenko