Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3175548ybi; Fri, 5 Jul 2019 03:11:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx495yV9cZ5/NcbsHifCosggJUQ0Zd8gP2ckyDSCj+DVAL6ST5VcHAIjwn0MYP7gfg3DBw3 X-Received: by 2002:a17:902:1e6:: with SMTP id b93mr4413350plb.295.1562321470566; Fri, 05 Jul 2019 03:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321470; cv=none; d=google.com; s=arc-20160816; b=Dh457ZObWMPIvX53AHg2Caf4IiMI2S2yFEK8TZxJgRDNtW2hiHSoN682KKe1CoAYt4 6olVmDQ0ta5lh/JktD4mddARvtbNfGO80mW55NXCQUdFbJOZfO9od40rm1pvDv3+Mqhd yoC1ujBmddbiuR+wjxAQ14awSMBEeeUo00WnGbMyeSHLcID+hJ1M1EVtGwLjOOeYxcbo RISg/D3Hf++R+JG1JpJtIOOIA+DwA3uC2JdKQIe5pjfMAhSoiTPKaUQPxK9nfVs5wJHo u4j6TUqsiWL+Gxb3QBwhtGYjYHKQo6XbtBK07YfwBLAp0/DPyIrgXhE3DSVsvrb9pDtg 4sOw== 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; bh=FRtNdr3Kl+CeOGmc9r0UFrGbt3pux0fuZBh9GWWm8So=; b=WX8v2F/zRFA4/DlX3dXvGtqqbWPtK0TlQODVJMujU2/v5M4XEL51OoZNji4SxCT+0z V0Slr7OTqQos8ox4L7Z01ln3cVe2EY8wyXvFg3Je4f79Hfe4MfTWdbnEdwz4i4p4nepL nWci9AQ9dngug1yNdZNKALBdPLcaTgMitt8t5CgRcKLarncGqSJHlzvWouyUoqRse3Oz guxKrz1BVRzrXVbddYioMh47fiVbjD00i97LaByRaAIiAYBNq1ZI5DwLnQtu7iNOp+7m 55DMbRBXsTmNr04ny0ImwJoSyE3uhtmcHcP154rqcgN+TGiM9QZdyW+0bfUOKMx50TNc 6+Sw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si8115296pgp.179.2019.07.05.03.10.55; Fri, 05 Jul 2019 03:11:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728641AbfGEKJF convert rfc822-to-8bit (ORCPT + 99 others); Fri, 5 Jul 2019 06:09:05 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47066 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728621AbfGEKI7 (ORCPT ); Fri, 5 Jul 2019 06:08:59 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id D2DE9805FF; Fri, 5 Jul 2019 12:08:46 +0200 (CEST) Date: Fri, 5 Jul 2019 12:08:51 +0200 From: Pavel Machek To: Jean-Jacques Hiblot Cc: Daniel Thompson , jacek.anaszewski@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@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 3/4] backlight: add led-backlight driver Message-ID: <20190705100851.zn2jkipj4fxq5we6@devuan> References: <20190701151423.30768-1-jjhiblot@ti.com> <20190701151423.30768-4-jjhiblot@ti.com> <20190702095434.d426lichmaffz7a5@holly.lan> <531e237c-b570-5270-6fc3-6629a8bf7acd@ti.com> <20190702130434.frbx7jkec27ejbpo@holly.lan> <72c45311-c710-dc2d-a6de-68e44ea8436a@ti.com> <20190703094457.etmbbjhhssbdkveo@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > > > Also still relevant is whether the LED device is being correctly > > > > modelled if the act of turning on the LED doesn't, in fact, turn the LED > > > > on. Is it *really* a correct implementation of an LED device that > > > > setting it to LED_FULL using sysfs doesn't cause it to light up? > > > What I understood from the discussion between Rob and Tomi is that the > > > child-node of the LED controller should be considered a backlight device, > > > not a simple LED. I'm not sure if the sysfs interface is still relevant in > > > that case. Maybe it should just be disabled by the backlight driver > > > (possible with led_sysfs_disable()) > > led_sysfs_disable() sounds like a sensible change but that's not quite > > what I mean. > > > > It is more a thought experiment to see if the power control *should* be > > implemented by the backlight. Consider what happens if we *don't* > > enable CONFIG_BACKLIGHT_LED in the kernel: we would still have an LED > > device and it would not work correctly. > > > > In other words I naively expect turning on an LED using the LED API > > (any of them, sysfs or kernel) to result in the LED turning on. > > Implementing a workaround in the client for what appears to be > > something missing in the LED driver strikes me as odd. Why shouldn't > > the regulator be managed in the LED driver? > > I see your point. Indeed having the regulator handled in the LED-core makes > sense in a lot of situations > > I'll think about it. For the record, I also believe regulator and enable gpio should be handled in the core. Pavel PS please trim down the quoted text. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html