Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3987437pxf; Tue, 16 Mar 2021 02:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMv9Pr0bBCMOiA803ONwJXg+aI6N8WSxLxKCrpOvZ/FTrL2U8z8R2cr/p8Mp0TlkaWCqXl X-Received: by 2002:a17:906:2bd7:: with SMTP id n23mr28772745ejg.502.1615888572303; Tue, 16 Mar 2021 02:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615888572; cv=none; d=google.com; s=arc-20160816; b=zL8HXgE8nDSy/AjjaRLnHX4MYxWlS8UdWG/CMAPNye+M9V6eEQn71aa85WdfWcFqQT pf1pCpgAwLM51FAKJwB1E2e+g925P0E0fFZG0aWve0j5sJwoX46uHEMmFwIf+X4W3guK 5cCtQ7Z2P30hjF45Vd/7fyQAKJol808lR3XAoKGKeFL5Wpf0JBir58z4l3XHDHGDyklg 0zQ7yptotzfXbJD9kOa5dVY2z5/MoKgMRP3Et0qaO39SpRhahqMoG3wF6V/wCODysP7A W2pP7tjmJvRib3bknlEcvCniJJS+ti2ZPI1JnRveRCvrXSWWfTqSF5Z8BcVUsX0TMHX3 v3nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DsUSpB8KDvtU13MPXxsrI2J60oAo4P7Zo1BswYf49H8=; b=KQoCXqRHD+ECy/Upsrslk4PG8FzliQEm6IK+c49+jcxYkUkbvI9bKMU+zQNM40QTvd 5+S4fzut0n1kijqBO8cQqXz4pSRmjhDC3yFMYABRBNpRuE+1em8bjspPiRmcKsvsXluv FlhM5at855L576s/sKP8YPlIlNhie/eiXK8bwTqk6QULegoLyvkPEGYybwE5d3eSsikY abPbgmvCtQAZo9nQ9bnsgELjpg2FfAsLftKOcswnltXZAzpfLXwZAgjR5/G7xZ+fQpt1 miqIkRDkXykFC6CxSQXCe0+L/QjZ/ZTl0YYdxn7+JR7oP4KiJYYZMlZQ9W9uE8V8cSQH EfdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n3LpybRd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si12668848edd.576.2021.03.16.02.55.49; Tue, 16 Mar 2021 02:56:12 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n3LpybRd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235963AbhCPJUT (ORCPT + 99 others); Tue, 16 Mar 2021 05:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235952AbhCPJTw (ORCPT ); Tue, 16 Mar 2021 05:19:52 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E998C06174A for ; Tue, 16 Mar 2021 02:19:51 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id dx17so70943340ejb.2 for ; Tue, 16 Mar 2021 02:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DsUSpB8KDvtU13MPXxsrI2J60oAo4P7Zo1BswYf49H8=; b=n3LpybRdzBx3JkWI3ww+k1ZW6NkdEzVVKho+bqJP7BEn8aG31SpiqpY4oQDzo24Lnl fQ69/9S1RmvTGUJaZXrFbkfR/ysKsuS5vxma9pjbXMwD5ddieo0VlDWXMiKvERwYCJyS h+ZVzmeh0vWFc2LbEpO2en8Ko9vxP9R7Mesd7jeuxyVqpdcCVEZNw+Pr0yJXg6itc7hG ARu76Mq+jS47ijP5BxoT7bxQaNIyq65RCJ40aJQUgeYHjVuEPkLDVZwof4hgJB8IG1m1 wrlIoXN0h6X2/ho9Fv1BITk5Yc98a3eoknPVFrX09BKtuBO/qLFJoTTlhfU93Ihg95kE 6RbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DsUSpB8KDvtU13MPXxsrI2J60oAo4P7Zo1BswYf49H8=; b=s02n2ucx8CddYNbJzkuQMgTdizn2NXwlURGVburLkTji6qgpFCUsxoCoHGJnkcws4X CaxBzZ/zzWvGb7PsB4ahziT7TBzm5mEvLGQpkKMdr2hV2dKPJWTT5RzN6t07yQVUZVNm 279/wMIEqs25miFETk1MTBZVUKKBOHRYNobeQlWD5Fxd6rShwvVRNmxDWNybOUauqxDd hqCbjp/sujDz16DNg6RS8g2yqHzpEpFf1IHrml91btw0pmPzfuHDvX+WS+NHsrnm9hVd aW3kVAxZCePw44aL1ETZXnW4/8RLDrFR2tl1Ot05MBmVBfsSvpyuVByOLtLq/D5/OEVl 68SA== X-Gm-Message-State: AOAM530gIuQdk4lXiJfyLDIpprcFnQEBHR+ZdnScHVb0zpHxuM7fNebr KNekR0V7UNDJz5TsnW3BI2VzYr0VY4G6m7fY7F97kw== X-Received: by 2002:a17:906:398a:: with SMTP id h10mr28914545eje.155.1615886390324; Tue, 16 Mar 2021 02:19:50 -0700 (PDT) MIME-Version: 1.0 References: <20210315184430.17755-1-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 16 Mar 2021 10:19:39 +0100 Message-ID: Subject: Re: [PATCH v1 1/1] gpiolib: Assign fwnode to parent's if no primary one provided To: Andy Shevchenko Cc: linux-gpio , LKML , Linus Walleij Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 7:49 PM Andy Shevchenko wrote: > > On Mon, Mar 15, 2021 at 08:44:30PM +0200, Andy Shevchenko wrote: > > In case when the properties are supplied in the secondary fwnode > > (for example, built-in device properties) the fwnode pointer left > > unassigned. This makes unable to retrieve them. > > > > Assign fwnode to parent's if no primary one provided. > > Bart, I missed to add you as a Reporter, feel free to do that or tell me I'll > send a v2. > No need, I added myself. > > Fixes: 7cba1a4d5e16 ("gpiolib: generalize devprop_gpiochip_set_names() for device properties") > > Fixes: 2afa97e9868f ("gpiolib: Read "gpio-line-names" from a firmware node") > > Signed-off-by: Andy Shevchenko > > Side note: The patch done in this way to avoid conflicts with the future > (for-next) code once it will be in upstream (v5.12-rcX). > > -- > With Best Regards, > Andy Shevchenko > > Tested-by: Bartosz Golaszewski Thanks for debugging this! Applied! Bartosz