Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6715086ybi; Mon, 22 Jul 2019 00:15:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrIZQU5bMDyAv9BlHjGWRibmiAykmlp+8T2Knk1kX8XZMmT5HKKunPepEFnJM4RnVSrt5E X-Received: by 2002:a17:902:1aa:: with SMTP id b39mr25165149plb.333.1563779701089; Mon, 22 Jul 2019 00:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563779701; cv=none; d=google.com; s=arc-20160816; b=06OK5mEyQKVUgcsQnaAZ1MEcH4bkCrb7lJ5XXvC/2LzVM/ne1gm95O5KQ4T9DwJerv 3SuXIuAXzq+8u5LgaLO5De6yACAdIJ4Eb0phRoYP/aGux5xVr8YCBrgKadG1eQujM8Sq 3DKSKe3tmC7ND7QewKp0PZa+vveOLKRXdG8U26BnGlvUxJO4JRxtcbLIeQnHSst0rRVs HXJwU4Z36u7VZEKUID1Kngy7aeWhYw/ZUkJSpLHt6wJOjjdSI/aucng0gUOSJE2t0Xgy tOvzv1Gn2GuPm+Hj2nVHSqGdZD2JSD5MpZ6SaX5QRHQBzbpcNy5rBnwUA86fhjhalkXa oyYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7AKc4S2JdeQQN46PQF2XtG4Lb0wPXYNR/5uOmrJuwCI=; b=IFIXtLWbBY+bLLpLmQJTd5WWasx7rBxOTkxGpk5TMqmMyULue6DZRqbXOFauQs3KHW R5E2ngatLW17CmumqtruVK6Vk/FJbMH5dAa6pWg5HkKwPmAw7timJB27024QO+hjSton PVfURVqu6kucMv88Qa8gBw33A60eGK61WcdfAtWTFSOWk+iyYzuCv23ESWhrTgPOk7sF gKoYYNXgZ+0p1mU5NDX0tfTbb0nI4cd4LmMjqY6xVotKsyZrKUjxADzJqt5mN/6aoNM6 G8mLkQjGxrECyyAAsFlo7PeXEKt4G/0DHJ2/b9mnUpYiZkzuFremay4MbGdo8Dww8cM0 lwUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n1V9ILuF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si8311460pga.99.2019.07.22.00.14.45; Mon, 22 Jul 2019 00:15:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n1V9ILuF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfGVHGZ (ORCPT + 99 others); Mon, 22 Jul 2019 03:06:25 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46085 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727576AbfGVHGZ (ORCPT ); Mon, 22 Jul 2019 03:06:25 -0400 Received: by mail-wr1-f67.google.com with SMTP id z1so38113319wru.13 for ; Mon, 22 Jul 2019 00:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7AKc4S2JdeQQN46PQF2XtG4Lb0wPXYNR/5uOmrJuwCI=; b=n1V9ILuFGiEzUzu6vh751kEk3R4i+V91IXoSJlqrNELQuIg9OTOSXjvfRoFZMI+qUD sOseYkxLIKd4eQl8a5NQ/NwTMJP+faWHBKb6arB5aWYQJ8Hk5Is5HkhGPzTSghZ2fzld f4fU6UER4R681nXx7VKwHMCTJ6SR5cOEOzzGx/7wTBJejfu/IrYARxwWYhUnSkEpzo+l Y2mV85siW50mM8hUNQWpTxhJw4ZqqcVhgG4ouq3XWIRjDymNdHITh9h62hFuRGkOvL9O sLwaogitA6gF7TXq0HTDti5ZkYFk+g2ITjoZR8ThP5JY3QAnhjju10fFUm313K4f4CEs eTFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=7AKc4S2JdeQQN46PQF2XtG4Lb0wPXYNR/5uOmrJuwCI=; b=ltjYAFajaD42dV3kfB+K6NyGMSgOx550lKjTxqJXXLvBSaAAPikNAqdC2s8sVpEZv0 93x52xttL4C/bl9ykxf1VNl3oOcQNy084ogC5FFoHAzCTERu/z2vFuVDPYa+2ZG6k6Ij gy4ESOzraJkyp5uiadA/qF9JjhLKxf44DpSso36MDvrS4WLqR4BT0RlZc/9yLh1fPOZ0 AHDsexuzYKdO0da6e5tqvKo+sNLdkVYqZpQ1FR9r/CKdBhPRKmNUecsukGylGDzBEnB9 dYtLcJpJJQ1+d+QzEhVRFpbs/opzFgKEFCdVEAWEPPLUC3GzGdtxrTYPyHK3WRRPyG0W NAgQ== X-Gm-Message-State: APjAAAUuo5z22kZ95qAQeGtSbBHm7Yv1f5dKxWaIGpA72VnSD4wPFagc oLfWlklMKtlFimeXVGipdg89Fw== X-Received: by 2002:a5d:4211:: with SMTP id n17mr4118838wrq.137.1563779182766; Mon, 22 Jul 2019 00:06:22 -0700 (PDT) Received: from dell ([2.27.35.164]) by smtp.gmail.com with ESMTPSA id k17sm42778533wrq.83.2019.07.22.00.06.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 00:06:22 -0700 (PDT) Date: Mon, 22 Jul 2019 08:06:20 +0100 From: Lee Jones To: Jacek Anaszewski Cc: Jean-Jacques Hiblot , pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, daniel.thompson@linaro.org, jingoohan1@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, tomi.valkeinen@ti.com Subject: Re: [PATCH v4 0/4] Add a generic driver for LED-based backlight Message-ID: <20190722070620.GD8402@dell> References: <20190717141514.21171-1-jjhiblot@ti.com> <283d9044-df2d-b176-bea9-7e1520d9cf56@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <283d9044-df2d-b176-bea9-7e1520d9cf56@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Jul 2019, Jacek Anaszewski wrote: > On 7/17/19 4:15 PM, Jean-Jacques Hiblot wrote: > > This series aims to add a led-backlight driver, similar to pwm-backlight, > > but using a LED class device underneath. > > > > A few years ago (2015), Tomi Valkeinen posted a series implementing a > > backlight driver on top of a LED device: > > https://patchwork.kernel.org/patch/7293991/ > > https://patchwork.kernel.org/patch/7294001/ > > https://patchwork.kernel.org/patch/7293981/ > > > > The discussion stopped because Tomi lacked the time to work on it. > > > > changes in v4: > > - fix dev_err() messages and commit logs following the advices of Pavel > > - cosmetic changes (indents, getting rid of "? 1 : 0" in > > led_match_led_node()) > > > > changes in v3: > > - dt binding: don't limit the brightness range to 0-255. Use the range of > > the underlying LEDs. as a side-effect, all LEDs must now have the same > > range > > - driver: Adapt to dt binding update. > > - driver: rework probe() for clarity and remove the remaining goto. > > > > changes in v2: > > - handle more than one LED. > > - don't make the backlight device a child of the LED controller. > > - make brightness-levels and default-brightness-level optional > > - removed the option to use a GPIO enable. > > - removed the option to use a regulator. It should be handled by the LED > > core > > - don't make any change to the LED core (not needed anymore) > > > > Jean-Jacques Hiblot (2): > > leds: Add managed API to get a LED from a device driver > > dt-bindings: backlight: Add led-backlight binding > > > > Tomi Valkeinen (2): > > leds: Add of_led_get() and led_put() > > backlight: add led-backlight driver > > > > .../bindings/leds/backlight/led-backlight.txt | 28 ++ > > drivers/leds/led-class.c | 92 ++++++ > > drivers/video/backlight/Kconfig | 7 + > > drivers/video/backlight/Makefile | 1 + > > drivers/video/backlight/led_bl.c | 268 ++++++++++++++++++ > > include/linux/leds.h | 6 + > > 6 files changed, 402 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > > create mode 100644 drivers/video/backlight/led_bl.c > > > > For the whole set: > > Acked-by: Jacek Anaszewski > > Lee - we need to create immutable branch for this set since there will > be some interfering changes in the LED core in this cycle. > > I can create the branch and send the pull request once we will > obtain the ack from Rob for DT bindings, unless you have other > preference. We also require a review to be conducted by Daniel Thompson. After which, an immutable branch sounds like a good idea. I'd like to create this myself if you don't mind. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog