Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp780680img; Fri, 22 Mar 2019 08:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwPepGQ8e7vtHfuYg2ul5/ZY/Cg5dr0iBhqp4D+jtYS5d2U5M8pNOL+/ygwz+hT1nW1uLo X-Received: by 2002:a17:902:ba98:: with SMTP id k24mr150307pls.335.1553268299130; Fri, 22 Mar 2019 08:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553268299; cv=none; d=google.com; s=arc-20160816; b=QPvjZ+suEyn8DXqqO1a7/olpbc3ILavDpCAJ+gi+NaUBafrhunShjYD0lX4kWmXgDA jZKn/bsQ29nafLYq1QuochfIbVGn69MP1TZAnkJpTSgKKgc7HHh3QIrAJKtQtcRrJSFj KS4x3FADc5HwJKeaPwfkYUWq05ZSKnEJnr5LTNV8dPRq1p1HOaIdlDY1Zjzc/r3sqTB2 9xcslX0kiawlZSox7S9rLZGRtXb1AjgvKfMOP3OGT5S6C/9YuoPyYhjPM8UgoEG9n5YA swtMjDhd/Xzbr9obPaiHTTF6T74zxbCBtlz5/FuZWTrqNL3VccqeHhPy+mxESd8T83fl MrIQ== 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=Ah6RWtYHx5cmQbIMfgjIWiIcsDUwnQPWHwEiuQhJMao=; b=yYuqsOPallhX5l7BGI0UE8VStonmwa5PF+uWRW7qbJhNo87bMnbhPaQMmiBQQoVuHI NQkzhGHFDAFpK9v4db1HR0ygEtFG67N5vpGKOwZ1yR01NNETQXxc1E9qd6xuhibV7UTt ktrvBgTnRUoTqExEWzoXu5G8YG/heCQtJPk0EXsdwKQ7/Lyk43KWVD5e5juBrIMvZF/K X3GKzf5zNWdPUU/bOApOrO76BuVUSqbeAV1KRN8NiAtRqrZyL0ILboUV2oCCDM9HfGsT 5lYdchQ/rhhMLjTCePXDi1G/cGZNR07EixImZZlC3CSHKhVvQwIHbaaBRtKV7VSp8Va9 o7Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lJ5Zn4X4; 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 c6si7045533pgd.106.2019.03.22.08.24.40; Fri, 22 Mar 2019 08:24:59 -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=lJ5Zn4X4; 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 S1727243AbfCVPXw (ORCPT + 99 others); Fri, 22 Mar 2019 11:23:52 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53217 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfCVPXv (ORCPT ); Fri, 22 Mar 2019 11:23:51 -0400 Received: by mail-wm1-f65.google.com with SMTP id a184so2560411wma.2 for ; Fri, 22 Mar 2019 08:23:50 -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=Ah6RWtYHx5cmQbIMfgjIWiIcsDUwnQPWHwEiuQhJMao=; b=lJ5Zn4X4UX6yNRHd2ku1OQ8Pa/SrRm6HBJ/ktaLPTLtV0EelN4CD/c1qm3VLZsRrm7 FQohf7TI6/hTdQINq3lTLT3C3CqDwSiAvHuf88K4guxDOv3Q/UVVBUKHg8CpboMVo0qI FiYx4utnLHCaMGJv22vIKZpXarqSLf9gHxLnh29cgLOnJ9nm77Ove+pdxJFnEcg3UeEZ RPnxCLzJyfgrMPu79Lg/pywVsmKE7CyiXOO+kFLz1Zs4XROpjpG24ClN+am4jEXmhD+u +6KPxvGUIl9n5sC8EYNWoG9aqgvmZLzzm423aoDJxqUnRAD9c3u//dkVZe7VlOWdltUc hWTA== 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=Ah6RWtYHx5cmQbIMfgjIWiIcsDUwnQPWHwEiuQhJMao=; b=Tj6TxO6LJIlGhukyXfSBlm7s2qSBf1huRb2LzBBcnNqsX1572g0yMgRpkiY0qxAR10 z6yFAtd1coxNVNEpmHO03sAOO4MT12SLnX7xLYdtvB26GjXwnp/tRZ1s26+SUwk7i/AI fYa/9soNp206aEt3Vx1ywbL9pmCZifZELVMfqUwJ1F5ZwV2gFsqTyZTsqKpNLClZ4BxJ /plxAioa8TWhBAdo1Os5CY72zzLAlLH5qlzK7mJzOncIgE9IxPIaSjlZA44CM2s0DWnT JotJRYJZidNpD8wKUr1Gnf3siECPvF/9p2+I53ODGZIzAWSwGBaVchtqZOuOqKBk99aE 5SmQ== X-Gm-Message-State: APjAAAXm5FiIvx9LLz7tr6qNSOtP8hfUFf9MGqqaEagGDmb62HBOnaNP gZ8sZiphvY7qtECwOraLg1jBK2q8MIg= X-Received: by 2002:a1c:7918:: with SMTP id l24mr3103150wme.29.1553268229872; Fri, 22 Mar 2019 08:23:49 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id 24sm12816111wmf.23.2019.03.22.08.23.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 08:23:49 -0700 (PDT) Subject: Re: [PATCH v0] nvmem: core: Export nvmem cell info to userspace To: Gaurav Kohli , linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Shiraz Hashim References: <1553061201-28894-1-git-send-email-gkohli@codeaurora.org> From: Srinivas Kandagatla Message-ID: Date: Fri, 22 Mar 2019 15:23:48 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1553061201-28894-1-git-send-email-gkohli@codeaurora.org> 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 20/03/2019 05:53, Gaurav Kohli wrote: > From: Shiraz Hashim > > Existing nvmem framework export full register space > as nvmem binary, but not exporting child node of nvmem > which is nvmem cell. Kernel can read the specific cell > by using nvmem_cell_read but userspace don't have such > provision. > > Add framework to export nvmem cell as well, So > userspace can use it directly. > > Signed-off-by: Shiraz Hashim > Signed-off-by: Gaurav Kohli > Co-developed-by: Gaurav Kohli > > diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c Thankyou for the patch. Why do you need such provision when the userspace can just get the cell values using correct offset and size. This will also bring over head of managing entries dynamically + confusing userspace abi. Unless you have a valid reason or usecase I don't see the need for this. thanks, srini