Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2383399rdb; Tue, 3 Oct 2023 22:04:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmFFdUmzMjzTRQKpeW1nrz0qhX9gv/2IQHrjlH9mwVeieA9U2UMmHXi+mNKpe7KCDyldCY X-Received: by 2002:a05:620a:2007:b0:76c:b341:15b6 with SMTP id c7-20020a05620a200700b0076cb34115b6mr1317815qka.40.1696395887222; Tue, 03 Oct 2023 22:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696395887; cv=none; d=google.com; s=arc-20160816; b=0uAsH1Z0kG6ZzpOUfw1MKlLXjD74Un7LUQfwXzg8hkzGK0JmfWwXVXM2azbp89w740 niFlz34X1T7+e38M+WpjcRPKMssYi+9CDX+xE40FzvnG+FD3TkyFmuqPBwvx9kg/r/vn yGvPIB0Ar7ollWQ51aQFRd/wpgxVJWkPCVDGT4uA445avG3OPtpuqldbmL1aZ9uD793p DxTpD0rTrqv3YF3H3daKhj/m6/6HXcPZJoN/MLWjBwiH4omvZA//UWntUppOu/AZOqgi 9ECwqyfnPVl7q9Q2ztGpHqhcEnZSF1CKHOg3P0GfTRqDlUyBqlsBV5ni9g7RPSbFcVvD ez5w== 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=X3bM6BmB8wAop4fny1ZIpU594pRuUpRgSdB0G5Toy4g=; fh=so4n3fFovZjzfWbzifmLtJ4OU6JKcTtmthSKAvZkt3s=; b=V0F+y7+pkjZWTBb4yf5yCz1sHMU5y2GVPRMMNWK9ig7lS041NDt2jRVZdWhBhLEUTB WVlsuIutBImCt/Qy98+iib0OBu69tgfkA8p2fc1g2T8oeP26KAouZrn/D46B6sVNoT1B 2MFr8pLy0KAWwFoFxIXWhFyUgS3iH6dWmWwziCVE80vKvP8xdFu7yieNGXnA0CanDJAT D056522x1MZPqlXCQEGlSVGBj8k9udtgUn1yazyUeL7SsZcr8cyZue/pQO3Ak9fYtqwC Cph6ErfzckR3rc7GyI6NTBUOmEfORpSzYj2IQLzjyI06qu5Q7iweS7lAOiGGMSuDUhut 82+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q9wtgqhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b192-20020a6334c9000000b00573f6ee58fasi2924041pga.376.2023.10.03.22.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 22:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q9wtgqhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 2849480617C2; Tue, 3 Oct 2023 22:04:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241314AbjJDFEi (ORCPT + 99 others); Wed, 4 Oct 2023 01:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbjJDFEg (ORCPT ); Wed, 4 Oct 2023 01:04:36 -0400 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E189A9 for ; Tue, 3 Oct 2023 22:04:33 -0700 (PDT) Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-57bc2c2f13dso958612eaf.2 for ; Tue, 03 Oct 2023 22:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696395872; x=1697000672; darn=vger.kernel.org; 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=X3bM6BmB8wAop4fny1ZIpU594pRuUpRgSdB0G5Toy4g=; b=q9wtgqhTh18IJ5CuiCtKf6oGiVQAArD9A33ybLLlpgdG3vz1BnYL53VlFTKPztU4RM jgmJrDnMylOWqerQSIHl3UuaJMdlFk6wAM0y8AVFRyCaxVkzygANqfLB4dkdf6BgNo9G AUJElCyuBrb+tuNgD+C0VfapVZ/W/5Ivr89KMuPPiiT5yfD7xw9wfbVH1dZYEoTs/bDZ mld8VQF/oRJxDMpBLDvFK5SFzlO/Kn8Hnl8t2nYGgxzoKhMj/6v+Kp3i0uvRD7DmQOch 8crVNNQ4iUYnRXsHPC0meGYJDKH+VnmwNUHZsAV4yMvPFhlaxbfc3XE8WYVNEd/1vGal Ztog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696395872; x=1697000672; 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=X3bM6BmB8wAop4fny1ZIpU594pRuUpRgSdB0G5Toy4g=; b=A42F9Nv+cERVOCGl3J2CZSFno9gyrZVFm/WBBBUHz56JDIAp2QkyorHZ5CTFlubC+f iHhK1bo4AdOCVfLikggclJMyBb9E3y4dKDAZAczOLhmhU/pp+65+2YjPxAhyBpa7ErS0 7jp3eS315id3/fY1/+XK1nKBwDs8ISMGMRBWhNj3+wYqQFvGTtro55PItzwHVfPmE1oo eNUTYIu3o0xWs6M1QiuxGZXl9pjsQEjDjm3M3aXAC0q+YGQN62IseA9Da84L8S35+QqC ZP9pWxcp4qadsB8h5JpZTAW0s651q9LIOjDXgGY4DmKGaFXoYLFOLDcfjbgC1Lz1K4Ec c+Qw== X-Gm-Message-State: AOJu0YwOQCqfQvpxSlJ3bCuobwyf0BJB8af8JLvRHDG6WVoa3/7gBCIj e+46rGb9VRkmYK/RXY79Agt3mw== X-Received: by 2002:a05:6358:3408:b0:14f:852b:4362 with SMTP id h8-20020a056358340800b0014f852b4362mr1453217rwd.19.1696395872289; Tue, 03 Oct 2023 22:04:32 -0700 (PDT) Received: from localhost ([122.172.81.92]) by smtp.gmail.com with ESMTPSA id b18-20020a637152000000b005789cbd2cacsm2327910pgn.20.2023.10.03.22.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 22:04:31 -0700 (PDT) Date: Wed, 4 Oct 2023 10:34:27 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Sudeep Holla , Cristian Marussi , Viresh Kumar , "Rafael J . Wysocki" , 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 6/9] OPP: Extend support for the opp-level beyond required-opps Message-ID: <20231004050427.e3aalotrtpvld6rk@vireshk-i7> References: <20230925131715.138411-1-ulf.hansson@linaro.org> <20230925131715.138411-7-ulf.hansson@linaro.org> <20231003082322.cmok766jxzftsgrg@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 22:04:46 -0700 (PDT) On 03-10-23, 14:36, Ulf Hansson wrote: > Can you please explain further on this. Rafael has acked those > patches, so it should be perfectly fine for you to pick them via your > tree too. There is no need to defer them. Ahh, then it is fine. > > I will then push out a branch and you can > > rebase your patches on top of it ? And then probably Sudeep or someone else can > > apply everything ? > > Or are you suggesting to just take one of the patches from my series, > and then I will re-base everything on top? > > Just trying to understand the way forward. :-) Applied patches 1-6/9 and the fixed routine looks like this now: +static int _set_opp_level(struct device *dev, struct opp_table *opp_table, + struct dev_pm_opp *opp) +{ + unsigned int level = 0; + int ret = 0; + + if (opp) { + if (!opp->level) + return 0; + + level = opp->level; + } + + /* Request a new performance state through the device's PM domain. */ + ret = dev_pm_domain_set_performance_state(dev, level); + if (ret) + dev_err(dev, "Failed to set performance state %u (%d)\n", level, + ret); + + return ret; +} Does it look okay now ? -- viresh