Thread (54 messages) 54 messages, 6 authors, 2018-08-10

Re: [PATCH 06/28] mtd: Add support for reading MTD devices via the nvmem API

From: Bartosz Golaszewski <hidden>
Date: 2018-08-08 16:26:32
Also in: linux-arm-kernel, linux-i2c, linux-omap, lkml, netdev

2018-08-08 18:20 GMT+02:00 Andrew Lunn [off-list ref]:
On Wed, Aug 08, 2018 at 05:31:28PM +0200, Bartosz Golaszewski wrote:
quoted
From: Alban Bedel <albeu@free.fr>

Allow drivers that use the nvmem API to read data stored on MTD devices.
For this the mtd devices are registered as read-only NVMEM providers.
On OF systems only devices that have the 'nvmem-provider' property
are registered, on non-OF system all MTD devices are registered.
@@ -570,6 +613,11 @@ int add_mtd_device(struct mtd_info *mtd)
      if (error)
              goto fail_added;

+     /* Add the nvmem provider */
+     error = mtd_nvmem_add(mtd);
+     if (error)
+             goto fail_nvmem_add;
+
Hi Bartosz

Maybe it is hiding somewhere, but i don't see any code looking into
device tree looking for the 'nvmem-provider' property.

       Andrew
Ugh, I copied the commit message from Alban's patch. For the moment
there's no such thing, you're right. I'll fix it for v2.

Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help