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: 13419399 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 71D19CDB46E for ; Thu, 12 Oct 2023 15:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379473AbjJLPgL (ORCPT ); Thu, 12 Oct 2023 11:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379454AbjJLPgJ (ORCPT ); Thu, 12 Oct 2023 11:36:09 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9123CE1 for ; Thu, 12 Oct 2023 08:36:07 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c186ea81c7so14142141fa.1 for ; Thu, 12 Oct 2023 08:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697124965; x=1697729765; 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=6yEra9Cx7XV54gD7YoJL8PZvFj4AkKcsevplc+yUjjs=; b=iVpU/7e/W+l21djRMT/avFeoxq6Vv+gnRBCsp4VRRi8IdkDLiPqUPRlGsDTnlyrqXC CTL8d/sD88NYw60ZUYKtp9uJpYVeJ1QkzxkIgfkFWH9HwvkbnBCMQZ0Wc9hscBafbp+4 MJW2ksZLnw2sCxkVIma8voJvot/s4/ExRqFCUn2IK5t59/XhsbsaaYukxGxmEHZsYB5B uHMAgnbuJGVm3MHSRDZvpcjPSS0Bl3obPX4Qm+3674D+mOY9tDiJXCTR6WmoBMcwxgbJ WjfVQ3LCY4Eks9H/BW7tXkSidaWwzVsW5j7mIymEqzQyFmL+/63a7g2N5grse8/w3q7j JNJA== 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=b8h3Ay1JbMRldQ4nzxu5d7v62OIGJcCDiymz3gRIqt8kZ810AR9CoZ055Zca1uIlRp L4OqCFCHE+X3TD9S4T/2GSzlOIFsdb9v6Ow6PiY8zsEXn/qVK85gbHwQ1DvbbF0/bK2G ChyubxrjnV/P9VZn+cFzOmzk1GF6dOD1yY6QOQFaayQfv20i3RZ6RfsP/LuBhUgba0KA V80kavFQ09XdW/k+0rUDwu8utfVehKUS6s1guuoDkSaSnER+ru8DoyQdXcXAbU0R1VMG a+aKMazd+ZVDp3blOYxhCGSy8GRjS+Q2LALXPyJZNjj0WHhtGBIPfQ65+SsJWTp3+kqs z0eA== X-Gm-Message-State: AOJu0YxpiMBIPWvkRAk7PCNENpWjZYl79kbEzzQpIAGF/uEaNCQr0njT nTKHRj1WYD+8cH1J/4Yo9Tb+wA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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: 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;