Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3266106pxf; Mon, 15 Mar 2021 05:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8MkiSlspSsV8mOfCRDmTRylRk8kiKgSM37gXbmCNzsxZ9/WWp2yabtWj8R2dLiS8knjSS X-Received: by 2002:a17:906:311a:: with SMTP id 26mr23316032ejx.395.1615812734964; Mon, 15 Mar 2021 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615812734; cv=none; d=google.com; s=arc-20160816; b=NCvFnDz1IiA1CYkab1XZe+lMKEWMAQtRe2mLazOAG29Vc1aTxwOg1rHrwXy51SEJue HsXWEsT3DwgyD5G0sI9JdJzGJAMULDgpIyZhQUdMlrTjOJNHit9fTo+skLimvWsdNdVS YEd1iQOcyh5lQsrccpGjsejLqk+/K2Cl0z41gw6SSEMuc+Rt4JIeEVjTceTm6Sl8jwQN 9iGYp6cwd3+ZY4gbI/CIb6svDauMz3Mi63NYt288WM0EGRFOKywR9mQGzK+H3AsL2lLV vzeX6sTPR+sEBeWyw6ScmJxuAPpUvhe6m7qSix5WbFVWZEzLzqw6b58WrMx7mLuMtKwH VTgg== 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=NjXQdWFBJzO8ihJ9bGCLnj7d1IoMnG5hEOXiclie3gg=; b=ZbsNuul6As57wcCvT7aoUdkqMwczUnF1HGAOZnVm9HL4f3JRf+Io63UT0tWrS3WsM/ RYMItk/nuP+aPH4/I/8PQrHNfmFqRbGmK1UNPcmkAW7m1DkVjlohK5N23ZHOYeiMVpJ1 5ODF11WYR0rfBVE32ABXAQIhGyofj0poe1tjgwRh6LldIUb0HsfETIsIrybjCQs+LN1N fC2j/wT6t1YeJd00qk6UzBY8Q935KPm6EJQBE1WROHl+628obQFhUoNWCP3oMfuaHZZK 18LXG0NSSHVMHUY3ktbgUiHOeY5menO34b0wB/MhImbfHTA87wL5EM/v/wO5etmCzY6J d+xQ== 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 t3si10473518edq.578.2021.03.15.05.51.52; Mon, 15 Mar 2021 05:52:14 -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 S229702AbhCOMux (ORCPT + 99 others); Mon, 15 Mar 2021 08:50:53 -0400 Received: from mga18.intel.com ([134.134.136.126]:22548 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhCOMui (ORCPT ); Mon, 15 Mar 2021 08:50:38 -0400 IronPort-SDR: pP0tAGJLaFZFEB/N7t1b0+h3IW/+SX7tSTKMrS3NPGrCHy6pjbF8S1HcLCVWMIGN74Drb0natm tRZLmgXVhodw== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="176674480" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="176674480" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:50:36 -0700 IronPort-SDR: g/R/Dq5gGR6hM1qKL2p3YOCWWXbGCRbjXmDdbPgLRKqwjhnevWJ27efpXhWDwkunU4gtMvonah GvV3A6xBHkow== X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="511013126" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:50:35 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lLmg4-00Cg6W-2c; Mon, 15 Mar 2021 14:50:32 +0200 Date: Mon, 15 Mar 2021 14:50:32 +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 12:16:26PM +0200, Andy Shevchenko wrote: > 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. Hmm... I can't see how it's possible can be. Can you provide a platform name and pointers to the DTS that has been broken by the change? -- With Best Regards, Andy Shevchenko