Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp843466rwb; Wed, 16 Nov 2022 08:21:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf51LlwfeNTiI5/sqizcbQ/fieV/NXOPu3rXEtubQUFh/iLPBfGryIyd/u5QyMnhxHmGEfoE X-Received: by 2002:a17:906:d8ca:b0:7ae:e889:a49d with SMTP id re10-20020a170906d8ca00b007aee889a49dmr14348784ejb.81.1668615680372; Wed, 16 Nov 2022 08:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668615680; cv=none; d=google.com; s=arc-20160816; b=Ou4L6ExiNkepj+1WoUuEvkHAbYYO889oWI7by2flc7VdavT+6Bh20lZiH7K4cSS90h 29NovHHt0pYibtXrKINYIRhmmGI+7TnFxJGSRcsMYMuoXuvtbcQGltFbjOhD0CBmj+AZ LJfS4XhayjF+fdx2AJAHsSxsYF1x8AnQIc6vUoxrqaLTB9V0vgMe23cs6hIdbAJPf4+s VMX7UXvexVA5ezk3AJ5BE8tUc5eEFr2gaCCwO3ZcoCKnY2MtftliOUuTPBWA5hkyv1ku VAXT8RdXQX8WGfib7c8S/2mNgp839Z3cf8TtfWpK11gN4XAaZw7B7227kclcQjy3+IkH 4B4A== 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=A5wO9UhX5H+amOVYj93qJDNTDDHRJ1RWOCY1Ikr1oV0=; b=LvNWN95pHAvUiFzGfMmtKvvJYW3OdiJRRIjbO+liAU9/U/xVjzutQoBO9lw4yeX2u0 kXGogy0V6TgphmGXIse8GOSIhEwYg9Iu505Qu04RxxKX1FeSKz/pMYXl8n2C5+Mxnajn AT4LuR4rfHM6EsJMG7hQSgLbLbnxmVYiKtDLKefS5cE90RRLD8iHosvVEkLEfBbWsOsA 0ghk9vwQIC4OyKig3/SfV7npp+YQU+5Nk83qRnGM+uiMiSTIcCLxiu4YHl/J7gDl7ZC9 YsVhsjcgW/4OHhZRujXDLf5je5G9VEqP5BFHxGoIIYgTZWxZIq+m1gdpf+c2y6CaEKB0 hQiw== 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 o22-20020a509b16000000b00462e23be64fsi13010272edi.578.2022.11.16.08.20.58; Wed, 16 Nov 2022 08:21:20 -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 S233026AbiKPQHC (ORCPT + 91 others); Wed, 16 Nov 2022 11:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbiKPQHA (ORCPT ); Wed, 16 Nov 2022 11:07:00 -0500 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6281F56541; Wed, 16 Nov 2022 08:06:59 -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-r2.th.seeweb.it (Postfix) with ESMTPSA id 376F43EEAA; Wed, 16 Nov 2022 17:06:56 +0100 (CET) Date: Wed, 16 Nov 2022 17:06:54 +0100 From: Marijn Suijten To: Thierry Reding Cc: Brian Masney , 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: <20221116160654.3dofnzvouwfzt3sw@SoMainline.org> References: <20221111113732.461881-1-thierry.reding@gmail.com> <20221115111800.t6i6fuszhuasvgka@SoMainline.org> 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=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 2022-11-16 11:26:34, Thierry Reding wrote: > On Tue, Nov 15, 2022 at 12:18:00PM +0100, Marijn Suijten wrote: > > 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/ > > Can you check if the below fixes the MSM issue that you're seeing > (applied on top of my earlier patch, though with Brian's reverted > temporarily)? Yes that solves it too, thanks! - Marijn