[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 2 Mar 2017 17:50:45 -0800
From: Moritz Fischer <mdf@...nel.org>
To: Boris Brezillon <boris.brezillon@...e-electrons.com>
Cc: Alban <albeu@...e.fr>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Devicetree List <devicetree@...r.kernel.org>,
linux-mtd@...ts.infradead.org,
Cyrille Pitchen <cyrille.pitchen@...el.com>,
Richard Weinberger <richard@....at>,
Marek Vasut <marek.vasut@...il.com>,
Brian Norris <computersforpeace@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Mark Rutland <mark.rutland@....com>,
Rob Herring <robh+dt@...nel.org>,
Maxime Ripard <maxime.ripard@...e-electrons.com>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Subject: Re: [PATCH 3/3] nvmem: core: Allow allocating several anonymous nvmem devices
On Thu, Mar 2, 2017 at 12:03 PM, Boris Brezillon
<boris.brezillon@...e-electrons.com> wrote:
> On Thu, 2 Mar 2017 20:50:23 +0100
> Alban <albeu@...e.fr> wrote:
>
>> Currently the nvmem core expect the config to provide a name and ID
>> that are then used to create the device name. When no device name is
>> given 'nvmem' is used. However if there is several such anonymous
>> devices they all get named 'nvmem0', which doesn't work.
>>
>> To fix this problem use the ID from the config only when the config
>> also provides a name. When no name is provided take the uinque ID of
>> the nvmem device instead.
>>
>> Signed-off-by: Alban <albeu@...e.fr>
>
> Reviewed-by: Boris Brezillon <boris.brezillon@...e-electrons.com>
Reviewed-by: Moritz Fischer <mdf@...nel.org>
Thanks,
Moritz
Powered by blists - more mailing lists