From patchwork Thu Oct 12 15:36:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 732586 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 3EA74CDB46E for ; Thu, 12 Oct 2023 15:36:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235748AbjJLPgT (ORCPT ); Thu, 12 Oct 2023 11:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379459AbjJLPgP (ORCPT ); Thu, 12 Oct 2023 11:36:15 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB50DD3 for ; Thu, 12 Oct 2023 08:36:12 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50567477b29so1540683e87.3 for ; Thu, 12 Oct 2023 08:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697124971; x=1697729771; 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=3oU0lIYVg56CkTRqLzmL92GAs1KwRLVAtgYT5VSBI6s=; b=zRq+5vasQ7te5GzpHIWog653v1vjbaHiROFnHhYGfGaZiNeadx0Po6epWCoHuC48Ge P+KY9OYkM3kSlL/lytyuFfnCOOaXL24LNiXYYjuFNf7QCc8ZMPMFGXkZQyrIK22lupLY JAs2H5pG9jCpnf+b3As9MTDnYgSLHj4xf0yLEhmYTXzKp+ygaqFAPW2sdrdpvBaMoe+L IMjtMYo1FqFe2tqXk4RIjirIagekM5x+U3fKEKLf36gMbEWJs1Vi0hCCTYK6g9MRhv4u MpVRixUGBoZvIW+sttVhKvdQLl3lEVMgF193+cPIHZ7n2KH7eXBCaGVzQHw6VLjLHvwi 0sNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697124971; x=1697729771; 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=3oU0lIYVg56CkTRqLzmL92GAs1KwRLVAtgYT5VSBI6s=; b=msh4eWFomUDwwiraOcizpvsSCN9arvvHpF8Jv24WCu8GvfoeDK+ZDZXDewlouFWi/1 lRVhAUWDq0B440DcENl07ZQOmcjcH9Y4kJTdnYBo6QY7R1ozU7XATstW4P5xsF4JpAUm 06EJtLIdJUIlI6DvaMdbCZt1u9/3YJarCuvBIXUR5N3KCbQK7mydGyB07IRgxJd5IE5/ 43/KfLELy5muSm8afvw7++7qd5kSeZCbc90yrskCYjF5MHrK9vLBbDIDwFMXoQGKWKz5 PoTo2I5k3SBzxG0L6GQL4orK8QJ1iJi4BN4OUNPlE1Dspcz8udDjqFlQylsKvv38ytB8 8omQ== X-Gm-Message-State: AOJu0YyC2QG365KMrbE2ceLvUb0ALsHiva5O3l8yfAsL9MQy5xw/KFgq BAYDBDabM7gtvthnQXCj+N8xCg== X-Google-Smtp-Source: AGHT+IEK0E4FwtYKJpxrmPxWlWktvc53EX6B16eXxTE+hpXej8tzWOLjrlYIDiwRft4e2AyEKZsP+w== X-Received: by 2002:ac2:44af:0:b0:505:7ac4:239 with SMTP id c15-20020ac244af000000b005057ac40239mr17911564lfm.1.1697124970871; Thu, 12 Oct 2023 08:36:10 -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 v21-20020ac25935000000b00505723e56acsm2850999lfi.273.2023.10.12.08.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:36:10 -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 4/5] pmdomain: qcom: rpmhpd: Drop the ->opp_to_performance_state() callback Date: Thu, 12 Oct 2023 17:36:07 +0200 Message-Id: <20231012153607.101465-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-arm-msm@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/rpmhpd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c index ec2582f7225c..a631fe1f9a06 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -743,12 +743,6 @@ static int rpmhpd_set_performance_state(struct generic_pm_domain *domain, return ret; } -static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd, - struct dev_pm_opp *opp) -{ - return dev_pm_opp_get_level(opp); -} - static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) { int i; @@ -838,7 +832,6 @@ static int rpmhpd_probe(struct platform_device *pdev) rpmhpds[i]->pd.power_off = rpmhpd_power_off; rpmhpds[i]->pd.power_on = rpmhpd_power_on; rpmhpds[i]->pd.set_performance_state = rpmhpd_set_performance_state; - rpmhpds[i]->pd.opp_to_performance_state = rpmhpd_get_performance_state; pm_genpd_init(&rpmhpds[i]->pd, NULL, true); data->domains[i] = &rpmhpds[i]->pd;