Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp228521rwd; Wed, 7 Jun 2023 23:02:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OwaFHuL6s0Ll5DAb7B+ApCtDabKUyy+He3OjiedJxU3JJcexGrg/7lu5XxIuRVJuiSwH+ X-Received: by 2002:a92:d4cb:0:b0:338:c685:83d1 with SMTP id o11-20020a92d4cb000000b00338c68583d1mr10039630ilm.10.1686204146148; Wed, 07 Jun 2023 23:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686204146; cv=none; d=google.com; s=arc-20160816; b=L2qluaWYDnv2agXjcVaetYDEt16qmdHhD47OdWOJZtW1M5aY/llNTcn4sh0uN81QmT mupM09eFF2+JtfgqJch8HTBXy3D4FPu5/FL/cQ5gUq7CVB9XiaP6QT0SIN7RzXsPO3HB ONVJZuLK66sy+17dICA3Q/DjnyaAB6p8Tm+UZbZVxAR7WpxsYZ1QgK3stH3bWoWTPa6O 0wk2nl67AQUF50Hpoi+f15bZQX1TJdDl8kDStHPUSdKbuhDtFCSwsjyH3k7fdFn2+GtE TXe2NMrSLZOi3pBUgg6fez1k7cEx0FIsDGXV49L1J36Vn4YCw3T/FZnHimeZ28BAO4E/ e5zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hi3h3STrD8nAW7/sg6jcuBzQ5Kz2zlpfMrjH0c93LuE=; b=aw1UeB1kutltOk7zFoqTTIblwAaA6Tq3d3/4E7Tft+B35EUhuikbTVkatdm1SV7suS tlQcNX6lGZyZgUgnv6it0ZwBJTWfpug6Vv61+W4Mdx5o+2PYdZwsMcwYcnjMke9jhHWO ZL6Gn1dwtlraPnqr7/iw63BB2R6kKWf76eKC5wpDmx/plPMG1oOnQ8alGYwzZHFVXyp4 E3lTrwZuOt1Wy81YF53kJv4rZUjbh1WTD55c6aNMoQL2wyXFIB78Nf9qVAAKYY9pT0B+ cH1yg61S53e+rRv/bcTAh4Cp2IXY+Av1CUZaNhWgm2lYUrxO/wC/SVL5Mo/boEVa7d0R lCbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t3Csx9jD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a63d550000000b005348885119asi477844pgi.523.2023.06.07.23.02.11; Wed, 07 Jun 2023 23:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t3Csx9jD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233779AbjFHFe7 (ORCPT + 99 others); Thu, 8 Jun 2023 01:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234146AbjFHFeu (ORCPT ); Thu, 8 Jun 2023 01:34:50 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51D34E4D for ; Wed, 7 Jun 2023 22:34:49 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b011cffe7fso472175ad.1 for ; Wed, 07 Jun 2023 22:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686202489; x=1688794489; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Hi3h3STrD8nAW7/sg6jcuBzQ5Kz2zlpfMrjH0c93LuE=; b=t3Csx9jDOUGENAtJPJP0Bujqdp02H1al9yUYvJhgfDb5TYN7yPNiQ53mifoKoBQSW5 XRL+1BDN4BBdaz+F7j6Aa1TZIrEPMH2IfCi3aAXWrJ81JqsUDN3lTE3vYclFSkSXXjyh rT4rlUEHxODl6nFE7lQ9QRPdETQq+FfWZbXW9Ef8hBjDhSzU5Q+hsZQ3y3mZw5WdyiEH EuP0B60BiEtYEJB8UbFkBEWBk9qNx7XLg6SHllGl3V8yyCA57+kRlalVsRMjU0Px0CN+ u2zfS0lftayqESTQ4rUk9VUlYnB7df1oDDteQQ+siDAqVIQ9c6TBIS+sXcn5Yzi2P3xV +iLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686202489; x=1688794489; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Hi3h3STrD8nAW7/sg6jcuBzQ5Kz2zlpfMrjH0c93LuE=; b=Cr3YkwZfY04cjd6oaayi5jawRdqRFjTwGjhpSOT1j6U4/eijIIFm8IIxbjNosaMLt+ 73bFArkBfLZ+YJFGauHosbI1NmpSWDtfgtXZArAc8wTDgtVwECxyr7k9uKX16HaDIiXq fz4+BzR5DbGA4VElRnO7hWhP7Bej1mOStOocM+WLqUfvoc1uqNB3PZZqVGmniXkZLlO0 qjt/yHTcyWEEZrddCbEu29N74uaRrzUzvuj2q0v2ngO1FU9IgAliT0xQg3jwC28VtYi3 vB2EgRsoqNmfoaWzldqPZcmaIolidR/t1K0R6ITgZB+SkTQ1CWtU+ndBKEIxyzFrJGkO El4A== X-Gm-Message-State: AC+VfDyvlOM3uf0gJgk12auRuIZqUDat0z9E8RPMvxfSlgdHDsEgE/su GNKnI/WlqFJdJ4DZwanHmXJLlg== X-Received: by 2002:a17:903:493:b0:1ae:55c8:6b60 with SMTP id jj19-20020a170903049300b001ae55c86b60mr3174132plb.1.1686202488870; Wed, 07 Jun 2023 22:34:48 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id k1-20020a170902694100b00199203a4fa3sm446622plt.203.2023.06.07.22.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 22:34:48 -0700 (PDT) Date: Thu, 8 Jun 2023 11:04:46 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Sudeep Holla , Cristian Marussi , Viresh Kumar , Nishanth Menon , Stephen Boyd , Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/16] OPP: Extend dev_pm_opp_data with OPP provider support Message-ID: <20230608053446.ngoxh7zo7drnr32z@vireshk-i7> References: <20230607124628.157465-1-ulf.hansson@linaro.org> <20230607124628.157465-14-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230607124628.157465-14-ulf.hansson@linaro.org> 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,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-06-23, 14:46, Ulf Hansson wrote: > diff --git a/drivers/opp/core.c b/drivers/opp/core.c > index 79b4b44ced3e..81a3418e2eaf 100644 > --- a/drivers/opp/core.c > +++ b/drivers/opp/core.c > @@ -1112,6 +1112,15 @@ static int _set_opp(struct device *dev, struct opp_table *opp_table, > return ret; > } > > + if (opp->provider == DEV_PM_OPP_TYPE_GENPD) { > + ret = dev_pm_genpd_set_performance_state(dev, opp->level); > + if (ret) { > + dev_err(dev, "Failed to set performance level: %d\n", > + ret); > + return ret; > + } > + } > + I don't like this :) We already have these calls in place from within _set_required_opps(), and we should try to get this done in a way that those calls themselves get the performance state configured. -- viresh