[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160516100511.360c89c9@bbrezillon>
Date: Mon, 16 May 2016 10:05:11 +0200
From: Boris Brezillon <boris.brezillon@...e-electrons.com>
To: Moritz Fischer <moritz.fischer@...us.com>
Cc: dwmw2@...radead.org, computersforpeace@...il.com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
moritz.fischer.private@...il.com
Subject: Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from
devicetree
On Mon, 16 May 2016 09:55:34 +0200
Boris Brezillon <boris.brezillon@...e-electrons.com> wrote:
> Hi Moritz,
>
> On Wed, 11 May 2016 10:47:39 -0700
> Moritz Fischer <moritz.fischer@...us.com> wrote:
>
> > This allows for getting a struct mtd_info from a node pointer,
> > allowing mtd devices to e.g. store serial numbers or MAC addresses.
>
> Can you detail a bit what you'll do next. I guess you need to provide
> this information to in-kernel users, and those users will just call
> mtd_read() after retrieving the mtd_info pointer.
>
> Here are a few questions (I'm assuming the netdev + MAC address case):
> - how would you link the net/PHY device to the MTD partition storing
> the MAC address
Sorry, I sent it before asking all my questions :).
- it seems quite specific to MTD devices to me. What if the MAC address
is stored in something that is not exposed as an MTD device. I wonder
if we shouldn't add an nvmem wrapper around MTD devices.
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Powered by blists - more mailing lists