Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2958024imm; Fri, 24 Aug 2018 08:10:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZvZgu04RIp7KcwWPRZ7oIZNLa0tG0HpOj09/+21XfIunRurs6RDjBcQhqLwx2urm1h47MI X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr2141702pge.211.1535123442801; Fri, 24 Aug 2018 08:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535123442; cv=none; d=google.com; s=arc-20160816; b=HZbq4akgIVratb40ZcNO+Pcidks2fCNeJDsLd4NiK4CgxziKbDZJu+akSbVp06DoP5 hp/mPeHOopUs+ivdcCRAUv/gRbmbgCRVdL5fiHirPqTHxdGZ+WBOMxAOKOOGOBsDVYYi ohzIIReVvM7xIRGKRYWepNwgtKOFjRqset5wOgceR2Ljm7QJ8daIDitVc8bvh5GpNnAr RUHCow+rXcsckaLZUKRcjbrTWs70Ub7Sfqu2hBmWml1lmEkINqPs/uKtWFr0QReFg5as KKiqZIqVwZ3IlI0SDIWIWqiBT7olaH05biv5Y/I5rNSSWt76bheUlTwnDNnbGeUao8Lg SDsQ== 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=XInS3GDnO4vhA4n+S7ebyG2HLuBKirDJYqazjsNnPyI=; b=h36Scru2fcmWKi+QRsrgbVi4QXbDiiGLMiQHBw7/svjoYQ1/rZrp66upqIC04RF4ae PPpR2NYudvx7bMeYwrcZrUtwNuntc8LPfib+p4snfs4oshwkaHL6DN7rXhbK/G5kGhtX g1PB8PdzbUGsh+IAx0UiFJff50nSKnFsVwExMX07k2cpuDpxQhLH+VSeQzJCraaZh4Hr +BUvPmhLqw8c4H52a3KDj0MpUqBJry4ygpLPNCbwOeG/aDXSBqk31CIlhO/tBCa0S5jd QgVMYYSsR2gVosMnejxIps827QKqWuxa/eZMgT2yDURwNfagmEC4J7XgoY2zgur5Azb+ I9iA== 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 78-v6si2528820pfm.264.2018.08.24.08.10.27; Fri, 24 Aug 2018 08:10:42 -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 S1728066AbeHXSnz (ORCPT + 99 others); Fri, 24 Aug 2018 14:43:55 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55397 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726374AbeHXSnz (ORCPT ); Fri, 24 Aug 2018 14:43:55 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D257F22A2A; Fri, 24 Aug 2018 17:08:50 +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 1AA0B20719; Fri, 24 Aug 2018 17:08:50 +0200 (CEST) Date: Fri, 24 Aug 2018 17:08:48 +0200 From: Boris Brezillon To: Bartosz Golaszewski Cc: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , 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 , Andrew Lunn , linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 01/29] nvmem: add support for cell lookups Message-ID: <20180824170848.29594318@bbrezillon> In-Reply-To: <20180810080526.27207-2-brgl@bgdev.pl> References: <20180810080526.27207-1-brgl@bgdev.pl> <20180810080526.27207-2-brgl@bgdev.pl> 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 Hi Bartosz, On Fri, 10 Aug 2018 10:04:58 +0200 Bartosz Golaszewski wrote: > +struct nvmem_cell_lookup { > + struct nvmem_cell_info info; > + struct list_head list; > + const char *nvmem_name; > +}; Hm, maybe I don't get it right, but this looks suspicious. Usually the consumer lookup table is here to attach device specific names to external resources. So what I'd expect here is: struct nvmem_cell_lookup { /* The nvmem device name. */ const char *nvmem_name; /* The nvmem cell name */ const char *nvmem_cell_name; /* * The local resource name. Basically what you have in the * nvmem-cell-names prop. */ const char *conid; }; struct nvmem_cell_lookup_table { struct list_head list; /* ID of the consumer device. */ const char *devid; /* Array of cell lookup entries. */ unsigned int ncells; const struct nvmem_cell_lookup *cells; }; Looks like your nvmem_cell_lookup is more something used to attach cells to an nvmem device, which is NVMEM provider's responsibility not the consumer one. Regards, Boris