Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2541093imm; Mon, 10 Sep 2018 02:47:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZCvupyvdxkC2V/gfuYY5mzA72ETUxYxa/ViOTrYDd9se8JrU7bYyRAT2EXGV0ud+98gjJT X-Received: by 2002:a17:902:7587:: with SMTP id j7-v6mr21150783pll.256.1536572860946; Mon, 10 Sep 2018 02:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536572860; cv=none; d=google.com; s=arc-20160816; b=YiDQ4uC/X1gsV3VUn4GRnyOZT/il1UAYjJT4eL7hWu0TOXXJe3dxmC/+myN7l/oTo/ Xo4iTxLxdCs5sK1uchQTLqdVyiFV1OFfBV0VVdio7IQ/HxVbOEWnj8o+o6KnUUrFafjv HXCYd7HzsVaB3w9Jwmh1u57z2OyhkuFwCLV4QO6W9vgkwG+KBDwEMulHrmv3WQ0qf/xx qhtlwJluVWjmNlLYZTkmXhf1cTsq6u6ImstVfU1WucVPM5jdV2fNxakzIq71egGQ3LiH NQiPp5Jc7K9M5FQxjCLQ0C1ZtSR5VVR00/L7ZDHOtsRXBd/OiZWLgU1JcOqhk/eHLWnN A40w== 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; bh=+e8JVKyHPLDrOOjWLnvgHpmlIf0JnEkcc8Bo/Zq94UE=; b=TVV+SJOaLi0oIWp8sA4AYnXLRq4eAfmJe40Ca4ZGPE5NButcwsmlxM2acUhXF3jzht bsKWx0E5bZntLYIMvyjth4uJcMOESEn/9uyieB8H0iSplXDV6HgHYFwjHDeFouqE2r/W BaHYV7OGqIOtnFuXVv1dy1NXGlDRR+hmyjEswdVnCH//BSAVyEQvvMb+35G5bCI1+7a+ kLZZxRX5vy5YnoOKLqrE1qrDuqP7nM4GgvkO34wHRetBRBRDZmXDHf6jpjhnnwLn1Elc My9nadTTMXjCzgzBfTNEJ83pIP+8Ag5I8wRDdO7rRfkkEPGQrPPgbG8xSp+uaViDiQ9N frxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=v7dKi3jm; 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 r2-v6si16351968pgk.452.2018.09.10.02.47.25; Mon, 10 Sep 2018 02:47:40 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=v7dKi3jm; 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 S1728128AbeIJOjB (ORCPT + 99 others); Mon, 10 Sep 2018 10:39:01 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:39678 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbeIJOjB (ORCPT ); Mon, 10 Sep 2018 10:39:01 -0400 Received: by mail-it0-f41.google.com with SMTP id h1-v6so27825398itj.4 for ; Mon, 10 Sep 2018 02:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+e8JVKyHPLDrOOjWLnvgHpmlIf0JnEkcc8Bo/Zq94UE=; b=v7dKi3jmigfjK+74nTajI9CPHKsEbUPgvf50EMle05GFiau9iXMwh5qeVohutBr50c MyhmRmzk7Y17CxcASFok3scsKpu7TGrjcHVsFDrr7NStE2uWbMFbeHN5fUhgO7CQkY6j 2KSEq5B9aU45mWF+JS6oKA1e42nyRG+bEwP56zIP8SNmMk4+IjAzy+uVkDXHoZbyvBtR pRcGU5ztXfAgpbj3GXrDFB3+EW4JuK5FBpRYMgeCeYBwmI61C/sh9BksUwmfV3kgBgTR ExJtcLmjqrmHCsrFPlNW8nUtglvjW5ou57niv4T4yD1FsjS030kDMRHhEbH/ksha/jqP 5k7A== 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=+e8JVKyHPLDrOOjWLnvgHpmlIf0JnEkcc8Bo/Zq94UE=; b=XZg5SziVIAHR7ENKeuScQ9PCKqzZnhWzWL9C0Eu8iSSWOHsu/0KHnASuYMo4V855OZ o71HsMJgXkJ8qzWySR3P9XwMgVbkCE1dh2tIAfuR/Ot++2wvLhZeb7VIOR5Uut68dD6B 7+a9yUskrkTs6yJArSKlJF0MSXX70q3TkHQXsWemKoDX16v4kbS9e1dEuMrTQpTbT2rm RDClJO/mW1jRA52Nx5raqXSbOvFJhohonCmGWST9FGzXMQpSb1hOKoDVeybrQo4ctChK LEI/N/LbXUkXMzQlriAqfBpd3O6zFHLF4uWxsj9jnmWwNefuGmAoWSnNdIF/xlbsxmdk m4NQ== X-Gm-Message-State: APzg51Bs21hCDd1vcZa1wJHEExsi3D3wUnrRrONOB3rEXXpjOs29PThC lJtj9xuhSQCmwXJveo8/eyJeGS7ts0ado/EhF1WCJg== X-Received: by 2002:a24:6e96:: with SMTP id w144-v6mr17664090itc.111.1536572749443; Mon, 10 Sep 2018 02:45:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:1905:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 02:45:48 -0700 (PDT) In-Reply-To: References: <20180907100750.14564-1-brgl@bgdev.pl> <20180907100750.14564-14-brgl@bgdev.pl> <484b6ec5-cd8e-e5c5-0c5c-2f11c504ea1c@linaro.org> <20180910102324.52ecd8f7@bbrezillon> From: Bartosz Golaszewski Date: Mon, 10 Sep 2018 11:45:48 +0200 Message-ID: Subject: Re: [PATCH v2 13/16] nvmem: add support for cell lookups from machine code To: Srinivas Kandagatla Cc: Boris Brezillon , "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 , Linux Kernel Mailing List , Linux ARM , Bartosz Golaszewski 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-09-10 10:55 GMT+02:00 Srinivas Kandagatla : > > > On 10/09/18 09:23, Boris Brezillon wrote: >> >> Well, if we get rid of nvmem-machine.h, the cell-lookup stuff >> should go in nvmem-consumer.h not nvmem-provider.h. On the other hand, >> everything that is related to cell creation should be placed in >> nvmem-provider.h. > > Yes, this is how it should be! > Any actual reason for not putting these definitions into a separate 'machine' header? This approach is currently used by gpio, pinctrl, iio and regulator framework because most systems use either DT or ACPI and don't need to pull in any stuff aimed at board files. Bart