Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2141282rwd; Wed, 17 May 2023 06:23:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/DcchQriFF3EHzXhZ9tEReEogmzIzHBWVjhzESs2zv8z/loc6wGlsFJnT9WenG6ZOaOFX X-Received: by 2002:a05:6a00:139a:b0:63b:7a55:ae89 with SMTP id t26-20020a056a00139a00b0063b7a55ae89mr977965pfg.27.1684329784823; Wed, 17 May 2023 06:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684329784; cv=none; d=google.com; s=arc-20160816; b=bpTddL4xew8Jbl7jGZuUhFBDN7ibfryEXijkwksubs6GaooYKDrWxYOv2+C8YiC3yV 31cxjHNH+M67y9/kNImDaw92TnwDiWQhaWkrzMz6Mo1VtdY2Q89AZmLFbABBs2NFRYrA 4h1QQvM7VwqnFoCpiBLoG/rAH3dxC6wsU1nsvzdJc6xAJLnPzW40BV12QAcLmMPVis+r 9YbkWy5yxfk67VFo8VRn3CvU+kbG0aKSY97Ffyx5AbAxFREcOeRmJmiO8dobo6pLTEzn 8EcTdlSBpZ2xjeLOUYcaA68H2psovIo9467yMG77KbqRavJ81uE3I5FGlJKVt9KBHnhD QtIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=HiOIFsakx0aMej54eXXoxdRm1SObTd8+GXwcqmC+gDI=; b=f3r02Ue6Gh1gPWO4uJEF8u1da93UnzN86P9O5Yd5ACXMYPNV8AMS8G/DO7pSwVDmwz jibIKNQ13NAufMJnxknnglEpnNXzt0O9m3Og3drWKYCosVX40qBsjg/ul/0cnoqevXao BfWxawRx23vlQ9XODCMh0FmR1gP0cuBbgExWyvXPel18vKQacTYSpkXm99+eahIiUG1s RURv3/NSHvh7WfuXMAuC5acLQX5iXn3E6s88rZuZ6KDM9lj5WV6OFPzuK2pTl+MMfjsX 43oxQKUrL+U9+VRXMxNkmy4uBphdTBh/geSkFf/AeyWnWi6vLhEj+5T0pyytKL6LsCX3 jAcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nQqbckCj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b0052c4296d8casi20231148pgb.325.2023.05.17.06.22.49; Wed, 17 May 2023 06:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nQqbckCj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231408AbjEQNJo (ORCPT + 99 others); Wed, 17 May 2023 09:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbjEQNJm (ORCPT ); Wed, 17 May 2023 09:09:42 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7091D10E; Wed, 17 May 2023 06:09:41 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f22908a082so958212e87.1; Wed, 17 May 2023 06:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684328980; x=1686920980; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=HiOIFsakx0aMej54eXXoxdRm1SObTd8+GXwcqmC+gDI=; b=nQqbckCj40fswXyyoyZANlw32GoODASyRy+I0BEcH8jVTq+9CS8dZsi7KJnYXhUTMu T8gm0LELievGmm4DCn0L08Kr+seIoYQuhmH8JJFTb5+4j6v4xFyLpxB3yTdEjB0Uy3Z2 Pz+zfFv6OWCLZRHo9un5cb4wBQOORGnQ33+GIOY5AyrE1ifnChl7DYc9slDOBybRZmZg gCbAeQs15epFThbzR9IlcsDHkEefxmLFxEiAiXvGYvT/RUtOtgRTr8WUlkLx3IalVvtz z9gRDvbnTAyhsrgTWhFfApJBf27hSb1sAmfTC4SgGMe2CSQXRh48XoQzExndoLzjP4ca NMjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684328980; x=1686920980; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HiOIFsakx0aMej54eXXoxdRm1SObTd8+GXwcqmC+gDI=; b=QnY+/zJEti03r0OVFFIInlLbaGUJpcvz4cOhzE5iEKmP6Zi1vYDedadge2bSDVCbyt QNroOSL4L1d26pbt9xbtFK+LAMyeU/CBrnv72FqylAt87xktVtAdw7Z7WtH5fjd5R8Py H8ffTBtp1A/1Q9bvxZPZBYX3VO7xDqSb8omu7UktBNR8vPLibguLpcFCYFrBcUCUmhtr QQNZFA7nmPeyrNhvB179+WBiwXVaH1KrlYs2wZyqMeN8ZvuAxEveKEcKjycgYEg9VHFf L3OXekf/cxb+jcgijaRO9msC9ud7Ejn4PGFckAX2nkAthdzk4n+9HO3dViN3Nf62ZKAP 1v0A== X-Gm-Message-State: AC+VfDxy3zukX5dlyh1ENfK8hmXzYax7B4ziK+r/2ty3LWly6fp6M6jT qlDXwSASp8QOifg3syB4jb4= X-Received: by 2002:a05:6512:21d:b0:4f1:22a2:989b with SMTP id a29-20020a056512021d00b004f122a2989bmr200043lfo.50.1684328979302; Wed, 17 May 2023 06:09:39 -0700 (PDT) Received: from [192.168.1.126] (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id n1-20020a195501000000b004f25129628fsm3372942lfe.151.2023.05.17.06.09.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 06:09:38 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 16:09:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US, en-GB To: Linus Walleij Cc: Matti Vaittinen , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Andreas Klinger , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , Paul Cercueil , Wolfram Sang , Akhil R , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, netdev@vger.kernel.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org References: From: Matti Vaittinen Subject: Re: [PATCH v4 0/7] fix fwnode_irq_get[_byname()] returnvalue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 On 5/17/23 15:43, Linus Walleij wrote: > On Tue, May 16, 2023 at 9:12 AM Matti Vaittinen > wrote: > >> The fwnode_irq_get() and the fwnode_irq_get_byname() may have returned >> zero if mapping the IRQ fails. This contradicts the >> fwnode_irq_get_byname() documentation. Furthermore, returning zero or >> errno on error is unepected and can easily lead to problems >> like: > > Also, zero is not really a valid IRQ, it means NO_IRQ: > https://lwn.net/Articles/470820/ > > I'll apply the pinctrl patches. Thanks Linus. I guess you noticed but please wait until the patch 1/7 gets in as the pinctrl patches won't do "the right thing" without it. (Just ensuring we are on a same page ;) ) Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~