From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B985C4338F for ; Wed, 4 Aug 2021 23:58:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C53960EFD for ; Wed, 4 Aug 2021 23:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235878AbhHDX64 (ORCPT ); Wed, 4 Aug 2021 19:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233915AbhHDX6z (ORCPT ); Wed, 4 Aug 2021 19:58:55 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8361EC061798 for ; Wed, 4 Aug 2021 16:58:41 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id o44-20020a17090a0a2fb0290176ca3e5a2fso5995007pjo.1 for ; Wed, 04 Aug 2021 16:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AyH5fK9YwykBqKL3r6HFsxoexv4xoxybRmsUgoCLgm4=; b=XZQ5XsFA5qv4sJ6dN85gMsh8oqN+4uierylBokXiTKthmL+ETGpBA6gUyMEmTbOWHL uv4W9xO8CgDoS+PfMiIIO3IdQIrqaRbW0lTIDfdSusqOU1HfaftoK9TrZsIi+eATCNOH iKiHpjNSJfmhjp1DRKl1jDdbCqtP7UhPgEypY= 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; bh=AyH5fK9YwykBqKL3r6HFsxoexv4xoxybRmsUgoCLgm4=; b=m43X702NkS6iYhNGcszhC7fhB+rgI8cTsDVWCe6YfmdgUNVgrlmzKjqX+a7JLy/wkK pVZulqBJLB164WAS7jjeF+oXljVbTvzRGjau4dwNba5g/HuxDyVpJn3N+2GghrHYI/mH fpsWKEzSnP+mG8aVrPr4rtVRzSr8fS+rJ+2fldxhjDPuJu+XHivZmRMr/z9OSq0nktE9 s57WrjhE+VtmffqkxLerbCqafEIbUK+muBY53XoMZduDfWFhnWvQgg1oHJFuGP8lqp0h RdnKxIK4Y0idPi9sHTPIgHU6fnt5W8mx7NBooyCs1C7Wj6aTH4CrXS2MFKS8y3q6yt38 AFTQ== X-Gm-Message-State: AOAM531xclMrBRb9fUq2SElL2WgBZmJj1JTM25n9V+ogw+0GU/6XWQau V/VWbjGyJHR0gZLhJK1RwF///g== X-Google-Smtp-Source: ABdhPJyHkrLrX4KNSdxcJ/Ncu3eMXjGxGupi+NcVQS/LpOIriok0qBjVJHQUGujqxAJcitUeUrgScA== X-Received: by 2002:a63:4c0e:: with SMTP id z14mr1517251pga.427.1628121521087; Wed, 04 Aug 2021 16:58:41 -0700 (PDT) Received: from localhost ([2620:15c:202:201:8d26:a358:9898:4532]) by smtp.gmail.com with UTF8SMTPSA id s36sm4910843pgk.64.2021.08.04.16.58.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Aug 2021 16:58:40 -0700 (PDT) Date: Wed, 4 Aug 2021 16:58:38 -0700 From: Matthias Kaehlcke To: Bjorn Andersson Cc: Sibi Sankar , sboyd@kernel.org, robh+dt@kernel.org, viresh.kumar@linaro.org, agross@kernel.org, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, tdas@codeaurora.org Subject: Re: [PATCH 4/4] arm64: dts: qcom: sm8350: Fixup the cpufreq node Message-ID: References: <1627581885-32165-1-git-send-email-sibis@codeaurora.org> <1627581885-32165-5-git-send-email-sibis@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 05:59:04PM -0500, Bjorn Andersson wrote: > On Thu 29 Jul 13:04 CDT 2021, Sibi Sankar wrote: > > > Fixup the register regions used by the cpufreq node on SM8350 SoC to > > support per core L3 DCVS. > > > > That sounds good, but why are you dropping the platform-specific > compatible? > I also stared at this and the patch that changes the code for a while. My understanding is that removing the platform-specific compatible is part of not breaking 'old' DTBs. Old DTBs for SM8350 contain the larger register regions and must be paired with 'epss_sm8250_soc_data' (driver code) which has the 'old' 'reg_perf_state' offset. New SM8350 DTs only have the 'qcom,cpufreq-epss' compatible, which pairs their smaller register regions with 'epss_soc_data' with the new 'reg_perf_state' offset. It is super-confusing that the platform-specific compatible string is missing. The binding should probably mention that the two platform-specific compatible strings are for backwards compatibility only and should not be added to new or existing DT files that don't have them already. Maybe a 'qcom,sm8350-cpufreq-epss-v2' or similar should be added to avoid/reduce possible confusion and have to option to add SM8350 specific code later.