Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp232108ima; Tue, 23 Oct 2018 23:42:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5dNWsEpl6Tzj0TYCJOcoGxiypuoEuw4yabeosuh5eM9oo7GdtxzknzWrL3iQAphC69CV8IG X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr1407516pla.178.1540363342199; Tue, 23 Oct 2018 23:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540363342; cv=none; d=google.com; s=arc-20160816; b=m23Kn9LFkCmV64gSHPo+CMrmKwWynX8saN+IWiInt8vV+LQmfaclKEQRF8QgZ/XBfQ DVE6XaArK1JDYHNOkQ4+YWnqXWuNwhCJRoOoaJYbj/A8fbmczJ8a7Ujdqv2u6tEJMytF BdJcjHY24axvazTehZdwa4ECUL/wXJ9roO59R10KaujrRSiUk7P6juEFAurAH1NNhnj2 MUDfrqoS/qNIYLbBG3PqJQP/iGdNbl4gyKa7TFkr2cbE07Y+lnR755OI/nPzUR2PZ3Vv ysr/Zc/7/LgiO3QlOizSHlWjJtR9Ty4VJNhO9d9pZ/YvUXg0WHTeFrRrIFgRMZaOuv8c dioA== 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; bh=bYjblIwUWV3TvDA1gjPimUFpNpks8E4/u1/Kq3quwZc=; b=PrszhYjbTGyzcc/uO5bS5bRrc/LGNXg9FWm3IM8AjVb07FGPCJbQMJIntIJH8ZQ7gC LvMR7sJ2Chb1BXzw5enJ7fggQxaX0z5jFNxRiXfrZc8+OHF9fcyvT/unVKVmZwRpnOoe MMuDwq4uu1rOEhnmsxamZ6s2IcqbhyBNRDQlggWqWYR6cR0PH2t/yH+5b2lT3egFdez5 Gy/rYBJqDTEEdFWnX//VXBsfFsXDNsKYkDmSdeQVCSyALJLFHcYAiGEfZW6YwacquQiY RTAa5+T2tFMQhMD52WnCa6B17qxlSOSLnKC/0B2ITZe9ldyFTupJ265xlbXCAbr9bWCO ylPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lv8o6rXq; 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 bd7-v6si3422418plb.25.2018.10.23.23.42.06; Tue, 23 Oct 2018 23:42:22 -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=Lv8o6rXq; 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 S1727103AbeJXPIK (ORCPT + 99 others); Wed, 24 Oct 2018 11:08:10 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39503 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbeJXPIJ (ORCPT ); Wed, 24 Oct 2018 11:08:09 -0400 Received: by mail-pf1-f195.google.com with SMTP id c25-v6so1942551pfe.6 for ; Tue, 23 Oct 2018 23:41:27 -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=bYjblIwUWV3TvDA1gjPimUFpNpks8E4/u1/Kq3quwZc=; b=Lv8o6rXqSNonbLqWjruCzz+TvlRgLyrFL4Pu8ej6N927XdVXpz1uyoVlBcPfB/MpW1 HXXl01AoEmqifSrZ7cTkUkiJSk0tWcHxtvsffgIeEVqwkDD3vaqrUc8iF5Ya9bnZSlIl rjh9NEObSWqo9uY7+DttnZptTGChVoVzUmhBU= 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=bYjblIwUWV3TvDA1gjPimUFpNpks8E4/u1/Kq3quwZc=; b=NWAyBsDVsFi92BoFtcz7S+IS7pqAclgd6LIUxRanAiCjFRs6X8x4lYu3TOkawkLsls UvltJDNaPDLcPXumHxYjROxG5asHtFsNZqtoan99ZjgAHVgte4WPrXQ8YjwhJ+SnxB3f XfdFtey0z9MedyI8lRAST4TLa+Wdqz1wB7Fgkn4UWChHKppmg0T8djdVWQC/smWggeak XYU4FzxKsjeKQNLhXnxHHDcL9VRlcE/nBkKsXABPMByRnr124MxG9CKxJVUY8gWR52ZZ vCC+NOlLLDZ0+48H3dfT4W+fXKwtwKlSZYTKB+c0MQ7yII6E8QoY2J0UUl9fYbucD5V3 5YOA== X-Gm-Message-State: AGRZ1gJyOEDO+4qg8R0+b5x7Jrhxh+rq/0hQWVQ+NXKfUXlFiJHFeXaV QRwbyz4yPGoJLsycJeUAIAstYfQtPkw= X-Received: by 2002:a63:3e05:: with SMTP id l5mr1318777pga.96.1540363286463; Tue, 23 Oct 2018 23:41:26 -0700 (PDT) Received: from localhost ([122.172.217.9]) by smtp.gmail.com with ESMTPSA id n64-v6sm5147722pfi.185.2018.10.23.23.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 23:41:25 -0700 (PDT) Date: Wed, 24 Oct 2018 12:11:23 +0530 From: Viresh Kumar To: Dmitry Osipenko Cc: "Rafael J. Wysocki" , Rob Herring , Thierry Reding , Jonathan Hunter , Nishanth Menon , Stephen Boyd , Marcel Ziswiler , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 01/17] OPP: Allow to request stub voltage regulators Message-ID: <20181024064123.lbpbeervghp35fe7@vireshk-i7> References: <20181021205501.23943-1-digetx@gmail.com> <20181021205501.23943-2-digetx@gmail.com> <20181022053636.ag62j3rj3vovbz53@vireshk-i7> <20181022113224.b5fiebgy2aap66nd@vireshk-i7> <29f893be-feed-c4c5-8468-51f7228dd468@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29f893be-feed-c4c5-8468-51f7228dd468@gmail.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-10-18, 15:12, Dmitry Osipenko wrote: > Because there is one Tegra20 board (tegra20-trimslice) that doesn't declare > necessary regulators, but we want to have CPU frequency scaling. I couldn't > find board schematics and so don't know if CPU / CORE voltages are fixed on > Trim-Slice or it is just preferable not to have DVFS for that board, it is an > outlet-powered device [0]. Hence tegra20-cpufreq driver will request a dummy > regulators when appropriate. We have been using the regulator_get_optional() variant until now in the OPP core to make sure that we don't do DVFS for the CPU without the mandatory regulators being present, as that may make things unstable and cause harm to the SoC if we try to take CPU to frequency range over the currently programmed regulator can support. Now coming back to tegra-20 SoC, which actually requires a regulator normally by design. On one of the boards (which is outlet powered), you aren't sure if there is a programmable regulator or not, or if DVFS should really be done or not. Isn't it worth checking the same from Tegra maintainers, or whomsoever has information on that board ? What would happen if there actually was a regulator and its default settings aren't good enough for high end frequencies ? On the other hand, the tegra20 cpufreq driver is common across a lot of boards. What will happen if the DT for some of the boards isn't correct and missed the necessary regulator node ? And because you are moving to regulator_get() API for the entire SoC (i.e. its cpufreq driver), people will never find the missing regulator. If we can do it safely for all tegra20 boards, why not migrate to using regulator_get() instead of regulator_get_optional() in the OPP core API itself for everyone ? -- viresh