Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2642617imm; Mon, 10 Sep 2018 04:28:35 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda6GiYrmUrmG/8XmIOIIEe7ICQxSn6B8Fq+37Hnn95loWdTZbowaoVs7b3d6tYBa/1yXltb X-Received: by 2002:a65:6243:: with SMTP id q3-v6mr22165315pgv.273.1536578915474; Mon, 10 Sep 2018 04:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536578915; cv=none; d=google.com; s=arc-20160816; b=JKpG2Ij54+IcWJWm9tkZeN4p1LcameQR0j8hebIqKgkKy8W0t4Vadm66rRG0gUcY4N csv0W7Qd23CjgVKHHVXzsKs7m6GD3A1idTIf1ZvYOtAldfWOJl5jN1P63DYzy2QBx8AJ eThgISWNfEvvbYRzfVZTo+8woQ/339gQ7bEU3xcUBJMCyJlvRQVlCnXSZgkc0Ezc7xuO zT3EcQpPdfWJmfVQuPSngFue4O9WFvYPGEIpu4vbzguyL4ByKkuDNzXJ7tQL6Ghoh3wt RVXp5K6A5DvOpyX/qgvszr5ZLr1b52+rzbyLT55dzQJFWtnPt1WshHDm8BwEc7dcCiJK 18VQ== 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=bJTojSwImwK8PVoQRxmnr5beTpJ4GQQKIKg4TB6gSs0=; b=mspMBDdtwO5YcMUEFN1bLIL31QkHW/xhq7iATF1ZnttTLT/FZHMV2Q6zeymtTNDsoR Ip/IeZWPR2UvZGW5w3fU647ZjWlf/PNXGjfMzEvXN0x/lQM3GEsBxnrJmYWKVt226ogU ItOgzb5AOqjbhsbhADxap5XuKKYZ6AQfb6k1aQgEzayUcoiPXcj7/Gd6iT4cIYChpeC2 r6AJ1HJ2tvmxVSsE+Nv15PV0KDn609vLILK6vQwlUjdGpH/etLJXzxtvb+rJZr6uehwA CGDmfzWuy8/wuERo/9SW/xwnVvvUSTUOIH5eYeubyGri8h2r3tJ1hur9pfz0292qDMTD RuIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=tL5z19yJ; 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 21-v6si16774282pfy.169.2018.09.10.04.28.20; Mon, 10 Sep 2018 04:28: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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=tL5z19yJ; 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 S1728394AbeIJQUY (ORCPT + 99 others); Mon, 10 Sep 2018 12:20:24 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:46792 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbeIJQUY (ORCPT ); Mon, 10 Sep 2018 12:20:24 -0400 Received: by mail-io0-f194.google.com with SMTP id y12-v6so280792ioj.13 for ; Mon, 10 Sep 2018 04:26:48 -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=bJTojSwImwK8PVoQRxmnr5beTpJ4GQQKIKg4TB6gSs0=; b=tL5z19yJvD681RFiehnQrUlHW9EiOvvwfQ0TRQ/bZMVTBEbvRj+jFIc7pErU6VEZBm cALtr5oMg8YbzsJKcKU1Mrl0EvQU0/DMraz5RNfF557DdvXjRCCEBMdWJlAvDIHqAyaH Ekl6oe2PceT1FgQbQvBFnRlglXmHIV8LbOV7Hqpy3qt1/NxUhSrO7cnTgGQt2X7NLxrb kDS1zPbpcfVl4y1yQ2zsgSAB8j4+6zZhaV/vKCTrB1eDE0B+CYLfzzm/I//ZoCkvCt2b 5+OXxK+74lI1dgzDPJDfLNi4zvujbVHUZ5EDeE/FQWh+4qLTD6MWjv8PY5sAhSx4tR2h SAYg== 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=bJTojSwImwK8PVoQRxmnr5beTpJ4GQQKIKg4TB6gSs0=; b=qYSKyHXbJLNSLk0M8TWKIUza6CJWq7rHVw57RSYD5OknoNSpNktjTQvDYCvDwhQNvd M3S9TSM069YTnLYc3GNCQ9nnzvzkLOa7ctpry9ZrfHwhPsbHEl/iMZL7eczWD38+XgOX 79aevt1FqYZHauX+wMkMz3G9i2Pl22f0I2Vu69r7h34BwVn6MPqv3IOu41OSenY1+vZt 8zsF/rPqm4BH82LSZ4U2tGo5SHw55YqajOqyw7UWg3EyGHBQl/kIYd0JEVYSF7IteIZj E3srrguNuuZTExiW10tpqcBmR2GSsa5Ko+wZqTuL2ungtw9g2ZHsmRLAEFpaOrQUas5Z l4bA== X-Gm-Message-State: APzg51Bd380Y6qE3yqBeUPzTpsbeGsMHmnpkRjSbv7+jZDpTCOE9eji8 YxS9i7Yg+KeeAhp+2kPs4nW9eodl4ezcQ/jHSHPeUw== X-Received: by 2002:a6b:9157:: with SMTP id t84-v6mr16331007iod.187.1536578808460; Mon, 10 Sep 2018 04:26:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:1905:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 04:26:47 -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 13:26:47 +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 11:50 GMT+02:00 Srinivas Kandagatla : > > > On 10/09/18 10:45, Bartosz Golaszewski wrote: >>> >>> 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. > > > I don't want to create header files specific to usecase! > Lets keep it simple! > I won't argue this point anymore, but I disagree. This is not specific to a usecase but to a whole family of users that need to a) define nvmem cells without knowing the provider and b) associate them with consumers. Something normal providers and consumers are not bothered by, thus a new header file would be in order. But as you wish... Bart