Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp396133pxj; Fri, 28 May 2021 06:32:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKiWunahaWwNbMFtIAbcj8fMaR77DUamqGxOSaXnhisDcKyPI2aw+I3qHnO3Izz8Zmwqo+ X-Received: by 2002:a6b:e00a:: with SMTP id z10mr7293577iog.109.1622208740761; Fri, 28 May 2021 06:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622208740; cv=none; d=google.com; s=arc-20160816; b=Txmj1cqEyEeJlmcwWSx0FfgO1HZRZj0Dx6bbNJYXiQXmodKeU6z/Yi1k9BbfG/c0+e naoFJ5hERFrdG9o9SoEpWrJqfZA8DhPpe1BuLyvF9Mc+joPfzOxAD215Bv6Hfh83qRgO HDrFdMJ3dZA8rk6Zj/59YZEGSTIqEla6JXA09jqH1t3tFbYB6/PuGqp5Q6O2Xlc4ohde ZtPrE59dLCMY01IoEVEdgWEaOYgRmxOddu7fctsDOKxyKBzHX8KxGiIX4XsmwA7FRE4R Ih486FhAw5gYhad4GhscH5aEBzTOAzhDUV6Hd73zNogaPFY80WJLOW4vIZf4XVM6DwYW TNmg== 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=g3mmCoNI4rr5Q422xo7Oo1tMVJTYEB7ff61jiF1hxBA=; b=x2rRCrnvcxwZKSnzYeAWYepbv84Vlfwtev2o4b5/JTgb3CGi51vdGmvTn+Mru8cYup FvA2Ej9wQ9GelBhF4XB4WTMuwj313ZZtSQJJ0EaAnq6028EjAr6apvCFP3n75ZAM1PWl VfeoikkPEpZqjdU47J+uk5Gk9SwJaUI0TuOspw2XmAGkihNIrBoQCxfemZHMJgJACni8 hAKklYQlRK/APdt5LHP3NyyJR9qN9CDiuZng7DKZM+8PLGclKQzQaPfB0Mk4LEBuPcPV GWBvIgjRmeg+V/5g4ltFLk5v6uxM5HwrJzKOA5gOUxymoSsizdAoQKXpcDHW4jJSSCBY pCaQ== 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 h7si5101447ilo.77.2021.05.28.06.31.51; Fri, 28 May 2021 06:32:20 -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 S236573AbhE1LHT (ORCPT + 99 others); Fri, 28 May 2021 07:07:19 -0400 Received: from mga01.intel.com ([192.55.52.88]:54864 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236170AbhE1LHS (ORCPT ); Fri, 28 May 2021 07:07:18 -0400 IronPort-SDR: AP1FINOecpGiqcdbysLQnbtpDXfTljrAoixWaacWWDyWFjXRTFauzHB9ycrP31YeeJ5H6g+0Xi hB8VR5TGHaqQ== X-IronPort-AV: E=McAfee;i="6200,9189,9997"; a="224168436" X-IronPort-AV: E=Sophos;i="5.83,229,1616482800"; d="scan'208";a="224168436" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2021 04:05:38 -0700 IronPort-SDR: 5gUpgFI3ijJhpVhNYyLzYKRGjOJiehWYgVfNXasWTI5Jj0AXbkyROweD2+VTajJhQXIyB3FkTD Prch3rKKsLDg== X-IronPort-AV: E=Sophos;i="5.83,229,1616482800"; d="scan'208";a="547949947" 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; 28 May 2021 04:05:36 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lmaJ3-00FIT7-2g; Fri, 28 May 2021 14:05:33 +0300 Date: Fri, 28 May 2021 14:05:33 +0300 From: Andy Shevchenko To: Pavel Machek Cc: Amireddy Mallikarjuna reddy , Linus Walleij , Marek =?iso-8859-1?Q?Beh=FAn?= , Abanoub Sameh , Dan Murphy , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 00/28] leds: cleanups and fwnode refcounting bug fixes Message-ID: References: <20210510095045.3299382-1-andy.shevchenko@gmail.com> <20210528100254.GC2209@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210528100254.GC2209@amd> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 28, 2021 at 12:02:54PM +0200, Pavel Machek wrote: > On Mon 2021-05-17 10:30:08, Andy Shevchenko wrote: > > On Mon, May 10, 2021 at 12:50:17PM +0300, Andy Shevchenko wrote: > > > When analyzing the current state of affairs with fwnode reference counting > > > I found that a lot of core doesn't take it right. Here is a bunch of > > > corresponding fixes against LED drivers. > > > > > > The series includes some cleanups and a few other fixes grouped by a driver. > > > > > > First two patches are taking care of -ENOTSUPP error code too prevent its > > > appearance in the user space. > > > > Pavel, any comments on this bug fix series? > > I took these: Thanks! What branch/tree should I rebase the rest on? > For the "remove depends on OF"... I'd preffer not to take those. We > don't need to ask the user for configurations that never happen. What do you mean by this? ACPI is quite a good configuration to make use of it on the corresponding platforms. By default any discrete LED driver (in hardware term here) IC should be considered independent from the type of the platform description. Do you agree? If so, it means that dropping OF dependency is a right thing to do to allow users of those ICs to be happy even on ACPI based platforms. Note, entire IIO subsystem is a good example of this activity. All the sensors can be used now in ACPI environment without explicit requirement to have an ACPI ID, although it's highly recommended to acquire for the real products (not DIY ones). -- With Best Regards, Andy Shevchenko