Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5223082rdb; Wed, 13 Dec 2023 02:34:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMVH7go4KsoZkZzR6CNQI4XFYpcjkHgNqNrj59c/sL0yCpeMw/zWm/kfD1+vLLyC8iih0g X-Received: by 2002:a05:6808:444b:b0:3ba:54d:415 with SMTP id ep11-20020a056808444b00b003ba054d0415mr5832466oib.50.1702463696424; Wed, 13 Dec 2023 02:34:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702463696; cv=none; d=google.com; s=arc-20160816; b=IWOazpjlbFCWMdaKi5aH8B0++oKKXkDIubp0F4En2BNgNmi3StTRvw7S1QOl0Vgn0h DPWBrQuat+lcMp37AHlHyIXhD6g1x9j3PCG1QL7yroeQ5MKOmiGuNAlkvjsR2SPmzqKk QQmyt/KWLNZHz10UG77MJKUJQJfTcG5pg143ounH4b0J+Ic4VBZzWUJqbrNq/jRlBiqx +CISXxWwBrckIN2+hnTsd1XXxVolTYwwsaT3Qf5tLSX4J30FrqDoK2LPCHk/gYHEsi/z 12TjIGyf8Tm+riuN0VIA1LQzW0X/IcXWrhXDqMfKy8UnnWHYofOGZ4Bbxdex3sV41BuN Vpgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MiCuJGdqU3JpN4sR605F4gpjnmDDPjE+WkJpEGI+07w=; fh=f57+jMZ9kX6qaKEZqWTTuOwFfLckPQBDTQAPHnbLc1I=; b=ZNIc8QdBK1vIJHmwmX1wc5X1HE03H4TnG1YQqCp4Lar9kRc4/VFBOUBPxLnKbmkqpK TD1bbF1+CR3jSuvvecYlziSsr6elZtlR6zofCnVE08oQsKBuzeiFmuYJUv/tBaqrFIfy +r/RHxD7oMhKHWwKvsfEd9uuf655b1219hrPZc4T8Kck/R3kn1GHyB69kmikZtQIZKO4 kxOifZoVLSiBm85ycACyB8kpkRafXryjPL5eSLD0F16JGIevf9gFw1p/nEMx94lsayp2 MZ80aIpODWJjyqMvdVPx88eDUSCeE9HkORHrTM/RhwWRwQU1NDjiHTmXc8TqpSjxicgM kYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Al5DynLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c2-20020aa78c02000000b006ce50ec561esi9310491pfd.363.2023.12.13.02.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:34:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Al5DynLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 54D0080BB526; Wed, 13 Dec 2023 02:34:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233235AbjLMKeP (ORCPT + 99 others); Wed, 13 Dec 2023 05:34:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbjLMKeO (ORCPT ); Wed, 13 Dec 2023 05:34:14 -0500 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DC4AD for ; Wed, 13 Dec 2023 02:34:20 -0800 (PST) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-d9caf5cc948so6435823276.0 for ; Wed, 13 Dec 2023 02:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702463659; x=1703068459; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MiCuJGdqU3JpN4sR605F4gpjnmDDPjE+WkJpEGI+07w=; b=Al5DynLsK6MMCjJWHslSzhx12RKhrjNpAUjEmg7JHVtivmWyGFFvHz+26d4Gg7ZPHq b8zTTDneMkAgxCaYVQAsG6zFctO1tHB3gXkDnOPC+yn/iEXIuSRtsTej9pQtwn8y3DZU TfwBS+XbOPskq8SkH1UhjmhHpZbCAqp6aQaHZTBUn2RhNVFi1RVPAEHal/ZHKuMyl+KD 7TMieGoAXcirKaDllxlkDSoi11gD8S+qJ7Cj/x6RjQSUZ9lpVU5yjU8CMdBYQknzlOjc 7l+Xy+gg1YKyGHAyWvun9eEWAFx0awHSGmWTdQfdoO8x4gS9xpjeGcbTCIAy5ML4EP1h 7G8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702463659; x=1703068459; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MiCuJGdqU3JpN4sR605F4gpjnmDDPjE+WkJpEGI+07w=; b=XLDB7R2P5fNG6XHCRlao5bxhRfsUbMMlsHoj8vp/dScv4l85FicuV61KVAnuQBxgGy HfWaskEIF5CNW6GsOfHg9ZjpdwJkNJGggGF/OGED99NGuXL8s198NG4qWi0aw50aiDs0 bXhzuJP/gCgTgHHP+a+NsKnuj3vEpLGSFp9LFHWtLbq4bGm0qw5kC7j5Q/vWsTajtqua 25/JQt4vXKP5txs9Emd8Vw4v1SS8b1EWfmiZunSkLc5MDyoo+i0yFUTE2DzSm4h5Wn3A yHKj99jY339K8/vXVHdxraRdWU9qAHiVzjGirAOvi/ngtOKMJE0tPQVvVj6O/1jHUYHz 6BHg== X-Gm-Message-State: AOJu0Yz8/tRe1IVJ5LUwEmKE96HjTaYeBrjZZxkZ7KokxYyGEomowzC6 Ro7+Xrk0ddUfvhDsziwUIt98rlCCs4BJRl0MD61xoQ== X-Received: by 2002:a25:bec3:0:b0:db5:49d8:bcd1 with SMTP id k3-20020a25bec3000000b00db549d8bcd1mr4676061ybm.55.1702463659338; Wed, 13 Dec 2023 02:34:19 -0800 (PST) MIME-Version: 1.0 References: <20231127151931.47055-1-ulf.hansson@linaro.org> In-Reply-To: <20231127151931.47055-1-ulf.hansson@linaro.org> From: Ulf Hansson Date: Wed, 13 Dec 2023 11:33:43 +0100 Message-ID: Subject: Re: [PATCH] PM: domains: Drop the unused pm_genpd_opp_to_performance_state() To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Kevin Hilman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:34:53 -0800 (PST) On Mon, 27 Nov 2023 at 16:19, Ulf Hansson wrote: > > Since commit 7c41cdcd3bbe ("OPP: Simplify the over-designed pstate <-> > level dance"), there is no longer any users of the > pm_genpd_opp_to_performance_state() API. Let's therefore drop it and its > corresponding ->opp_to_performance_state() callback, which also no longer > has any users. > > Signed-off-by: Ulf Hansson So, I have applied this for next and by adding your ack. Kind regards Uffe > --- > drivers/base/power/domain.c | 32 -------------------------------- > include/linux/pm_domain.h | 12 ------------ > 2 files changed, 44 deletions(-) > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index da1777e39eaa..cf65b5a9783c 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -3042,38 +3042,6 @@ int of_genpd_parse_idle_states(struct device_node *dn, > } > EXPORT_SYMBOL_GPL(of_genpd_parse_idle_states); > > -/** > - * pm_genpd_opp_to_performance_state - Gets performance state of the genpd from its OPP node. > - * > - * @genpd_dev: Genpd's device for which the performance-state needs to be found. > - * @opp: struct dev_pm_opp of the OPP for which we need to find performance > - * state. > - * > - * Returns performance state encoded in the OPP of the genpd. This calls > - * platform specific genpd->opp_to_performance_state() callback to translate > - * power domain OPP to performance state. > - * > - * Returns performance state on success and 0 on failure. > - */ > -unsigned int pm_genpd_opp_to_performance_state(struct device *genpd_dev, > - struct dev_pm_opp *opp) > -{ > - struct generic_pm_domain *genpd = NULL; > - int state; > - > - genpd = container_of(genpd_dev, struct generic_pm_domain, dev); > - > - if (unlikely(!genpd->opp_to_performance_state)) > - return 0; > - > - genpd_lock(genpd); > - state = genpd->opp_to_performance_state(genpd, opp); > - genpd_unlock(genpd); > - > - return state; > -} > -EXPORT_SYMBOL_GPL(pm_genpd_opp_to_performance_state); > - > static int __init genpd_bus_init(void) > { > return bus_register(&genpd_bus_type); > diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h > index 34663d0d5c55..b97c5e9820f9 100644 > --- a/include/linux/pm_domain.h > +++ b/include/linux/pm_domain.h > @@ -118,7 +118,6 @@ struct genpd_power_state { > }; > > struct genpd_lock_ops; > -struct dev_pm_opp; > struct opp_table; > > struct generic_pm_domain { > @@ -146,8 +145,6 @@ struct generic_pm_domain { > int (*power_on)(struct generic_pm_domain *domain); > struct raw_notifier_head power_notifiers; /* Power on/off notifiers */ > struct opp_table *opp_table; /* OPP table of the genpd */ > - unsigned int (*opp_to_performance_state)(struct generic_pm_domain *genpd, > - struct dev_pm_opp *opp); > int (*set_performance_state)(struct generic_pm_domain *genpd, > unsigned int state); > struct gpd_dev_ops dev_ops; > @@ -348,8 +345,6 @@ int of_genpd_remove_subdomain(struct of_phandle_args *parent_spec, > struct generic_pm_domain *of_genpd_remove_last(struct device_node *np); > int of_genpd_parse_idle_states(struct device_node *dn, > struct genpd_power_state **states, int *n); > -unsigned int pm_genpd_opp_to_performance_state(struct device *genpd_dev, > - struct dev_pm_opp *opp); > > int genpd_dev_pm_attach(struct device *dev); > struct device *genpd_dev_pm_attach_by_id(struct device *dev, > @@ -395,13 +390,6 @@ static inline int of_genpd_parse_idle_states(struct device_node *dn, > return -ENODEV; > } > > -static inline unsigned int > -pm_genpd_opp_to_performance_state(struct device *genpd_dev, > - struct dev_pm_opp *opp) > -{ > - return 0; > -} > - > static inline int genpd_dev_pm_attach(struct device *dev) > { > return 0; > -- > 2.34.1 >