[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0a8ebd32ae07ae98fa56728c77f8e79@walle.cc>
Date: Wed, 24 Jun 2020 11:19:07 +0200
From: Michael Walle <michael@...le.cc>
To: Lee Jones <lee.jones@...aro.org>
Cc: Frank Rowand <frowand.list@...il.com>, andy.shevchenko@...il.com,
robh+dt@...nel.org, broonie@...nel.org, devicetree@...r.kernel.org,
linus.walleij@...aro.org, linux@...ck-us.net,
andriy.shevchenko@...ux.intel.com, robin.murphy@....com,
gregkh@...uxfoundation.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match
devices with the correct of_nodes
Am 2020-06-24 10:23, schrieb Lee Jones:
> On Wed, 24 Jun 2020, Michael Walle wrote:
[..]
>> Although Rob mentioned to maybe relax that, but I sill fail to see
>> the advantage to have an arbitrary reg property instead of a unique
>> node name.
>
> I don't have a strong opinion either way.
>
> We can *also* add node name matching if Rob deems it fit.
Where do you see a use of the reg property? You already expressed
that you see exposing the internal offset as a hack:
"Placing "internal offsets" into the 'reg' property is a hack." [1]
So what are you putting into reg instead? Rob suggested "anything"
documented in the hardware manual. But isn't this just also something
we make up and especially for the MFD driver. Thus IMHO it doesn't
qualify as a unit-address, which - as far as I understand it - is
unique on the parent bus. To repeat my argument, its not a defined
thing like an I2C address.
[1] https://lore.kernel.org/linux-devicetree/20200609185231.GO4106@dell/
-michael
Powered by blists - more mailing lists