Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1182236iol; Fri, 10 Jun 2022 01:58:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYGMtEh/l4VMBJbqTitoLBmNTsn+cWKR9zz8BJbb6dCxVDp00TPvM766jyq7nbRw/a0qHs X-Received: by 2002:a50:fb99:0:b0:42d:e4fd:c368 with SMTP id e25-20020a50fb99000000b0042de4fdc368mr49584377edq.138.1654851525657; Fri, 10 Jun 2022 01:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654851525; cv=none; d=google.com; s=arc-20160816; b=Aj8gNLlcvT5u1nOTXU5pq8/xpeJd1IWC9cTXStTTgDo695tYFjw/7Fwf1Wtx6oTMct YHZMI4NphN4WNvPuqK/vA8/2r7V37r+7L8Ra5WTnz7xjzf9uxAXJtEcVosY7OzuSq5EI LlXjjOuPsD+6n8V055BfOOhdLUDOCQUkBz70l2BC5iyLundDrdTuzt42YUEYP16tshuv t+ba0YGKzy3g776leyPs7gSMG3r7jnnBJdOE0WqpL0y5T9ul7GyxA0n386P2MYseGU07 /tQkWriNcuIsl7mVoenieOiSJjI/qhwOrigNXCqZUOFlAHuOwcMF5H/k5trHpESB8aIB SjVQ== 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=e26ugP+G0D2r5xR0rmI7tzXuT4/A3dEEKa7RW0oG3h8=; b=lMWRX6VwhTXDaCfZ9S6wZJJ4DC/0uf5ULaqoN8JJs2M6GihuKWsg5O25B1UFqdMVp1 jrWa0j5q6YVvrcSsFSsAagITVv3G/Lz8JChuosOYkLJshAxpsYOZASnY/1KYPvZAtbLh mzVQcgP3qGIDenBEJtr4sfTDtV1IGgN1DUGMlMbS7kw7Jz3/Bxec6g76xjum9bKoDqc6 xq8Vvr6ZlqqnaqrAQFDZIpJi/7+2bhSDqki+GAFw8Qv5tVTyDMkryahyCg7cC1UVYjZE rrA44j2Lnbt3hT6q2tP8uupj3WDL1Gx+x8g1oChkBTYG575LLPkSt/MhSxoLcdFJY5Vi verw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rp11IKyS; 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 hr27-20020a1709073f9b00b0071165584604si1598918ejc.340.2022.06.10.01.58.20; Fri, 10 Jun 2022 01:58:45 -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=@linaro.org header.s=google header.b=rp11IKyS; 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 S1347345AbiFJIYY (ORCPT + 99 others); Fri, 10 Jun 2022 04:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343660AbiFJIYE (ORCPT ); Fri, 10 Jun 2022 04:24:04 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D21343E7DCF for ; Fri, 10 Jun 2022 01:21:04 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id d129so24104556pgc.9 for ; Fri, 10 Jun 2022 01:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e26ugP+G0D2r5xR0rmI7tzXuT4/A3dEEKa7RW0oG3h8=; b=rp11IKySQeUqZjSXxco0cSSupsGWjAH2k0IcKlNpZgrodfzpYhZ9EhosVi0nJnzCvu OvPa27L5AFIJYsuKoxLfrmVpeRCapjhj2DUgHw35rVtgGB7CxnoOBgAF0FXW9MnsfQ88 Fpzl/XGYfoPrFuq6cHZ6j/+j5+ewGEVT4QH1+oMhfyWlWfcS4suvKkrcTi7FVpaQfJEk HesevTNGOjveg2q3nqEkBjczH8z3v0cbv2CNNmxS8e1J0upmjFLV0KPYxcpYU7mkNdy1 cnO28senNigNxDEgGyXSSV4stL+DGoTxfaQlUS9XouiqxfyoFQRgP4zh9fgUoxaDZ6y8 gFJw== 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:date:message-id:mime-version :content-transfer-encoding; bh=e26ugP+G0D2r5xR0rmI7tzXuT4/A3dEEKa7RW0oG3h8=; b=1dPtIHOe3yrE3vf1PUWD5b8JpDJwbv3tUOUY1UG+inzNKUqhHyMGvczgWCq8NKkkpU q/w9f+BdfSa839d2XrzH4slEBm4LqynqFwmehiGGDjlPtyq3bzs3rMVvsQKv1YH9mMRZ FOerctXy0WMbpqZZ5HoiOu69NSbJOgG/pl5rEDChiofcSZx66rV0UrHiqes3epqdB4ad aqbGiCHRMhjM4RBcPnl0uWHacyAvd1rkp5zpUAIrkxsRToKhUUzvKD+RafH7iwEjsHnw RkZ7XrkKmCwS3/VgSUwD6bimqkdmdyeRHRD6vFMBXxmIuzaJhMFHHC5pML+ZdihlFvEw +9ng== X-Gm-Message-State: AOAM533fZgEjEHqQmxsgvCbi/DlmwuZUKDvqD8AeEZO2pdYfCJj9SoE2 +EI/j+2ebzvnpTbtz+VcSgUjmw== X-Received: by 2002:a63:441f:0:b0:3fc:8bd2:f828 with SMTP id r31-20020a63441f000000b003fc8bd2f828mr38169652pga.579.1654849263818; Fri, 10 Jun 2022 01:21:03 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id gi6-20020a17090b110600b001e2f53e1042sm1117593pjb.7.2022.06.10.01.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 01:21:03 -0700 (PDT) From: Viresh Kumar To: Krzysztof Kozlowski , Nishanth Menon , "Rafael J. Wysocki" , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 0/8] OPP: Add support for multiple clocks Date: Fri, 10 Jun 2022 13:50:44 +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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hello, This patchset adds support for device with multiple clocks. None of the clocks is considered primary in this case and all are handled equally. This is rebased over a lot of other OPP changes and is pushed here: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/clk Krzysztof, can you please test this for your use case. I wasn't able to test he multiple clock support. -- Viresh Viresh Kumar (8): OPP: Use consistent names for OPP table instances OPP: Remove rate_not_available parameter to _opp_add() OPP: Reuse _opp_compare_key() in _opp_add_static_v2() OPP: Make dev_pm_opp_set_opp() independent of frequency OPP: Allow multiple clocks for a device OPP: Add key specific assert() method to key finding helpers OPP: Assert clk_count == 1 for single clk helpers OPP: Provide a simple implementation to configure multiple clocks drivers/opp/core.c | 337 +++++++++++++++++++++++++++++++---------- drivers/opp/cpu.c | 12 +- drivers/opp/debugfs.c | 27 +++- drivers/opp/of.c | 91 +++++++---- drivers/opp/opp.h | 22 +-- include/linux/pm_opp.h | 17 ++- 6 files changed, 378 insertions(+), 128 deletions(-) -- 2.31.1.272.g89b43f80a514