Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3167712pxf; Mon, 15 Mar 2021 03:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXzJhc87RsY1he1437W5AVbLpf+b02DGAI40/3FznASWIKMRR7wi0ekIN//CcqPY4wlggZ X-Received: by 2002:aa7:d917:: with SMTP id a23mr29107219edr.122.1615803618394; Mon, 15 Mar 2021 03:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615803618; cv=none; d=google.com; s=arc-20160816; b=x4+/Xg/8D7dRyVxImHHoltQ69QsLt1yuDonPW7wiodHXJEY9sGaKtA6LlgSjPoBl2C bhLxhCyInnLl0o1yjnR//9u5hCFkPaUxsJAS2sBjWZj3xNoQX+tROw+VB6kF/Ra8Q+Ws +3QWiG1TuP86bBB03g/loJIFgtSxqnCA+FmZf3S+p/mPBQRxG9zybTo3lgNwvcWCAB/g b+yo1+n0Ht0RLLh21tPsjrYatb/eGvKJmUVs1FfXC0vrS7FJ3qv5Ddd0LzdPYzTICaNX Qug5Q6FHtOtOeOKLh+08goO9IshNfsJakBanMkbJLDmwZBuj8TYrBHkk7YzFo4yB7q9J b3Bw== 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 :ironport-sdr:ironport-sdr; bh=8BJHt/foqR2bE8PkK8dWnmAgqM6WMlIihIZGoshSS9Y=; b=OJUXAb4tR2yXgP18TrmtobfcXEOaDXt9U5eqKuQpNl8UB0tb4ZfLf2RaDOnwjoFjyN VNoUBNmdPC2jlWW/SOuRKriQqX8fKHWGBGnFPf4c/Sg+lrDdDvmQ7mjnMcMX9jGWGjPR +uBgWQ27+7rDRUSqqC6RyAVQb0HKV0Dcrgo3HMwyVwLBfltfmd0ijeGWriupixRvYKbB r8PD+721zRNd9eID+Ntki3sWU0r52l6BySHKYKpyacXcC4GBM/AYBjTk5ctkF5ucldyx tmsCPSgW35CVJcGf9T0yCttC5dOpBfzxIS5Szr2V5krnCN/xgPAFHmvnXSm0wG3+Awlx ekNg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 e7si7570353edk.222.2021.03.15.03.19.56; Mon, 15 Mar 2021 03:20:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbhCOKQr (ORCPT + 99 others); Mon, 15 Mar 2021 06:16:47 -0400 Received: from mga05.intel.com ([192.55.52.43]:14241 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbhCOKQc (ORCPT ); Mon, 15 Mar 2021 06:16:32 -0400 IronPort-SDR: f8wtgg8Jt7dm7zVHZfCcHfhOQNVrHvua5zZgAXe0F8OX0rBaBFBb+VUvxvGaLYTQMIY6U7DHZo OEoxMqReL4ow== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="274106523" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="274106523" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 03:16:31 -0700 IronPort-SDR: CnWuOi8amMBycx0Vxpin37vx5cILfhLTUswCWGPN1pLcp0upQvxUxuYG6eJzsm+pIuZlE6mnPG QN3zH7GQCAcg== X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="522106603" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 03:16:29 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lLkGw-00CeEm-RJ; Mon, 15 Mar 2021 12:16:26 +0200 Date: Mon, 15 Mar 2021 12:16:26 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linus Walleij , Bartosz Golaszewski , Marek Vasut , Roman Guskov Subject: Re: [PATCH v1 1/1] gpiolib: Read "gpio-line-names" from a firmware node Message-ID: References: <20210305120240.42830-1-andriy.shevchenko@linux.intel.com> 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 Mon, Mar 15, 2021 at 10:01:47AM +0100, Bartosz Golaszewski wrote: > On Fri, Mar 5, 2021 at 1:03 PM Andy Shevchenko > wrote: > Unfortunately while this may fix the particular use-case on STM32, it > breaks all other users as the 'gpio-line-names' property doesn't live > on dev_fwnode(&gdev->dev) but on dev_fwnode(chip->parent). > > How about we first look for this property on the latter and only if > it's not present descend down to the former fwnode? Oops, I have tested on x86 and it worked the same way. Lemme check this, but I think the issue rather in ordering when we apply fwnode to the newly created device and when we actually retrieve gpio-line-names property. -- With Best Regards, Andy Shevchenko