Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3822457rwb; Sun, 20 Nov 2022 23:08:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf44lZ5NibMmfmIHZs/ab5xDbvKncmznTfT8vp97yQe3nYpU8HOiZvJm8KhTME+k1JzBeiWM X-Received: by 2002:a17:906:5fd5:b0:7ac:2e16:a8d3 with SMTP id k21-20020a1709065fd500b007ac2e16a8d3mr14809492ejv.667.1669014523876; Sun, 20 Nov 2022 23:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669014523; cv=none; d=google.com; s=arc-20160816; b=QhteZl789SH4dQ/7QkzM3xF+3s0BLrAMu30C0eFBJGLhF/tM3W72KTj8tac75jgbPg +vNEVyEKuTulMQu4YpHnzIgGDL+31eDScfbJzCpzluQ0Lj/V2tRadXOquGPJr7vsTOJl SHdVmPMOL0ZT/4AyqMlETEWy2qMjA4eyPtauUOFZtU3jAHDOJk8R0Cg63uIFDdHNQVxY EhSXoARKDbb49BlF6e+omYoUNF+3eSoxdS6xPoN1061j8+z/PaZLEUtYhHHAIUveIHby BPJJdqM8DWMAj4QSU+6uI9TbukVzqEhlBPgDghfEc2unyyuztMF6Nwh5Z5eeHiBLq3Q7 YwAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yAbnAM+ovW8h6+jx0Tfr4v7il7axJFcd8q4vAg9pxqU=; b=SHbWyuDdEvfPsmDpTE4nIHfZPj8pFh3Qrb3pvZtdQ74jRS0cn5omKH370UgIIwW3l7 0146p5ID5OAXnmgdYnRQu+V2V8aK9jikjrdjdj0fto3XLilgH/vbSkaq1KBzP86XPaNu ZzR1lFRq4ZBLXYOtDcknNL4A3a9uNgeFavb6KjlcEzsEfnKq/wHg5uPTMSlXCW21cyul gh38jHR3SNe7YU7W+AIA0XYYtS3MaUOnZX1M1Zmj8W/gdk2rlFc1uUcaqG39rHzSNxiV G9UYEgkQx2qnAKqyVn08K1Qm14PuaxzArNI1e2WHjfkpAjzU5B5/J85Wr39ozJ3KWXmv RkZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YASVB2+1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ef8-20020a05640228c800b0045c9dbe290csi7851040edb.406.2022.11.20.23.08.16; Sun, 20 Nov 2022 23:08:43 -0800 (PST) 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=@linaro.org header.s=google header.b=YASVB2+1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbiKUG6R (ORCPT + 92 others); Mon, 21 Nov 2022 01:58:17 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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