Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp222179pxb; Mon, 11 Apr 2022 23:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqJHr2dE9wTwLFnqmda0gcxRxNHbSEN4wcghPc+mF/sKVjoC67iLIUgaHM1M4ae/K2N9bB X-Received: by 2002:a05:6a00:1701:b0:505:c49b:d2ed with SMTP id h1-20020a056a00170100b00505c49bd2edmr8602812pfc.56.1649745822941; Mon, 11 Apr 2022 23:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649745822; cv=none; d=google.com; s=arc-20160816; b=dFzv32CTpY0w7qfiimSfrMa8/WJumqyL6AuuJj0tNP9oKnVi/HKv+H8E/VktWUSHH1 1ydRnyR5IVTdwjWkHJQOiszTU50J7KWZm1xB64x4nM6qpbiYFTECEZc0rWLcpRXrlUGB 65sgRq/DG8tXA34knf8216egFnoN5OnfT5+kqARQZYUetY8DS3yqAeKpUSsZK9rTEiz0 nnu/razJtocRxb1ofcGSi4CpKKN6L+dZrxQXNRGrGq3pV2u4YSLNeIve+qVhXQX8dLDU j9Wgexc+J+QyCfjnTWHxyhzEmpOPoMIJBOFHt1jRFxq9Bd+1eH2xDDOsErGLy02XUgrj emjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=HoLWT/EythxVH1YT+vEjLN2TXDPwfF5xPPqMajsg97o=; b=Y8QLtYO1ux4ESOnCE4uSpEgA9IegJSbsMDEt2HGdg9a4pp3ZoTPL7YcEdnoqUoUqwU UsUyAvcwwcKoJweriwl5zfzfW+HcTXxcFJeKbMFQJ67rI1HMxw/BFoX1IW21c8of1cWN vlKyseChM4LwUer+Nm4Xc6oGt1tqWmD0t3wD/QV99wxd9lDDxLMwRyzafLUET53EST89 7a54F7VnDuRb73GrH2Q0gQX2KMVUdzlUS/AylkU8oGD7xYEoqheV7z9SM2d3t/cbFjus U+me5b2oob7XMXB5SUFnkBaDr3kyNAqCvmEGxnykkI5XNDqQnHlILmkrboceKJviYjjn CRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6DqRW4gK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x83-20020a633156000000b0039cf6c9147dsi859576pgx.464.2022.04.11.23.43.29; Mon, 11 Apr 2022 23:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6DqRW4gK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239630AbiDHVKp (ORCPT + 99 others); Fri, 8 Apr 2022 17:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238798AbiDHVKo (ORCPT ); Fri, 8 Apr 2022 17:10:44 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A03B814D795 for ; Fri, 8 Apr 2022 14:08:37 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id q142so8752683pgq.9 for ; Fri, 08 Apr 2022 14:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=HoLWT/EythxVH1YT+vEjLN2TXDPwfF5xPPqMajsg97o=; b=6DqRW4gK+PKLqJfJdAd0TGTO95Ya7KDB3mBZJjKMlL0nxZLtgxfpl+75BDL9PpUtD/ D8sxCCmecY9A1jNHsGn59jfaYAYVcw0MXiJZsMdhW9Hgaj2eegEWYZqhsHZZ8RViFFh8 g/mUJ5pRz/mDzFZbqiAMFiy2sA1QwSdm7uJ+N0EWGsnS9ZjEVfmjTnqFmuhMnW10Edv7 uODRBJwh1af7cUiTZDMOJnhCYENwjfab4lz7/KYYJOcswfmpJxqrQ5/bp0tB9mIV7ZMt Kceie9MXCbkN4vkioRj3xK49n2u3J7v+iyzNlDM+Hsx6W8Dz7u6YcGhollnP1Te9u94x iUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=HoLWT/EythxVH1YT+vEjLN2TXDPwfF5xPPqMajsg97o=; b=mv/36JgYyMM+tISbjkleyB55KpQZYLlk6S4s0t2FVmM5oAtQsKUcilZdEa0B16s4xq tA7Lm9vKRhfA07JxfmlaLLqwdfv5P5wl5f2MTle+kxCZm1LONovkrgtnBUGH0fpHDyBw ZHn3IDzShENrq8tAt+L2C1htEgU+p7+ZdtkOQcKnHDXhgTx6gfVJFj0aaQkXqDYwsiE0 cxtig6llf7RMmbpDzV8miNa4T9jlqOjBXQyKb/Qz5EpedtsZz6Ufu6mq4G/+rbMkwgZm veHdYqp6TMD8SnfQa5yazPQsKfDCLGTP+kiy55WUW9RQGwiZ4hkDKLqRCzd82zUobwiF hd6w== X-Gm-Message-State: AOAM531jfYHhmOpiKFIKtxdfS62JUS2JYT3D/WdEqD7CjE1npVw2o0L6 VL9bnCuQqOrBTi6Gz8Z3CpTtFQ== X-Received: by 2002:a63:c015:0:b0:385:fe06:eb86 with SMTP id h21-20020a63c015000000b00385fe06eb86mr16908387pgg.132.1649452117075; Fri, 08 Apr 2022 14:08:37 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id s10-20020a63924a000000b00399571b2f99sm12120792pgn.57.2022.04.08.14.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 14:08:36 -0700 (PDT) From: Kevin Hilman To: Rex-BC Chen , rafael@kernel.org, viresh.kumar@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org Cc: matthias.bgg@gmail.com, jia-wei.chang@mediatek.com, roger.lu@mediatek.com, hsinyi@google.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH V2 11/15] cpufreq: mediatek: Update logic of voltage_tracking() In-Reply-To: <20220408045908.21671-12-rex-bc.chen@mediatek.com> References: <20220408045908.21671-1-rex-bc.chen@mediatek.com> <20220408045908.21671-12-rex-bc.chen@mediatek.com> Date: Fri, 08 Apr 2022 14:08:36 -0700 Message-ID: <7hczhr5lm3.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rex-BC Chen writes: > From: Jia-Wei Chang > > - Remove VOLT_TOL because CCI may share the same sram and vproc > regulators with CPU. Therefore, set the max voltage in > regulator_set_voltage() to the proc{sram}_max_volt. This could you a bit more detailed explanation. Why does VOLT_TOL get in the way when regulators are shared between CPU & CCI? > - Move comparison of new and old voltages to > mtk_cpufreq_voltage_tracking(). Why? And how is this related to the above change? Seems to me that it belongs in a separate patch. Kevin