Received: by 10.192.165.148 with SMTP id m20csp2993834imm; Sun, 22 Apr 2018 21:25:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LbXKPyWP6NhazB4IUvM+ucsff9AheIsv2ESyVIZFbjEUOG0uBjgDB93xqgLtLWc8jQDDL X-Received: by 10.101.77.198 with SMTP id q6mr15966160pgt.61.1524457534659; Sun, 22 Apr 2018 21:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524457534; cv=none; d=google.com; s=arc-20160816; b=jWataV7ZwZ7pf8w3+R4JcvBAKzT3/iKxoP60z0YGr1XckX9FdkhBRKzEWFJep9XXHT cw9O7sCRRsX1Yj0cSIrlE10jm09aogqeaSAsY0MLxv/WUJOATZa348jxH604GgswAXla aqFrthRXDBzKOAysWMNfCnyc6HmHBLxPixjivBjlTPmc8BDe/aPT/zH+X3dZSBBIB7Gd v7Jr5LaIjzMSf935qFQ5T45Fjo6gr8ndyIlipel7QYhf8A278RnuhHSuK+hNXw2aWhju EkMYgQfmkbFdRx9yN778UMrSPtyDck6OWvonlqNnfL+05cX1k+6RLA20M3lvINz9Vv87 L5Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jd2qgZ4DUlnDI/x060XpLTCRQT/sh9tAfNbPAaoT60o=; b=iLCtF+9scihya2pABMTrnZqqNRjCelDMBngbu3EK82BBqfLcDAFPBniQkNfakubwYr QN7ZmBiBynkiu0p+3qxq1IHTo0EiUNpN4fscMDhBnlNu4Qx+ALW7JSyZsHOGPQjGCDxl okVvu+V3FEhd3Ynx71Nw/f/KDulTZgNApAKCgQTlZ4I9wW38RWRIfVH5GdRt9KNx8y/P x5bDCXHjVjb0Tmlav8cGrlABhKzUEx/mhHSwWeN0ew9/M0tmhIr8z5fR1yGiaEiVOyO9 jH3GPqLjLKi7t90aAY0KBUBEPe60jeu0D/ppNPrjs7g6gEwEhPW7KI2wylt9Kw6XwF9z ZkKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e08gWil3; 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 s3-v6si10993446plb.394.2018.04.22.21.25.20; Sun, 22 Apr 2018 21:25:34 -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=e08gWil3; 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 S1751352AbeDWEXz (ORCPT + 99 others); Mon, 23 Apr 2018 00:23:55 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:42494 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbeDWEXw (ORCPT ); Mon, 23 Apr 2018 00:23:52 -0400 Received: by mail-pf0-f194.google.com with SMTP id o16so8157884pfk.9 for ; Sun, 22 Apr 2018 21:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jd2qgZ4DUlnDI/x060XpLTCRQT/sh9tAfNbPAaoT60o=; b=e08gWil3goruM9f4z52bN3hScTuxy75cXg/73qC4NQEJ9OkpW2ICY4DW07Vz9gDQg9 OBW5mv8vF+pf6UFUkFhFo7Fo9lZFXkKDPnnJmIl/8ZdU/vihb2DGY74AqcVjw4mwGnQC P4y5MSYeagkyMh/3NuQ2SBP9XbyPqQxGILVds= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jd2qgZ4DUlnDI/x060XpLTCRQT/sh9tAfNbPAaoT60o=; b=Z2TU9Pb+G+rnoSkG1GBGGqrscTYXfuoJBxt4XccFFpYQJ3LGxawQz69T9WMkxohFda CU/eWqo3wxHMJWB0ly/P17ZstG3Hj1H9kOudwE/FlqtRo8HYOF2qUS0FjlcMMGM3UFdS OmX2Z0IGdP7udVYq1d2n+RMp4F9+lylfZeKhgVZIYVNarcrWuj3IYUq1osbHAucPgjbz DvhEdU9rfXSnJor6o2f+2Gmyi+/UfBlxBWyeWMJTDMYB+97ZlKNJP7xIF64zI1gwDlB7 XywcZLaj7nQ1poK/VXC1+hDWHahNWzsF3yacWZg68RW+Ob68wNoBReG2aEKaGbelLyZj lbZw== X-Gm-Message-State: ALQs6tAeFx1UHHoYZzJzSgR88sYVYaSC4CJR8uDQQBFk99cd52BOf5Bb +pmFWDcMtvOZeTWY1qXRQSiydA== X-Received: by 2002:a17:902:362:: with SMTP id 89-v6mr19793204pld.270.1524457431892; Sun, 22 Apr 2018 21:23:51 -0700 (PDT) Received: from localhost ([122.172.61.40]) by smtp.gmail.com with ESMTPSA id t80sm8671162pfg.0.2018.04.22.21.23.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Apr 2018 21:23:50 -0700 (PDT) Date: Mon, 23 Apr 2018 09:53:43 +0530 From: Viresh Kumar To: Florian Fainelli Cc: Sudeep Holla , Markus Mayer , "Rafael J. Wysocki" , Brian Norris , Gregory Fong , Jim Quinlan , Broadcom Kernel List , Power Management List , ARM Kernel List , Linux Kernel Mailing List , Markus Mayer Subject: Re: [PATCH 2/2] cpufreq: brcmstb-avs-cpufreq: prefer SCMI cpufreq if supported Message-ID: <20180423042343.GB2989@vireshk-i7> References: <20180418155643.36464-1-code@mmayer.net> <20180418155643.36464-3-code@mmayer.net> <20180419041632.GF24576@vireshk-i7> <74b70865-dfa9-25c8-20f8-3d2f722b9b2d@arm.com> <20180420044259.GA2873@vireshk-i7> <20180420093548.GA2989@vireshk-i7> <52044000-513b-b5a1-27db-fb7fdb5ee04f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52044000-513b-b5a1-27db-fb7fdb5ee04f@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-04-18, 09:50, Florian Fainelli wrote: > On 04/20/2018 02:35 AM, Viresh Kumar wrote: > > On 20-04-18, 10:15, Sudeep Holla wrote: > >> It still doesn't give the flexibility to switch between the two > >> implementations boot time based on some firmware config(e.g. DT status > >> property). > > > > I agree, but it didn't look like they need flexibility :) > > > > Lets see how the intend to use it. If they are *always* going to use SCPI if > > that is available, then it should be solved at Kconfig level only. Else they > > shouldn't put such code in the driver to quit early. > > We have both drivers (brcmstb-avs-cpufreq and scmi-cpufreq) enabled in > our kernel configuration, however, depending on the firmware version, we > may have a number of combinations: > > - arm,scmi DT node is present and enabled (status = okay) as well as > brcmstb-avs-cpufreq being present and enabled > - arm,scmi DT node is present but disabled (status = disabled) and > brcmstb-avs-cpufreq is being present and enabled In this case the Kconfig thing I have been talking about doesn't apply anymore. -- viresh