Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1023718imm; Wed, 8 Aug 2018 09:27:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy0EM2XGI67sirTpxdIjH6HNkb4UlgcKD9ftUeiXEWFOf7RHqbZ2W730rvYQeEsqFSMDOKx X-Received: by 2002:a62:dec1:: with SMTP id h184-v6mr3678199pfg.197.1533745655801; Wed, 08 Aug 2018 09:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533745655; cv=none; d=google.com; s=arc-20160816; b=OjPGDyXKeW2DB+3wGZpiw09XGTvmuv5RDqALUuStsbtapmcDKHRR1mmN+w8uAL3xXT bBTPf1sD+kN7Vq56IvUSvxZw0zDBu6so/wSyN0iyooMY1ZCpqztPPLA7PXzVC6du6pzV OqMNGEy/+tamSBSbuiOed/Glatt/YeZCGBrePyx/9hPUOiQ8WtTTmayaiicjbQxqCGHn pjGOBKi+kFUupond06NCKsEIUkxs6M5Y6sen9nKPXVndRvu/gcjpV+e2gBIhHZ4l07Zd is2QfHv5oi9CL4Mutg5CJHIch9u0F84daWi23IMuHNWZL5fncgZfXEAsaB9ba58u/RzK 2jDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=lP4mi9PPJIm1zUwCtC6JByBe2u0Q/YYzzEUq968p+Is=; b=HpK7fKfN19eoX5m7pHzlgtoRKomvqa13/qciDF1htCPyqp98qD2yfiXQGdmxlI91yq fq5Mbjk+Zrm1vKCf/Zp4tmzDMgVAqormPWszreQorgDRsmcCYNhfg5rQJ9Q1I81NZBaG V0CAg2p6PFQbO+7cfJLRsytLGXfa52sXxJwfEF35B0ls2DZvAbQnUq6UYTrNNeil5x4k yLSkggZwtMhiBF2Z4TMhtgcrIU2S4JPYkocqKZJoHAGPfPV8rFFlZOSDJ7j9e9o+vgV0 oT0OpelQnJgXmiKOl92Ydi3OSBd3+iDArIkyR/PfST+VKxH9zTx5VPL1+ndGzjp8S02a L/9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dppKh2de; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x127-v6si4396502pgb.618.2018.08.08.09.27.20; Wed, 08 Aug 2018 09:27:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dppKh2de; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbeHHSqz (ORCPT + 99 others); Wed, 8 Aug 2018 14:46:55 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:46702 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728021AbeHHSqy (ORCPT ); Wed, 8 Aug 2018 14:46:54 -0400 Received: by mail-oi0-f68.google.com with SMTP id y207-v6so4699621oie.13 for ; Wed, 08 Aug 2018 09:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lP4mi9PPJIm1zUwCtC6JByBe2u0Q/YYzzEUq968p+Is=; b=dppKh2deWupMOrlpH7s2uvh1H2QCEOgG4CLxeEHNssWChTbkPe7LNOf3IdJhuaQ388 b5oSrZtkRhxbgKt8I75g63VFNsXuG1TgYXtNFhN6tph4us1cdoxA2SD4awE7MZZs/8FH xbE0SjEMFg1wH5gKX+Ar0fWUFTuKSYFFh5/QamhFru7SYehvzUDp8ZXC1Xn2uF+4ChYH iV54U3sVJ7JHhVQnuRT3KDLJBNcAgemNV4uzJeMJmqvoZn/ztwnMY7cSk5HsGIDAR7ah 6BYaYHH+ObSWPrWJTf+CXKuT86bhWdpiIprtYjlyX47Ct8gx14v5RLKd1AlINZalo2tJ kNMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lP4mi9PPJIm1zUwCtC6JByBe2u0Q/YYzzEUq968p+Is=; b=WxBOIAGuAp3W+boLtt8cAJ7FpB6/Qa0FCiBmWfxeBNtNVwN6ZulKSpt9IcJSXNXNwL BULDevzsTgksNH/PmAXgQwsc4VerNj7XQW73rUpNmi9IopKm47vxBxhRIxr3+CFfZPVH QztTb4K8rw1a+FZlDXc4yBeeEM30GYXIcTH+m7KK/pbkIzJSHiyQ2OonVn4/uEXdF8EE t5ZgMJIX/EM+ojJLB6/utveTgwg4jVbIgKKEyA3Vlik9pSrba7Qj2EW++e+71nTEONGc KML2NOqBKHFOMso6bcHS/i7E9Wc2IqV3cnMMo9LojPiY2l8krSvNQm8PcNB/4TNJAqFT 4Obg== X-Gm-Message-State: AOUpUlHRAFl6TDbrMyEQDDHeY6Wv7gpS1cYeLvESLLyfcLBZxhUBaJ1N iBvqpvHnDw9FJb8gbRvcDVMOt2AOla6Z6HEjGGecFg== X-Received: by 2002:aca:5e42:: with SMTP id s63-v6mr3418116oib.134.1533745588176; Wed, 08 Aug 2018 09:26:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:2c03:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 09:26:27 -0700 (PDT) In-Reply-To: <20180808162042.GG7275@lunn.ch> References: <20180808153150.23444-1-brgl@bgdev.pl> <20180808153150.23444-7-brgl@bgdev.pl> <20180808162042.GG7275@lunn.ch> From: Bartosz Golaszewski Date: Wed, 8 Aug 2018 18:26:27 +0200 Message-ID: Subject: Re: [PATCH 06/28] mtd: Add support for reading MTD devices via the nvmem API To: Andrew Lunn Cc: Bartosz Golaszewski , Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , linux-doc , LKML , arm-soc , linux-i2c , linux-mtd@lists.infradead.org, Linux-OMAP , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-08 18:20 GMT+02:00 Andrew Lunn : > On Wed, Aug 08, 2018 at 05:31:28PM +0200, Bartosz Golaszewski wrote: >> From: Alban Bedel >> >> 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