Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6796038rwb; Tue, 15 Nov 2022 03:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZjAeRbpkbPHye4mgHkO3bUN/XIuBnon/vn0Q6T3VNYs5bN+ip9NkCSjSZQ+stRqb0qo2d X-Received: by 2002:a63:ec0a:0:b0:44c:9775:269b with SMTP id j10-20020a63ec0a000000b0044c9775269bmr16085022pgh.36.1668513537510; Tue, 15 Nov 2022 03:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668513537; cv=none; d=google.com; s=arc-20160816; b=r10IsHOxB40oZB8MHaM1h4fe3C29W8XZYZJArqJxSfwfUVL5NWqSfqRXGvB4URzJyU eKgEYqmXsuYdQNcXusqYFMcyEpiPrZoyOHLMX5FxEZrrBA0/fR1sDJPnarMUFJzQ6/FR W7wunfuKGkbf997kpCnVggRveuKJNaHQ0XaaZPglj67Hb60PfygFekcz8TqP3Lefrk0G tHQzqR07oON0/SaoZJLrVn9AT3tZvmdyjuS6mmx23QZK1qbSV0J9jaXJWkQUch72l+zp 1maA/tUX1+QTP0wF9hb2L1BzXZFbXbX5hSy/HPHP6L6EQcsotjU10sDzXGitEQWH4tGz X05A== 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=BA2CWCVGl9t638t20MIgFEb/h4vxxJbrtiSjuWUGMYE=; b=eFtpKpe6CEwUAFpS2TwpI+rPrlYroZSeE2E8ShaUW5aUNvpX8OOs2JcrMP1nssvRX0 4kiwn9MmN30Dd+ItyXhVVjufFm9o0pbHSjpsTbcQbUkCWpyOGecEyujtJRvenCdMNPvu eZRSKlzpF4VWUwXYscczkHpLEwyD0bZaPRZCmkKK5WW/UAJfYVUrmcUOLcG3X/mTJFlx Di6PLZKdHIBKiu4omKdxgjt7/P4PKSslVXSsEGnjtny6EZH0b1w9WZIVtqqs92WLVSWG SaOnNCObGCjwQi/HVBmweZy2W1vp0mpCE8nTo0Mc8kMx04IUdbL6SuJ8tygZlGN4+Wl6 FGpg== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a170903019100b00188d23093e8si2671436plg.319.2022.11.15.03.58.45; Tue, 15 Nov 2022 03:58:57 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiKOLUv (ORCPT + 89 others); Tue, 15 Nov 2022 06:20:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232452AbiKOLSo (ORCPT ); Tue, 15 Nov 2022 06:18:44 -0500 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [5.144.164.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3442826AC9 for ; Tue, 15 Nov 2022 03:18:04 -0800 (PST) Received: from SoMainline.org (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 18AB61F644; Tue, 15 Nov 2022 12:18:02 +0100 (CET) Date: Tue, 15 Nov 2022 12:18:00 +0100 From: Marijn Suijten To: Brian Masney Cc: Thierry Reding , Bartosz Golaszewski , Linus Walleij , Andy Shevchenko , Dmitry Torokhov , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski , Konrad Dybcio Subject: Re: [PATCH] gpiolib: of: Use correct fwnode for DT-probed chips Message-ID: <20221115111800.t6i6fuszhuasvgka@SoMainline.org> References: <20221111113732.461881-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 2022-11-14 16:15:25, Brian Masney wrote: > On Fri, Nov 11, 2022 at 12:37:32PM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > The OF node store in chip->fwnode is used to explicitly override the FW > > node for a GPIO chip. For chips that use the default FW node (i.e. that > > of their parent device), this will be NULL and cause the chip not to be > > fully registered. > > > > Instead, use the GPIO device's FW node, which is set to either the node > > of the parent device or the explicit override in chip->fwnode. > > > > Fixes: 8afe82550240 ("gpiolib: of: Prepare of_gpiochip_add() / of_gpiochip_remove() for fwnode") > > Tested-by: Marek Szyprowski > > Signed-off-by: Thierry Reding > > Reviewed-by: Brian Masney > Tested-by: Brian Masney > > I separately sent a similar type of patch to fix the same issue today: > https://lore.kernel.org/linux-arm-msm/20221114202943.2389489-1-bmasney@redhat.com/T/#u For completeness, your linked patch fixes a synchronous external abort on multiple Qualcomm platforms pointed out in [1]. This patch however does not, are you sure they fix the exact same issue? [1]: https://lore.kernel.org/linux-arm-msm/20221115110800.35gl3j43lmbxm3jb@SoMainline.org/ - Marijn