From patchwork Thu Oct 12 15:35:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13419394 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4AF01CDB46E for ; Thu, 12 Oct 2023 15:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AxcWc6SLSuoNkYzOFkz4vxx6LmMAlnD82iMa5NqxBDY=; b=fOboTIyZaRoCK9 62JNQrVfI2sfLlYv8N2SDin63TgPTUhgG77MIVgpzu9oiEEsU8QEL+NE5unL3/V+yYTM/p3QbEOSB Yq9PcQ3Vz3syfdWdq4BdqwRhZJdUXUzLor2h8F8b91U8aq1HOuStFRSUZCalulmOVOwXlYMvtVF6o qB0adLyQE8DuAtCVKKO6wqQcrzfbUbWuK+6v1NqDwZlTqpE3R0d43q4ug9MSabtk9ImUoGjuw6Vux SMD3iskh71+JF6B5iVt1XccfllZOcaEYl9HJsh58d8UHe5HpZY8YiTGoOdhYhdNgr71jD2cIy+fjR pYqrY7X8NG2yVCJ7wOrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqxjO-001J88-2A; Thu, 12 Oct 2023 15:36:10 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqxjM-001J70-0m for linux-arm-kernel@lists.infradead.org; Thu, 12 Oct 2023 15:36:09 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bff776fe0bso14270771fa.0 for ; Thu, 12 Oct 2023 08:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697124965; x=1697729765; darn=lists.infradead.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=6yEra9Cx7XV54gD7YoJL8PZvFj4AkKcsevplc+yUjjs=; b=SP6HyqQ+2Q0cptlbqXIM2xViKyDfPxCCD83PWsl2R5LXH8FgLvgtRbD09sUWHfV2Yy FUpvcQXY/54NQxWwTLSVjlTA/wDBtDd4GffA1p3oTjl4A+Q7OV+WFts7wCA86UROyhm2 vnjBnQ5CnEIDa8MWt02RCoXVIi/KGwMzzyVsUGs9DZoyN5lM4XGB3+icLgcT9OabT5bk 13C+liwGEjczDBXq7c7AW+mPpqoeSpZOuLnXjITgxQFsLFa7zBUeIrgZvuWAajRFAbh+ scGY8IgT5BwaTNCf7f4Za5V0025RY1Kr8iF1cmxiU08u/hseCp/sqNLL7VGJ/2EH9mEz qaag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697124965; x=1697729765; 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=6yEra9Cx7XV54gD7YoJL8PZvFj4AkKcsevplc+yUjjs=; b=RB2DR6bGRQnESr3veOjGgDqkIUOZptltbhGoZdXqte6HfSTJQk3NtreOgkYDoy7BfO 2sMtrrK8m7ht3KmQVxdEKgoj30RUAMg3Yy5fy+L6KYJp1yPJj8X75l0ZaEG4zNrA41Y8 c8w502SIpVbcbGwMmV7DLjS1HThSJaEoLhE7OyJ3Lp+nTw7HactUsn7DE2BctNdNtVTb AthBMOcTeHpUr86J9C739HlWhp2RmsCJ1iQD7oCwW4EP+15JvR5It48lfNy0YUF5aLFW iClg2vGjURmK2k5oJZnl1ihcmUBhziN641tj0XwiNmbbxSGoSQnYSVcKCpJSSbAqHe5g PRYQ== X-Gm-Message-State: AOJu0YxQBnuUwjPLjzE7uvcpUmHjfg5SwwacdHiRO3Ee3jxqgB5fh2PQ TW6L73O8SCuN+10qNih3meDlxQ== X-Google-Smtp-Source: AGHT+IFP2ID5YRRW16YE9Knvq4A85dNzlJuJl5qRjUGexoKPVjohIWJG2IIteA2GoSjoLy+QpiukuA== X-Received: by 2002:a05:6512:1248:b0:4fe:711:2931 with SMTP id fb8-20020a056512124800b004fe07112931mr26256177lfb.22.1697124962504; Thu, 12 Oct 2023 08:36:02 -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 b17-20020ac25631000000b0050482b29ac8sm2853085lff.31.2023.10.12.08.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:36:01 -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, Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org Subject: [PATCH 3/5] pmdomain: qcom: rpmpd: Drop the ->opp_to_performance_state() callback Date: Thu, 12 Oct 2023 17:35:58 +0200 Message-Id: <20231012153558.101445-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231012_083608_284244_AFFCC216 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: Bjorn Andersson Cc: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/pmdomain/qcom/rpmpd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/pmdomain/qcom/rpmpd.c b/drivers/pmdomain/qcom/rpmpd.c index 3135dd1dafe0..524631dcab4b 100644 --- a/drivers/pmdomain/qcom/rpmpd.c +++ b/drivers/pmdomain/qcom/rpmpd.c @@ -908,12 +908,6 @@ static int rpmpd_set_performance(struct generic_pm_domain *domain, return ret; } -static unsigned int rpmpd_get_performance(struct generic_pm_domain *genpd, - struct dev_pm_opp *opp) -{ - return dev_pm_opp_get_level(opp); -} - static int rpmpd_probe(struct platform_device *pdev) { int i; @@ -959,7 +953,6 @@ static int rpmpd_probe(struct platform_device *pdev) rpmpds[i]->pd.power_off = rpmpd_power_off; rpmpds[i]->pd.power_on = rpmpd_power_on; rpmpds[i]->pd.set_performance_state = rpmpd_set_performance; - rpmpds[i]->pd.opp_to_performance_state = rpmpd_get_performance; pm_genpd_init(&rpmpds[i]->pd, NULL, true); data->domains[i] = &rpmpds[i]->pd;