Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2925480imm; Fri, 24 Aug 2018 07:40:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnWqxOFj2glUCx3hrpU/t4aJQPfs2PjxWQdel/t4kZLxL8i0g5myyz4acbEnkiSqngOi9l X-Received: by 2002:a63:d20e:: with SMTP id a14-v6mr1984611pgg.226.1535121647842; Fri, 24 Aug 2018 07:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535121647; cv=none; d=google.com; s=arc-20160816; b=cTNlgzOoL4paD04ZuUt78kaIcqxseUVKyCQ9ACxFwhTf/W64snVh3yxTlHPOqRD0GS bHTLz9E2LBKYzkZ6hdLZXPIKZu5GuxTqKK8xokOsPd8M9lHlpaa9kI3113aJ+d+y5Qv4 JP4QheTvnsVkQG9JfLlQYE0gNEwCYh6BSk6JWh2TyLP8cQtM0otjU2uNMsCVHcLeeJG7 0FvBIlKsdKTPkJD5io9YdSrouiTw9W/fvAzHNrnXd7dR6VCG7wG2O7O7FlLB+0ThRcC1 iinCvCgrVoWuFOwPqO7uS+uSKTUgaIz8IkyYmyP+vtC73lScxnbxOcZpnh776zjPio7j prrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=A1uBA/kSFndF2IFsIFYh+S6O7eTlcLoP99L6yRqgAfw=; b=FK3o/b/ilJ1ITXS8EiPJQoEvS90PxeUD8voTGPeJRCOC50gji30uVGfoZNYj8jM/J1 b+zqLMN9PhTht6bCRwwkT6TM1HZQoDojb4gcwhriEiwLZ6aEltsPHeGHmGyfGAen/H/K 6BFiXQDv2KPivT5Os0fp9xwo55SWzTQ0tfQJ15D8SAfhEB2jhokJJhrKy8fhXDHG0aCF G38bLgUpQjBJEE+XmQLxNU1tsib6/AsJ4QZdSGyXV6AnhCsnOLxO1LoVfANyZQKkb8cI OCfD/Xiam+nSI9OOpZdRH0b+ITkWJB/NnMGoltgSJCtkg5Fn02AtIH9RVGK5YSz+NfyS evYg== ARC-Authentication-Results: i=1; mx.google.com; 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 r11-v6si8465475pfc.253.2018.08.24.07.40.31; Fri, 24 Aug 2018 07:40:47 -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; 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 S1726900AbeHXSOW (ORCPT + 99 others); Fri, 24 Aug 2018 14:14:22 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49950 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbeHXSOV (ORCPT ); Fri, 24 Aug 2018 14:14:21 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B90E322A3D; Fri, 24 Aug 2018 16:39:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-53-19.w90-88.abo.wanadoo.fr [90.88.170.19]) by mail.bootlin.com (Postfix) with ESMTPSA id 0549622A2B; Fri, 24 Aug 2018 16:39:18 +0200 (CEST) Date: Fri, 24 Aug 2018 16:39:17 +0200 From: Boris Brezillon To: Alban Cc: Andrew Lunn , linux-doc@vger.kernel.org, Sekhar Nori , Bartosz Golaszewski , Srinivas Kandagatla , linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Florian Fainelli , Kevin Hilman , Richard Weinberger , Bartosz Golaszewski , Russell King , Marek Vasut , Paolo Abeni , Dan Carpenter , Grygorii Strashko , David Lechner , Arnd Bergmann , Sven Van Asbroeck , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Ivan Khoronzhuk , Greg Kroah-Hartman , Jonathan Corbet , linux-kernel@vger.kernel.org, Lukas Wunner , Naren , Andrew Morton , Brian Norris , David Woodhouse , "David S . Miller" Subject: Re: [PATCH v2 06/29] mtd: Add support for reading MTD devices via the nvmem API Message-ID: <20180824163917.6bc349c9@bbrezillon> In-Reply-To: <20180823122921.6857d917@tock> References: <20180810080526.27207-1-brgl@bgdev.pl> <20180810080526.27207-7-brgl@bgdev.pl> <20180817182720.6a6e5e8e@bbrezillon> <20180819133106.0420df5f@tock> <20180819184609.6dcdbb9a@bbrezillon> <5b8c30b8-41e1-d59e-542b-fef6c6469ff0@linaro.org> <20180820202038.5d3dc195@bbrezillon> <20180821133916.3a1c51b1@eos> <6db14f9c-edd3-5e43-839c-953bb03097ff@linaro.org> <20180821150121.4408672f@bbrezillon> <20180823122921.6857d917@tock> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Aug 2018 12:29:21 +0200 Alban wrote: > On Tue, 21 Aug 2018 15:01:21 +0200 > Boris Brezillon wrote: > > > On Tue, 21 Aug 2018 13:00:04 +0100 > > Srinivas Kandagatla wrote: > > > > > On 21/08/18 12:39, Alban wrote: > > > > However we still have the a potential address space clash between > > > > the nvmem cells and the main device binding. > > > Can you elaborate? > > > > > > > Yes, I'd be interested in having a real example too, cause I don't see > > what this address space clash is. > > Let say I have a device that use the following binding: > > device { > compatible = "example-device"; > #address-cells = <2>; > #size-cells = <1>; > > child@0,0 { > reg = <0x0 0x0>; > ... > }; > > child@1,2 { > reg = <0x1 0x2>; > ... > }; > > }; > > Now this binding already use the node address space for something, > so putting a nvmem node as direct child would not work. Here it is > quiet clear as we have 2 address cells, however even if the number of > cells and the cells size would match it would still be conceptually > wrong as both bindings then use the same address space for something > different. When would we end up in this situation? MTD/flash nodes are supposed to be leaf nodes (if you omit the partitions underneath). What would be the case for defining subnodes there? Do you know of any devices that uses such a representation?