Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-16 Thread Boris Brezillon
On Mon, 16 May 2016 09:30:10 -0700 Moritz Fischer wrote: > Hi Boris, > > On Mon, May 16, 2016 at 1:05 AM, Boris Brezillon > wrote: > > >> 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

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-16 Thread Moritz Fischer
Hi Boris, On Mon, May 16, 2016 at 1:05 AM, Boris Brezillon wrote: >> 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 Well in my case I actually planned to use it with the OTP part

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-16 Thread Boris Brezillon
On Mon, 16 May 2016 09:55:34 +0200 Boris Brezillon wrote: > Hi Moritz, > > On Wed, 11 May 2016 10:47:39 -0700 > Moritz Fischer 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 deta

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-16 Thread Boris Brezillon
Hi Moritz, On Wed, 11 May 2016 10:47:39 -0700 Moritz Fischer 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

[PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-11 Thread Moritz Fischer
This allows for getting a struct mtd_info from a node pointer, allowing mtd devices to e.g. store serial numbers or MAC addresses. Signed-off-by: Moritz Fischer --- drivers/mtd/mtdcore.c | 21 + include/linux/mtd/mtd.h | 2 ++ 2 files changed, 23 insertions(+) diff --git