Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1198040ybg; Tue, 2 Jun 2020 04:01:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+Sgo7WE9NnWJRFXIVITTV431p+Q2UlDn8tD4QVZUFetppL/un5Gw6wyrqvwACdCU/YKPO X-Received: by 2002:a17:906:7f02:: with SMTP id d2mr8387948ejr.211.1591095666612; Tue, 02 Jun 2020 04:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591095666; cv=none; d=google.com; s=arc-20160816; b=yhLRzKAXjDbkqsGEKP/IzZMEVY0M5aQXgeXGDjkS5LKigRJYsn4XRDyEk1KZZ0myoe 1mLtaC8Avkc1uH+F1LiL0piPHFzYnoug/WbS8NMgvFnGFWcNXrX5DyKd7uhrGGufKcd3 s+5641JSs+B+mdjiLtHFE9ZNOw8xmdiuasXUqs2ptYEuLPH14g9PRjGVcp55Rh4HM/nj 7NIv6x0DJtpxeapkU2DtITt9CXuyfcjI55YQQ7DQmAgWecQQ0Aopl+ZW9QcS+0QvgROA twigxfKPIZeA0mrKCeZ9lxdPUioY4CElm0f1+4i/m4pLpvpSO4aN8kL73P6TZJDt7Rxk EVFw== 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=zoyTcyBnHY+drX5v7SAgyghAKKMbaJC1+1oDWq+RDXs=; b=ZbTKIOj8YOgKujuY29/Fp5Un/cCKcwxu6cZGreibZXeg5fzPSeFHmJo7VRCz/e+8X/ wBLRMJXUe7jo7N5R9nLRk9HumO8+po7rE6rvja07CxLI3bEXrv8a/9XZdHuXY5KXl0IN ZPZUlMU8XWtHvka8cnkfuLP1160cbqu60y2wyQgiZrEC6HCjhsmF45t9q8kK6WOjjDz3 E7z3sGs+QX2Em4Dyx7ByYQ2Z3TDcgm8T7V7MEGx0v31XhONLX3hMVsWM8hg9IwPAt1ks xRt+CBUUSuXn+Nfdi+HOB1s2Ntvr4MiVIme92ugtx+9PMhHUIeG5XmyWUDEXMLXZsnE0 pbyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D3v51V4Y; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si1258551eji.126.2020.06.02.04.00.40; Tue, 02 Jun 2020 04:01:06 -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=@linaro.org header.s=google header.b=D3v51V4Y; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726868AbgFBK4I (ORCPT + 99 others); Tue, 2 Jun 2020 06:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726630AbgFBK4H (ORCPT ); Tue, 2 Jun 2020 06:56:07 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC9CC061A0E for ; Tue, 2 Jun 2020 03:56:06 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id x13so2938560wrv.4 for ; Tue, 02 Jun 2020 03:56:06 -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=zoyTcyBnHY+drX5v7SAgyghAKKMbaJC1+1oDWq+RDXs=; b=D3v51V4YKXhUKnJPtW4V4QvG5a8/aZCj0VeqUCP5QQD3Z4XAqvw0Hx3MIZUNhsJWCM 2OOTvhnnW66j1NnxnuOCLbWZ6WkSSQ9P2RBVyIFAnG1hBsU2jv26UHA3wLgqAegM1Jok 5LgPVVZJ2PGCYi6V2FnEm0or4NXh69KIHz7qHDX82xotr3NTmC0IzztpdReRJ8ZEf/UV P+0ohbjgCwgwOL7wHyGc64lctqSWbjgj66xveQZ8lW4kp1fB7lhZH7vmoyUvMOpF9hYx llCC3youihpIiVRh/v7JhY1QAwV6NF3Q2Z9WRTdXYiNI66l+Tlt5ILVjYBouQvjUDI40 hbMQ== 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=zoyTcyBnHY+drX5v7SAgyghAKKMbaJC1+1oDWq+RDXs=; b=JbvEeXlf4NC6+2seoIFWv7QqQSL5cmwkiFSD75qrYcl8FQnqL7tsFfaqaarNeWDZO7 3F2Q6JkR01kNGSmlodOEWgJOSDqPYNEX27MxiP+37h/wt9APCCF0nuVhJ5vK1c5/FomM sLvGmp7K32dpyhcBqlZ2QYPjMk2GLD3GC8uMNjX87VFLzKb9aQqECK9axdiQqwNfOILu G53vPLq6q0ciGrI9FEgmc5WQy784rwvxCYnPn9zrfg5b/2OuNSwMrsRq8uAUtUONPvje DYMNyOZ/PZAA/gRS/GBKMv+402HeevTdb7XH2OIJnPmztnJixM2KXUsMd1Btzis63twF RpYA== X-Gm-Message-State: AOAM531PldFLjcmzizB8Wab+3h9iAqHZzMOs/4B0bU6BNoEFjn2oWiCA M5z8K0vp6UXaR9ByHQGFhNHOkw== X-Received: by 2002:adf:ea8b:: with SMTP id s11mr26398235wrm.168.1591095365239; Tue, 02 Jun 2020 03:56:05 -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 y66sm2991524wmy.24.2020.06.02.03.56.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2020 03:56:04 -0700 (PDT) Subject: Re: [RFC v1 2/3] drivers: nvmem: Add driver for QTI qfprom-efuse support To: Doug Anderson 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 References: <1589307480-27508-1-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> <9ecb5790-47fe-583b-6fc3-8f4f3ce7860e@linaro.org> <871dd2c1-4b16-f883-b8c5-806a0df1edf8@linaro.org> <1211660e-f1b0-0636-2dcf-1bc765118de3@linaro.org> From: Srinivas Kandagatla Message-ID: <1d276cdc-247c-b663-0f69-0961cf75134b@linaro.org> Date: Tue, 2 Jun 2020 11:56:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 01/06/2020 19:08, Doug Anderson wrote: >> Am not 100% sure if "qcom,fuse-blow-frequency" is something integration >> specific or SoC Specific, My idea was that this will give more >> flexibility in future. As adding new SoC Support does not need driver >> changes. >> >> Having said that, Am okay either way! > Yeah, it's always a balance. I guess the question is: why do we think > driver changes are worse than dts changes? The value still needs to > be somewhere and having it in the driver isn't a terrible place. > TBH, its an overkill if we are using same IP version across multiple SoCs. > >> Incase we go compatible way, I would like to see compatible strings >> having proper IP versions to have ip version rather than SoC names. >> >> Having SoC names in compatible string means both driver and bindings >> need update for every new SoC which can be overhead very soon! > Almost certainly the compatible strings should have SoC names in them. > Yes it means a binding update every time a new SoC comes up but that > is just how device tree works. Presumably there's enough chatter on > this that Rob H has totally tuned it out at this point in time, but > there are many other instances of this. > > NOTE: just because we have the SoC name in the compatible string > _doesn't_ mean that the driver has to change. You already said that > the IP version can be detected earlier in this thread, right? You > said: > > I found out that there is a version register at offset of 0x6000 which > can give MAJOR, MINOR and STEP numbers. > > So how about this: > > a) Compatible contains "SoC" version and the generic "qcom,qfrom", so: > > compatible = "qcom,sdm845-qfprom", "qcom,qfrom" > > b) Bindings will need to be updated for every new SoC, but that's > normal and should be a trivial patch to just add a new SoC to the > list. > > c) If the driver can be made to make its decisions about frequencies / > timings completely by MAJOR/MINOR/STEP numbers then it can use those > in its decision and it will never need to use the SoC-specific > compatible string. The SoC-specific compatible string will only be > present as a fallback "oops we have to workaround a bug that we didn't > know about". This makes more sense to me, I would still stay with MAJOR/MINOR/STEP numbers mostly unless we are dealing with some corner cases. thanks, srini > > >> Rob can help review once we have v2 bindings out! > Sounds good. If you're still not convinced by my arguments we can see > if we can get Rob to clarify once we have a v2.:-) > >