From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76FFCC433F5 for ; Thu, 30 Aug 2018 20:18:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19F6E20841 for ; Thu, 30 Aug 2018 20:18:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19F6E20841 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727320AbeHaAWW (ORCPT ); Thu, 30 Aug 2018 20:22:22 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51238 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbeHaAWW (ORCPT ); Thu, 30 Aug 2018 20:22:22 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 6EABE80547; Thu, 30 Aug 2018 22:18:26 +0200 (CEST) Date: Thu, 30 Aug 2018 22:18:25 +0200 From: Pavel Machek To: Dan Murphy Cc: linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Re: [rfc] leds: add TI LMU backlight driver Message-ID: <20180830201825.GA1936@amd> References: <20180829212032.GB15786@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Here's preview of driver for TI LMU. It controls LEDs on Droid 4 > > smartphone, including keyboard and screen backlights. > >=20 > > This adds backlight support for the following TI LMU > > chips: LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697. > >=20 > > Signed-off-by: Milo Kim > > [add LED subsystem support for keyboard backlight and rework DT > > binding according to Rob Herrings feedback] > > Signed-off-by: Sebastian Reichel > > [remove backlight subsystem support for now] > > Signed-off-by: Pavel Machek > >=20 > > --- > >=20 > > Does it looks mostly reasonable? I guess it will need some > > s/BACKLIGHT/LEDS/ , and I'll need to remove my debugging hacks. > >=20 > > I'd prefer this to be LED driver, first; I'll need to figure out what > > to do with backlight. I guess something like existing "backlight" > > trigger should do the trick. > >=20 >=20 > I looked at this driver from Milo before submitting a specific LM3697 dri= ver. Aha. I did not realize that was for same hardware... I should have cc-ed you, I guess. > I do not like this driver. > I don't like that it smashes numerous devices into some structure with va= rying register maps. > Can you elaborate? The chips are similar enough that single driver makes sense, and we certainly want to maintain one driver, not 6 drivers differing only in .. what exactly? > Not only that but it appears that you just pulled this driver from a repo= and posted it without clean up. >=20 a) No I did not, feel free to generate a diff. b) Even if I did, why would that be a problem? > If the devices share register maps and can be added to families I would p= refer to do it that way. >=20 > So if the LM3695 and LM3697 share the same features and register map they= should be one driver > The LM363x series may be able to be a different driver. Well all 6 chips this driver supports seem to be similar enough, so that single driver makes sense. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAluIUREACgkQMOfwapXb+vL8KwCeMpKoYEObj7fqpBoF7bsieAw+ 6toAoKmI0gfwYf2ktMx4tcV6VR+DMkRw =rXfV -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--