Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401348

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

From Boris Brezillon <boris.brezillon@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree
Date 2016-05-16 10:10 +0200
Message-ID <rzlLb-4sk-3@gated-at.bofh.it> (permalink)
References <rxGqK-4tl-5@gated-at.bofh.it> <rzlBv-4a7-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 16 May 2016 09:55:34 +0200
Boris Brezillon <boris.brezillon@free-electrons.com> wrote:

> Hi Moritz,
> 
> On Wed, 11 May 2016 10:47:39 -0700
> Moritz Fischer <moritz.fischer@ettus.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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 10:00 +0200
  Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 10:10 +0200
    Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree Moritz Fischer <moritz.fischer@ettus.com> - 2016-05-16 18:40 +0200
      Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 19:20 +0200

csiph-web