From patchwork Thu Oct 12 15:35:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 1847541 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=gik5tksz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4S5tyG2fVHz1yqj for ; Fri, 13 Oct 2023 02:35:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379382AbjJLPft (ORCPT ); Thu, 12 Oct 2023 11:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379172AbjJLPfs (ORCPT ); Thu, 12 Oct 2023 11:35:48 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB1A5C9 for ; Thu, 12 Oct 2023 08:35:45 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50435a9f800so1538932e87.2 for ; Thu, 12 Oct 2023 08:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697124944; x=1697729744; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zvD1jnafegL1HSx05hSXRJcdFWj9TTVTdBC34ZqJQ3k=; b=gik5tkszfGBl1UPg5O984TfmSGNW44zVnz+b+BXye37rOPk/NmJ1l/Lc1QhXRuvS0B Xn3agKWZyb57HFgvQZ0BYhiCeKh0efw0PKcyiZtUCr53Hc3LiC7cCh+o0xn9P/xvYxkC LhG51ASpaY7oOHdZcNFKGXI2pBIyTAO33rTMOtmeAND3feSByLEP53LxjYTK6waL2cKI uNSzsOJJNcuolPA4jodpWIr95utrHlJoYNzEjrLoc/223tpwkdzEaHOKfS4EHjDFYkoW TAx89neG1OCdPfxEtzQ1LXruN+Fc0qhdgyIUN1qlJNx9nyewvUZdQQFsK/lDTjF06Jg1 S3jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697124944; x=1697729744; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zvD1jnafegL1HSx05hSXRJcdFWj9TTVTdBC34ZqJQ3k=; b=I0SRC7U1wMnuLSrop9WQA+jbImTDQ2tpagHmS3U/OGGiwGQfL66GaKXje8CsNQmR3r dpSltCtI5aFoepfbPyMaD+Ns/PTmEB2bBixs4vf7BU1hLcv2zP03ZpdVUmPczBsYkUEo H4bLdKSPGNPVBrLGHcy2vBApeN5yrlbqNjqdLl9uU+4DuemJADhDEspEWu7LxteQRDm6 eOx+5tPF7HDw8BgTUDcSSq8mSKSB5Cbea6Cd0XDXxiPVeaIRIFdnS1zouDg5yWwZjhHM OvPGI6skG3QBgs4pU51JnaJ2Y9f58BcudTecUmn9VAGBKO1O3j9bsiqyOAtaAacn1nur SE3w== X-Gm-Message-State: AOJu0Yy05cr0R1JjSdfGZg1NyUEs4HhSaj2QSAG8EXyA+SJ/wQ6OqtEf U+o7zQQCoTMKZiE6Cqxf+a2wEA== X-Google-Smtp-Source: AGHT+IG2J6ZaggkxrHVZijDYQcSetvij/yh8cAaq+gGH4ACdgxHWoPLrad2B09mo2iBnD1kTtZhPIA== X-Received: by 2002:ac2:5e21:0:b0:502:ff3b:766f with SMTP id o1-20020ac25e21000000b00502ff3b766fmr17386917lfg.6.1697124943864; Thu, 12 Oct 2023 08:35:43 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id w32-20020a0565120b2000b005068d27e9a7sm2618008lfu.172.2023.10.12.08.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:35:43 -0700 (PDT) From: Ulf Hansson To: Ulf Hansson , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org Subject: [PATCH 1/5] soc/tegra: pmc: Drop the ->opp_to_performance_state() callback Date: Thu, 12 Oct 2023 17:35:36 +0200 Message-Id: <20231012153536.101403-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231012152108.101270-1-ulf.hansson@linaro.org> References: MIME-Version: 1.0 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=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-tegra@vger.kernel.org Since commit 7c41cdcd3bbe ("OPP: Simplify the over-designed pstate <-> level dance"), there is no longer any need for genpd providers to assign the ->opp_to_performance_state(), hence let's drop it. Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-tegra@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/soc/tegra/pmc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 162f52456f65..f432aa022ace 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -1393,13 +1393,6 @@ tegra_pmc_core_pd_set_performance_state(struct generic_pm_domain *genpd, return 0; } -static unsigned int -tegra_pmc_core_pd_opp_to_performance_state(struct generic_pm_domain *genpd, - struct dev_pm_opp *opp) -{ - return dev_pm_opp_get_level(opp); -} - static int tegra_pmc_core_pd_add(struct tegra_pmc *pmc, struct device_node *np) { struct generic_pm_domain *genpd; @@ -1412,7 +1405,6 @@ static int tegra_pmc_core_pd_add(struct tegra_pmc *pmc, struct device_node *np) genpd->name = "core"; genpd->set_performance_state = tegra_pmc_core_pd_set_performance_state; - genpd->opp_to_performance_state = tegra_pmc_core_pd_opp_to_performance_state; err = devm_pm_opp_set_regulators(pmc->dev, rname); if (err)