Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2493867imm; Mon, 10 Sep 2018 01:55:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZvbsIwTrmyN7M4gQbwDLYc+005+++hDkVpyUz9IkwhMyDlRPU08+rR8gkdTCBGhci7g3hE X-Received: by 2002:a17:902:5617:: with SMTP id h23-v6mr20819764pli.324.1536569735547; Mon, 10 Sep 2018 01:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536569735; cv=none; d=google.com; s=arc-20160816; b=tsysgR59T7rjaDiiaXcSwLZ4kjQstdT3z6sAnAtQzJcDLcSHwWXxOFHBMM3Q4+bZc+ xb10qn8ys8NV2oppd/V15L4Ku3AyDk2K6TCPhcFXCiTVGpW7+62MuVZ+Jsp1U4XWhDeV Il+kPoKQ/BG8fdWbl4OCFB7y3FepQiZWiV+bjgY/Fhx8h3H5fdluMcLGhL6lV68JcpG6 4E/vTA3rD4FlFibyLUagIx0ybobwh8HcfuFu2/Qx9KM6gSMw32ZLrPufxO8b5liiKuo+ FTt6KoPKAdwUrDn5CYlgjV7/zFFxNhMHQdKjky40u83I1hFHfowUQ0mZ2tLrsCSCwM0R rmlw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=CPxOIUGhEj9rJaqY/EHPHSI+pPP+5egIMA38qsMH3+8=; b=FxsaVu7rcgDcrvQOYzjcr0FOEMEYTdVX0k8HSdqPckJW77GvfEUKo99MlcP5bQiAbI A9XtIVxLJLAFYTrl0mLRD3ryhlmS5HDiBqljLUHKgFV7QhuA6z3VtG0epfttF1XHayK9 hxogBnHuyXYAvt7SZTn6fZzH3REHi33kY7jkZASf0gkaW7y+GV8DnYAgDssbci5ow8JZ csnjQGFuF5qjqhCqnGdJ2wPd/fhPaEJ4GdjKvoND0N2vyCYksdgL4VuTGI8oucForRAt JQMCFa6712u6tlShNpyUJwA/PfkHD2Bx2oz6IFydbihQia4KIC2QYMUd77zRPubc9h6K I01A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WgOMCvJP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h86-v6si17707192pfj.120.2018.09.10.01.55.19; Mon, 10 Sep 2018 01:55: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=@linaro.org header.s=google header.b=WgOMCvJP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727777AbeIJNqx (ORCPT + 99 others); Mon, 10 Sep 2018 09:46:53 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38946 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbeIJNqw (ORCPT ); Mon, 10 Sep 2018 09:46:52 -0400 Received: by mail-wm0-f67.google.com with SMTP id q8-v6so20566092wmq.4 for ; Mon, 10 Sep 2018 01:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CPxOIUGhEj9rJaqY/EHPHSI+pPP+5egIMA38qsMH3+8=; b=WgOMCvJP0aBXl467hnny/mzd+5NwXpYFzEUwjews5WEIKSY1/syyxXF25HIGgULPn+ /QW0yuekbWeYXT2460xheMVnHnDszRmLEDk+ZwjLEKSxNbZhSABnwaydryiJ3ne44N8u kyxRpMMX2Sdqy5EdZk4NngNm1k26aRcFXPlQM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CPxOIUGhEj9rJaqY/EHPHSI+pPP+5egIMA38qsMH3+8=; b=lOM1qXyxbE9Kez6vBYoNt6dfERtX49wO++qCzC8gsdx6MGL8bf+KMqY658puaqGuaH HWLzFrdzkcEI65NpMpqZ5pDU7Tz2Uef8vZajyGNiVWG+zhCF7MP2cuCfuhsAllXnsUfa 7hxbUUcvH77BoxNGULf8g3km4AfsLCmeoBcOabi5FVMJS5RwivjOrw/Yy2S1oaYJkmbl qeGdnSTXqAVWLn5fKWd3KB68nJhJeCLQnGvEA/lmMfax2Zk/vC88qtQLbTcPaqdk9IgQ /21zi2TfhU62Mll0RxkACy4GZDIXYFGlMRhhdnv/dK+3bNKC30nE7Q71BuE4UhLIiP8t Ln3g== X-Gm-Message-State: APzg51BxhRkY/GmTvU/WZ8Nu+aPxSFaH9iPE1cg2veVZ6AZB0O+4GB2U RMBPTf5aZsExWPLFm3CrU9yveA== X-Received: by 2002:a1c:ed4:: with SMTP id 203-v6mr12447417wmo.96.1536569631643; Mon, 10 Sep 2018 01:53:51 -0700 (PDT) Received: from [192.168.0.18] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id x15-v6sm13986746wrt.53.2018.09.10.01.53.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 01:53:50 -0700 (PDT) Subject: Re: [PATCH v2 11/16] nvmem: add support for cell info To: Boris Brezillon Cc: Bartosz Golaszewski , "David S . Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Arnd Bergmann , Jonathan Corbet , Sekhar Nori , Kevin Hilman , David Lechner , Andrew Lunn , Alban Bedel , Maxime Ripard , Chen-Yu Tsai , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski References: <20180907100750.14564-1-brgl@bgdev.pl> <20180907100750.14564-12-brgl@bgdev.pl> <21ec4e6f-aa39-66cf-af32-d9e8e85f4961@linaro.org> <20180910093632.3a9337a9@bbrezillon> From: Srinivas Kandagatla Message-ID: <4c569813-aba0-8e9d-dfc8-653b6c2e365b@linaro.org> Date: Mon, 10 Sep 2018 09:53:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180910093632.3a9337a9@bbrezillon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/09/18 08:36, Boris Brezillon wrote: >>> --- /dev/null >>> +++ b/include/linux/nvmem-machine.h >> This should go in nvmem-consumer.h, I don't think we should add header >> files for each usecase. These are nvmem consumers so lets put them in >> correct header file. > Actually no, it should go in nvmem-provider.h. Consumer should not be > allowed to define cells, only reference existing ones.The usecase can be provider and consumer. In arm machine use case it is a consumer and it other use cases this can be a provider. I agree with you, It makes more sense to be in nvmem-provider.h thanks, srini > > Regards, > > Boris