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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99148C43217 for ; Mon, 21 Nov 2022 06:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229447AbiKUG6T (ORCPT ); Mon, 21 Nov 2022 01:58:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiKUG55 (ORCPT ); Mon, 21 Nov 2022 01:57:57 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7DE6175BE for ; Sun, 20 Nov 2022 22:57:54 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id g5so1124436pjp.4 for ; Sun, 20 Nov 2022 22:57:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yAbnAM+ovW8h6+jx0Tfr4v7il7axJFcd8q4vAg9pxqU=; b=YASVB2+1xzQoFStyoTpwjLX16ovU0ApOmI8Zw4lo8GoOiOVAapW0jg44/t2Lh/Y3b8 jwlCK2hSH4iBKdv6uZgisHKDqV0ZCo9YNQ2oK0+VbMiPa3hM/Jl4vHb4wJW4dOsZneYQ ZeyWNRNQAboOn5BinYG1bbUpUtQ9SFqd/zR7N3RLL0G/Yt2PTA+SOK9ZhskLc8e05oXe zb0xESU22G4S4QuOPAlUCY7yfeEXaElVUbwSDDjxeyCmqOe2NKnbHIha8i/Gwq7H5FVk jUYppWpZb9RC8AlaRtZUkaju0BTZ6UNB94fsXCna+BkJGgQkVwYTXp1fbEzQW5jnOitC LZJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yAbnAM+ovW8h6+jx0Tfr4v7il7axJFcd8q4vAg9pxqU=; b=7zWhVgB5XsAOT+F0ZInG/Y7XO2dtmo6XqPzI4mbLVpoASZP4Dv/bTUS1szGijJ6dIr IzPynOWjjKvS9xeTA1DDFLkbKSQKD0plL8Uu6Mo5buXOy8iX0m5V2WPg9QB0wudGpOOZ H2dT2kBnfE0q3PokE7R4HRnGASankhIkRDo05N1kvT5d7rNKPw7BJXTT0cuCHDzV0nLG RQcFA0rYnwYrJJ/sLQ7IpXzPlhyOCwMXYMLO/2yGpFdSHRanr4D/tZdfOS+exdQr6b9/ MgKFx6Qc6DRlFWn04Fj5HvdpFdAyGHAgErqTcMmAmi1tTAI2ILRWNi8l3DDaCn9jJCpN HhlA== X-Gm-Message-State: ANoB5pnLYOdCV3KgtzScBKXWjRvTD8nV16AMsb6ScyuOLBskolkNyETy 9Wb9NqGuYogM84oT2ubkbjB9gw== X-Google-Smtp-Source: AA0mqf6C0AKgl/pkwD/lEgIAwvxAkNrduTECfE85HLT5JQCnu8FuOzL2mhKwZkrCRZiGS2k9qBRL3g== X-Received: by 2002:a17:90a:dc13:b0:212:c87e:dc8b with SMTP id i19-20020a17090adc1300b00212c87edc8bmr19158185pjv.229.1669013874464; Sun, 20 Nov 2022 22:57:54 -0800 (PST) Received: from localhost ([122.172.85.60]) by smtp.gmail.com with ESMTPSA id y10-20020a17090322ca00b0017bb38e4588sm8905027plg.135.2022.11.20.22.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 22:57:53 -0800 (PST) From: Viresh Kumar To: Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , Nishanth Menon , "Rafael J. Wysocki" , Stephen Boyd , Viresh Kumar , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , johan@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] OPP: Disallow "opp-hz" property without a corresponding clk Date: Mon, 21 Nov 2022 12:27:46 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This removes the special code added by the commit 2083da24eb56 ("OPP: Allow multiple clocks for a device"), to make it work for Qcom SoC. In qcom-cpufreq-hw driver, we want to skip clk configuration that happens via dev_pm_opp_set_opp(), but still want the OPP core to parse the "opp-hz" property so we can use the freq based OPP helpers. The DT for Qcom SoCs is fixed now and contain a valid clk entry, and we no longer need the special handling of the same in the OPP core. Update Qcom driver as well to disallow freq update to the clk. Mani, can you give this a try again please, thanks ? I have only compile tested this. Viresh Kumar (2): cpufreq: qcom-cpufreq-hw: Register config_clks helper OPP: Disallow "opp-hz" property without a corresponding clk drivers/cpufreq/qcom-cpufreq-hw.c | 34 ++++++++++++++++++++++++++++--- drivers/opp/core.c | 14 ------------- drivers/opp/debugfs.c | 2 +- 3 files changed, 32 insertions(+), 18 deletions(-) -- 2.31.1.272.g89b43f80a514