Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1497018ybk; Thu, 21 May 2020 08:15:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPQZaydKTibw4MDHRLBgZkl/ftfDQn58gOLy347BEx9nJSDrVudqxNcdNsjqJQX4vzo3h/ X-Received: by 2002:a17:907:aae:: with SMTP id bz14mr3794487ejc.521.1590074104518; Thu, 21 May 2020 08:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590074104; cv=none; d=google.com; s=arc-20160816; b=aw+8EJqusc4GrHT4BlRZn0kp1HcXdTbCPs0PslbcSnO2NS3iYl9kGGMyrjsEOC3Gxq 24/AOjrFHENeQnDHVJSZDkgqGkzLLAK1UUZo34JJZfh03no2b/G0cGlgT6Pt9N3HUA48 oAxA3ronqnRRlRddQcXi03I8FnGxayYc0bdRK6xHsKgM43NvyKjwQWqlKxV39HpC3SzC BnkbsyMjyazMT4fnU+C3R0E/aNhuwZikJMhRHdKWFvQ8L6eJ9Hxn5+21mX0JQETnTCSF mveVpm4DctUEBu8cXfjRi0RXcHB0fh69GFON6yEuVuBKfa0gNJWSkgmHRz8c5sll8TrC b6nw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Ffe0xz9XMcB5mRpVbSZxAWF/UEfoDxZNXD2x44f+aIg=; b=lQ9YHK9v6FHmYkhEi+n1N/cjiR0t/weVaC8l/kPQJ8lAvXfL0P4RwylXEmbt6stRKj Dj1YmsZA7FfHghwY2JGfN2rSSoXpprWrdzU3Ku6+BFJ2xaOGce/zz9OhFDw44G3c7AiG 0rNnYW+/12HDDRfIgFsH+0dV+9iSTDST01New5xAszY6Kay1ptVHp8BUpETGecp0n2ap j/vDQNzAEiOXvo72DzGm/8rqVvFD1P/L8W1yhRZvXTQPuxLtGuvaS7iMs9ttvBUoOire MkL38lJC2mtu0dAJDMe1CM6BodLjACWQnWFQCdyFc5gEzXKXIL2MRQVCDpKteqN9TmA3 baOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ADhQPTFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss21si3442267ejb.124.2020.05.21.08.14.40; Thu, 21 May 2020 08:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ADhQPTFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729692AbgEUPKw (ORCPT + 99 others); Thu, 21 May 2020 11:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728136AbgEUPKv (ORCPT ); Thu, 21 May 2020 11:10:51 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B736BC061A0E for ; Thu, 21 May 2020 08:10:51 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id g34so1877068uah.4 for ; Thu, 21 May 2020 08:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ffe0xz9XMcB5mRpVbSZxAWF/UEfoDxZNXD2x44f+aIg=; b=ADhQPTFdZEYLsxid6o5adOvSYnvHO06MEAcMIK9vt6NakkFzT7SJoRfUfS/VVY2uBN sBf7Rg3UZ+KjLHtkaHd4bEORQOOVJ/qIZSn7J0HVFPd812RpgZPZxFrPxAe55+M2gl9T R70cOP577H7YotMi3d7OptNRcJWyVeW+oc7lM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ffe0xz9XMcB5mRpVbSZxAWF/UEfoDxZNXD2x44f+aIg=; b=VlIdPVryliykI9XwhVpW78pLqJxkPrHqVM5JEDqKpNJ29c0QGDU6ZmUfy+vP0w0rOs hGiIZvhql92Ng7WHw3a4gabTE6uMZ4edAfQGZ6wHoVPZkfomFvO3ibWfdvaUnEZwPIDX HDrD10QUkNTn6ZbrKWxVc6YnJH5Yndj2can6zQPRfwBty7TxqtVejY7Mjv47EWrd8jXq mC/iVRVwJ/7qqZpbrBEEPQmMb19KMiSnioNfdXpJZV+5nHPI57CK9CNhHwhMmv+piFht Y0p3xmT8WywRCx6bkdBb3pKoL6s11v2wtZ5GAtd+x2lrHwDpJ+yVdv07RU2RIVzrd9BX 6MXw== X-Gm-Message-State: AOAM532PbYExyykmDvHRbWUnfkZ2DL0C1yDY/KSCrpsjUMVpZjvbgD4a cNJDdM+r42K3BuvoAHQPj37pvH1OEak= X-Received: by 2002:ab0:48ea:: with SMTP id y39mr7293333uac.21.1590073849501; Thu, 21 May 2020 08:10:49 -0700 (PDT) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com. [209.85.217.42]) by smtp.gmail.com with ESMTPSA id 2sm103950vsj.3.2020.05.21.08.10.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 08:10:48 -0700 (PDT) Received: by mail-vs1-f42.google.com with SMTP id 1so4183694vsl.9 for ; Thu, 21 May 2020 08:10:47 -0700 (PDT) X-Received: by 2002:a67:e884:: with SMTP id x4mr7424096vsn.106.1590073847105; Thu, 21 May 2020 08:10:47 -0700 (PDT) MIME-Version: 1.0 References: <1589307480-27508-1-git-send-email-rbokka@codeaurora.org> <1589307480-27508-3-git-send-email-rbokka@codeaurora.org> <14e1fa51-066c-6e1b-01a4-2103612de9e9@codeaurora.org> <9864496c-b066-3fe8-5608-bd9af69663f4@linaro.org> <99f07eaa-d072-f391-098e-e6f7a50a1960@linaro.org> In-Reply-To: <99f07eaa-d072-f391-098e-e6f7a50a1960@linaro.org> From: Doug Anderson Date: Thu, 21 May 2020 08:10:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v1 2/3] drivers: nvmem: Add driver for QTI qfprom-efuse support To: Srinivas Kandagatla Cc: "Ravi Kumar Bokka (Temp)" , Rob Herring , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rajendra Nayak , Sai Prakash Ranjan , dhavalp@codeaurora.org, mturney@codeaurora.org, sparate@codeaurora.org, c_rbokka@codeaurora.org, mkurumel@codeaurora.org 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 Hi, On Thu, May 21, 2020 at 8:01 AM Srinivas Kandagatla wrote: > > On 20/05/2020 23:48, Doug Anderson wrote: > >> Is this only applicable for corrected address space? > > I guess I was proposing a two dts-node / two drive approach here. > > > > dts node #1:just covers the memory range for accessing the FEC-corrected data > > driver #1: read-only and reads the FEC-corrected data > > > > dts node #2: covers the memory range that's_not_ the FEC-corrected > > memory range. > > driver #2: read-write. reading reads uncorrected data > > > > Does that seem sane? > > I see your point but it does not make sense to have two node for same thing. OK, so that sounds as if we want to go with the proposal where we "deprecate the old driver and/or bindings and say that there really should just be one node and one driver". Would this be acceptable to you? 1. Officially mark the old bindings as deprecated. 2. Leave the old driver there to support the old deprecated bindings, at least until everyone can be transferred over. There seem to be quite a few existing users of "qcom,qfprom" and we're supposed to make an attempt at keeping the old device trees working, at least for a little while. Once everyone is transferred over we could decide to delete the old driver. 3. We will have a totally new driver here. 4. A given device tree will _not_ be allowed to have both "qcom,qfprom" specified and "qcom,SOC-qfprom" specified. ...and by "qcom,SOC-qfprom" I mean that SOC should be replaced by the SoC name, so "qcom,sc7180-qfprom" or "qcom,sdm845-qfprom". So once you switch to the new node it replaces the old node. > Isn't the raw address space reads used to for blowing and checking the > fuses if they are blown correctly or not and software usage of these > fuses should only be done from correct address space? > > the read interface to user should be always from corrected address space > and write interface should be to raw address space. Great. That sounds right to me. Presumably the driver could add some sort of "debugfs" access to read the raw address space if needed. -Doug