devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Dan Murphy <dmurphy@ti.com>, Pavel Machek <pavel@ucw.cz>
Cc: robh+dt@kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, lee.jones@linaro.org,
	linux-omap@vger.kernel.org, linux-leds@vger.kernel.org
Subject: Re: [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697
Date: Mon, 17 Sep 2018 21:22:54 +0200	[thread overview]
Message-ID: <7a6e83ad-2bc9-c776-21bf-e1d51413b0af@gmail.com> (raw)
In-Reply-To: <5a249ae3-e3f7-8eff-4022-ed982e364326@ti.com>

Dan,

On 09/17/2018 05:24 PM, Dan Murphy wrote:
> Jacek
> 
> On 09/15/2018 03:00 PM, Jacek Anaszewski wrote:
>> Hi Pavel.
>>
>> On 09/14/2018 11:42 PM, Pavel Machek wrote:
>>> Hi!
>>>
>>>>> You may want to learn more about device tree and/or talk to the device
>>>>> tree maintainers. This is an old article. https://lwn.net/Articles/561462/
>>>>
>>>> The article title is "Device trees as ABI". A device tree is defined
>>>> in the "*.dts" file that is then compiled to a dtb blob, which
>>>> constitutes the ABI. And this ABI should be kept backwards compatible.
>>>>
>>>> What is discussed here is a documentation of bindings, i.e. according
>>>> to ePAPR: "requirements for how specific types and classes of devices
>>>> are represented in the device tree".
>>>>
>>>> >From the bindings documented in the
>>>> Documentation/devicetree/bindings/mfd/ti-lmu.txt only
>>>> ti,lm3532-backlight is used in the mainline dts file
>>>> (arch/arm/boot/dts/omap4-droid4-xt894.dts).
>>>>
>>>> Having the above it seems that there is no risk of breaking any
>>>> users.
>>>
>>> DTBs and bindings are supposed to be portable between operating
>>> systems. You are right there are no _mainline_ _Linux_ users.
>>
>> No mainline users means no users we should care of.
>> Other people also don't care - see patch [0].
>>
>>>>> NAK on this patch. I see that this binding has problems, but
>>>>> introducing different binding for subset of devices is _not_ a fix.
>>>>>
>>>>>>> What about the multi function devices? They should have same binding.
>>>>>>
>>>>>> The MFD devices defined are not in contention here only the SFD.
>>>>>
>>>>> I'd like to see common solutions for SFD and MFD, as the hardware is
>>>>> similar, and that includes the code. Having code that is easier to
>>>>> maintain is important, and having many drivers are harder to maintain
>>>>> than one driver.
>>>>>
>>>>> Milo's code looks better than yours in that regard. I disagree about
>>>>> Milo's code being "nightmare" to modify, and care about "easy to
>>>>> maintain" more than "binary size".
>>>>
>>>> Easy to maintain will be a dedicated LED class driver.
>>>
>>> You mean, 3 dedicated LED class drivers and 3 MFD drivers with LED
>>> parts? We'll need complex driver anyway, and I'd really like to have
>>> just one.
>>
>> In the LED subsystem we can wrap common functionalities
>> into a library object. MFD driver will be able to reuse it then.
> 
> I am currently working on that code now.  I expect a RFC on this this week.

Will it affect the shape of the driver for lm3697 as of v7 [0]?
Or the patch set [0] state should be deemed "awaiting merge"?

[0] https://lkml.org/lkml/2018/9/11/760

-- 
Best regards,
Jacek Anaszewski

  reply	other threads:[~2018-09-17 19:22 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 17:08 [PATCH v7 0/6] LM3697 dedicated LED driver Dan Murphy
2018-09-11 17:08 ` [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697 Dan Murphy
2018-09-11 18:14   ` Lee Jones
2018-09-11 20:05   ` Pavel Machek
2018-09-11 21:48     ` Dan Murphy
2018-09-12 21:49       ` Pavel Machek
2018-09-13 15:15         ` Dan Murphy
2018-09-14  8:18           ` Pavel Machek
2018-09-14 20:15             ` Jacek Anaszewski
2018-09-14 21:42               ` Pavel Machek
2018-09-15 20:00                 ` Jacek Anaszewski
2018-09-17 15:24                   ` Dan Murphy
2018-09-17 19:22                     ` Jacek Anaszewski [this message]
2018-09-17 21:23                       ` Dan Murphy
2018-09-20 22:04                     ` Pavel Machek
2018-09-21 12:44                       ` Dan Murphy
2018-09-14  8:23           ` Pavel Machek
2018-09-12 18:35     ` Jacek Anaszewski
2018-09-11 17:08 ` [PATCH v7 2/6] mfd: ti-lmu: Remove support for LM3697 Dan Murphy
2018-09-11 18:13   ` Lee Jones
2018-09-11 17:08 ` [PATCH v7 3/6] dt-bindings: leds: Add bindings for lm3697 driver Dan Murphy
2018-09-24 16:18   ` Rob Herring
2018-09-24 18:02     ` Pavel Machek
2018-09-25 19:39       ` Rob Herring
2018-09-25 21:19         ` Dan Murphy
2018-09-11 17:08 ` [PATCH v7 4/6] leds: lm3697: Introduce the " Dan Murphy
2018-09-11 17:08 ` [PATCH v7 5/6] dt-bindings: leds: Add runtime ramp node for LM3697 Dan Murphy
2018-09-11 17:08 ` [PATCH v7 6/6] leds: lm3697: Add ramp rate feature Dan Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a6e83ad-2bc9-c776-21bf-e1d51413b0af@gmail.com \
    --to=jacek.anaszewski@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmurphy@ti.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).