Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3061491pxk; Tue, 15 Sep 2020 09:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuaVjXrGAgH7K4aC5WO+az9Gso0t0/1hcH0g+JqlmJOWHfxTnngEk0O7zRGhVhlfA7aVWk X-Received: by 2002:aa7:c98d:: with SMTP id c13mr23668612edt.199.1600186046417; Tue, 15 Sep 2020 09:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600186046; cv=none; d=google.com; s=arc-20160816; b=BWYIaZW7m6f9OMkMAys9FQmnFN4UEEIsXZtG+3ZEfptTIFvceQ1R97bAfGxlJBNI0z O5XFVE0fxfwpGk1CYk5Td+BwelL3HetF3ycrj4zKYV6IoGpWy6TeqeFJPdxGYnES33Bv kM7k3X5uYZEUbvmns9W9zabuZ1EJwyY2bxLMCU5PpmYsHZXmKpI+7rm2j1qk/qLyuIRE 0lbES8e/fQjNkg2Okyqka9eiYVqRsrxQ12phIlPhtcfkduQxuo+Ke7K4FdCf0m40moKA Oq3wbyvCP9KsSTFZAnWvsQ/DDkXODZOrBxNzHM6AfV9oH92tWFAJDGvmtTB47HRVVHUz LF1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=zR2bolyQ90bo9qZ9UvP+gPVyPpvNY1o9tSk+VINmdYk=; b=WwhFRvpUzWAd+Ugn1c+ZKHaBuaj5YZmaFA96H4p7VDMBWSznSqAE0Md/18Bs1RM5BU ICpdwJDg8a2HkKHcrwRteHmanR+rZBjwjiSxuSRWWz03Vw4sK+l8OUZgLZLDjJLfO8lU NQ39Pk5armJM0abCxK6/nBK43Ekp1XIKWCVpMrX8tiZuoVA5/IkV4oEa2UZh4D2GjYYo gayIzME6XwuV06FgKCvVxgUIDkunoZWJiijXO/JotzM0rLjoHz2Awfu3QUnO/u79WwmQ pu+mOvi7viq+OPJnfX+Jv58UQRyVTb/t19OF0G3dQ37dZfwt9JrAazoePUujtlQBIcj8 +OCQ== 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 rl11si7873883ejb.701.2020.09.15.09.07.03; Tue, 15 Sep 2020 09:07:26 -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 S1726586AbgIOQEC (ORCPT + 99 others); Tue, 15 Sep 2020 12:04:02 -0400 Received: from mga12.intel.com ([192.55.52.136]:55866 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgIOPTB (ORCPT ); Tue, 15 Sep 2020 11:19:01 -0400 IronPort-SDR: 2chJRFLSFNuT/Kkuae5HXmkw/8FMkvRN8lDL1YeFnashK5waWb8Ii4YsB3pveE+O61ObSnsXll Wjokkuxs/Wbw== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="138780933" X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="138780933" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 08:18:49 -0700 IronPort-SDR: +u98r1VJ5hfuSzKW7eq119tHZTmZ6xSzduMV9nVTCfBCdlZPXBYMmDhz7V26qbX8CW/Jm0vgo1 GX7CnnWld/kA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="335699967" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 15 Sep 2020 08:18:45 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kICh5-00Grgs-SW; Tue, 15 Sep 2020 18:16:31 +0300 Date: Tue, 15 Sep 2020 18:16:31 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Anders Roxell , Linus Walleij , Mika Westerberg , Kent Gibson , Greg Kroah-Hartman , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , ACPI Devel Maling List , Bartosz Golaszewski , lkft-triage@lists.linaro.org, Linux-Next Mailing List , Stephen Rothwell Subject: Re: [PATCH 0/3] gpiolib: generalize GPIO line names property Message-ID: <20200915151631.GD3956970@smile.fi.intel.com> References: <20200908125813.8809-1-brgl@bgdev.pl> <20200915131228.GX3956970@smile.fi.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 03:16:42PM +0200, Bartosz Golaszewski wrote: > On Tue, Sep 15, 2020 at 3:12 PM Andy Shevchenko > wrote: > > > > On Tue, Sep 15, 2020 at 02:01:56PM +0200, Anders Roxell wrote: > > > On Tue, 8 Sep 2020 at 18:40, Bartosz Golaszewski wrote: > > > > > > > > From: Bartosz Golaszewski > > > > > > > > I initially sent this as part of the gpio-mockup overhaul but since > > > > these patches are indepentent and the work on gpio-mockup may become > > > > more complicated - I'm sending these separately. > > > > > > > > The only change is adding additional property helpers to count strings > > > > in array. > > > > > > > > Bartosz Golaszewski (3): > > > > device: property: add helpers to count items in string arrays > > > > gpiolib: generalize devprop_gpiochip_set_names() for device properties > > > > gpiolib: unexport devprop_gpiochip_set_names() > > > > Ha-ha, OF unittest is of_node centric. definitely there is no backed device. > > > > Bart, it seems we are stuck with fwnode interface. > > > > Wait what?! This means the implementation is wrong - the whole concept > of device properties is to be generic and to hide the underlying > fwnode or OF properties. If anything we should fix > device/base/property.c to fall back to OF. > > What is happening exactly? If all fwnode code compiled out? > > I'll try to give it a spin and see what can be done but I don't like > that device_property_* functions fail if you have OF but not fwnode. Read my next reply. It seems only OF unittest issue % git grep -n -w fwnode -- drivers/of/unittest* | wc -l 0 % git grep -n -w fwnode -- drivers/of/ | wc -l 50 -- With Best Regards, Andy Shevchenko