Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2405917rdg; Mon, 16 Oct 2023 03:38:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+Cvo4NQpsMZO1j1mqWZpG4930OqMRrf1S7os6QE9Kv4xoADdfRmVWy3b++prFBp++1ZSq X-Received: by 2002:a17:90b:257:b0:27d:2e39:25da with SMTP id fz23-20020a17090b025700b0027d2e3925damr7096367pjb.39.1697452707884; Mon, 16 Oct 2023 03:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697452707; cv=none; d=google.com; s=arc-20160816; b=o+6n3hspTqSgCOKY4ThfqhisZ8vDYEdmcZr39G1/mxIy297/TC64Y65Sku946MBJ5P OS8D9Rh6+4PvE5k0qv0G+Nd5KBiCNOwg/oPPpUwP6Nm7hmfMyqwcMauttrwNobx2xlhV XijcviOjo/82q55/9jgNMBg3qS7U/ZlQRVEXgJ3jwRDWXj0h0JPfnqWQ0ab+7SOw40kn iL1/jiIa1cY/hkxMqDiSJH5A8ErPMh6ZFKWsiuYTvWtmJIvoYXnoI6CX00nM3Fqz8DL6 CCijv9HlmF0V6BRbDqR7PsXk0UFUm8+qjZ8AkMXoZSSlGt7xqICoOd+7JLAgUWqLtNH8 BIHg== 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=fAgUR3xRL7gFj/DHyTLw31gfxB/iFGUHd6OvglMhuyo=; fh=UWObunA8VEaE2dSI9A6sq+/QVh8uttAuN9sY6U68WyY=; b=eg5/rExMa1Q6u+7+NzlxoEEllWHdk1bMJXQP9mbVzPD1g1bmWm+dc5gk7eREFNUWhY xskaxbeoVLNcXphbl6Mz0VofdbOHNACAdUL/+BYOAwhOHMb0a6h6r7k2EW427jNoMYJi Sukcg0WQi1hzb8ZcC5nq/tyLDM8dtDWFq5uuWpqZg5rx3fz9MsbCMGUFLLQs390Siqdj FBdStfAV2zNPDkuQGTHhr7UdXGDO3uA8HBeegDi6w6IuL6m9USEF39613rT8Hk3zS/P2 9dQOmkZFY7zxPvjYpYWiL30Rt2w8CT1ERinPYdYnqpQk1WE62LSMxCiZdQV7rtDncEcW 9TtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cerybdnn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i2-20020a17090adc0200b0026d40e6a819si5801476pjv.157.2023.10.16.03.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cerybdnn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id DC8FE804C1AF; Mon, 16 Oct 2023 03:38:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232206AbjJPKiT (ORCPT + 99 others); Mon, 16 Oct 2023 06:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJPKiS (ORCPT ); Mon, 16 Oct 2023 06:38:18 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD07DAC for ; Mon, 16 Oct 2023 03:38:16 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5815818406dso2609307eaf.2 for ; Mon, 16 Oct 2023 03:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697452696; x=1698057496; 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=fAgUR3xRL7gFj/DHyTLw31gfxB/iFGUHd6OvglMhuyo=; b=cerybdnnTWUHBq+WT6zaGRt2p81hMN1oG4MnzF8eCgDFxGxW3iS3tu5RasPB596euG eTTnECuQmeX1+bsVLQN1i435q2GulNqa9k0BgvJmwt2ksrg4W5mO6lK8oPwC1UpdG4Gg 5CRwjJHyA/FjLdQepwLa/kjDrX/WoD8RS6eHjLuSltopLqEso2EPuibPOFh7Kl/1Z3pc Xtb/h5pfEqFsX1GQ/9LfQ9U3GDpry5Y5CgCm/SY3cn+c1YCVDbHIMFTIofeYh5F3c/LQ INp8QxVFg1vlmTW33jsRIsLC7Z81nnxps3LJ9y5cq2fCCFBLjYXPFYqxH2NpGYXE8grX DNig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697452696; x=1698057496; 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=fAgUR3xRL7gFj/DHyTLw31gfxB/iFGUHd6OvglMhuyo=; b=lLXTrdEjO32ppAnoRqVJyyjlA+atVj6WVX0AuAEZLZQKKXeW4bV1/HwVmph3F8lJpj bpmtudD0tQnE7R9bLhegDDyImohr4GCWL0uESm9g7vZ0oV+p4jvwFvR67s0MjMxPZ9ir OGNVfaxXNYArpVB7onmCIrpuJNh30N9DOtk+fxOPmoUfZmcG4iv1fwkiZaYY5DFj3xa1 gPQ1iCDehCo04W4gxxR7XFJD7v2kbv11B+IE6YziEp/OV9/2kcQRYm5AoUtj/B+XEJlF v9x9z6hJr6COi/bIzBvBYorfoEE+bIV+sn0nfQEdPyxf909HnWEovIrklleqNK3J/6mP /yRQ== X-Gm-Message-State: AOJu0YxePYEKKVJkJlEvg6NBEZGgCojhcd8epV61eSjNfEci9BqmOmTh fa37bt7uEV7W+Kyh3T8MAw0kyzVm8tK+Zb0vUt0= X-Received: by 2002:a05:6358:9485:b0:135:46d9:12f7 with SMTP id i5-20020a056358948500b0013546d912f7mr33192103rwb.26.1697452695978; Mon, 16 Oct 2023 03:38:15 -0700 (PDT) Received: from localhost ([122.172.80.14]) by smtp.gmail.com with ESMTPSA id w21-20020a637b15000000b005ab281d0777sm5493770pgc.20.2023.10.16.03.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:38:15 -0700 (PDT) Date: Mon, 16 Oct 2023 16:08:13 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] OPP: Reorder code in _opp_set_required_opps_genpd() Message-ID: <20231016103813.mz26xhfzfca7c7kf@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 03:38:26 -0700 (PDT) On 16-10-23, 12:11, Ulf Hansson wrote: > Why always return 0 and not the error code anymore? Oops, fixed with: diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 3516e79cf743..42ca52fbe210 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -1076,7 +1076,7 @@ static int _opp_set_required_opps_genpd(struct device *dev, { struct device **genpd_virt_devs = opp_table->genpd_virt_devs ? opp_table->genpd_virt_devs : &dev; - int index, target, delta, ret; + int index, target, delta, ret = 0; /* Scaling up? Set required OPPs in normal order, else reverse */ if (!scaling_down) { @@ -1105,7 +1105,7 @@ static int _opp_set_required_opps_genpd(struct device *dev, mutex_unlock(&opp_table->genpd_virt_dev_lock); - return 0; + return ret; } /* This is only called for PM domain for now */ -- viresh