Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8268539rwi; Tue, 25 Oct 2022 04:48:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CkNTMucTlKpi4LQ6Eq4glT7uUaP4eks1itbeaOO9fjTIMB8ns1iEGRFKbQQQ9ulkcPZCG X-Received: by 2002:a17:902:c405:b0:181:2355:68ea with SMTP id k5-20020a170902c40500b00181235568eamr38241768plk.70.1666698482358; Tue, 25 Oct 2022 04:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666698482; cv=none; d=google.com; s=arc-20160816; b=MLkrVGRI/EkcSoPTvDJSAqDpKwNnqh6VoQhkSnxdZrNdYhnVXP3EM4G2ZSWbtiIRJR E4OSSmwgiyw20jd9iZ5SSkKV97bqBTw43SOhEusmFmf93d4dESkJeq6JR9/6M6DRCTfo jx1G1pzrRfo0qVZjhL/5cOuUOQgZV4dyKGaBQc2K0LQcsCAh73Na31oLhA+0cg8ekMfj sv4BMdPFy1ESzXWGkI2Mh3v3rcDyItKkSWXPtfzY4uXHcs2t1Tn9Q/lN7KOReqFc7M2C joSXxTabHOdI/sZ2sv0K0TxbiAOcMuj1yUqqv2YHC4JEk10m+YaD393DexmC5vRsJX+D u4pw== 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; bh=IT7E+Bqrdj6t+R/ZiTxgYnoQPr89q07B4oaITTWTPoY=; b=ZysjSw1kvsh/ILNZbAC0weLcqG3RdAHiB2x+cQnC2OYHr1hLH2ZtjnAJTJTJUXDxjn zcydue1eFBzRQWHyUB2d5boaqZ/0Aml1Ax6j3mVs7fLoHvmHFHbefBt5xvPT23JpaDSr vHb+9PmY2FOAg/Z7ikppg4XGOx9j+sPrkxf7BHYl2hUjo0T7ajYncBZnP7v28aNeJMBv MNJu3g/QoFEPldWQtd6f6ReLg/VYT+Y1azvHO6neNXH/hWz+lu6QJsL4w1el5S6nArPd r+Fb3tNbHCK2gpB1umlH/t7KMv3lV/8fYRSswzFXaaDmvy26SfaD1Sv9KgJhEuxtvPPg diUg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a63d50a000000b00452baa58e5dsi2667338pgg.275.2022.10.25.04.47.49; Tue, 25 Oct 2022 04:48:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbiJYLnQ (ORCPT + 99 others); Tue, 25 Oct 2022 07:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbiJYLnN (ORCPT ); Tue, 25 Oct 2022 07:43:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 98E5A172B63; Tue, 25 Oct 2022 04:43:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A5A1ED6E; Tue, 25 Oct 2022 04:43:18 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 502013F7B4; Tue, 25 Oct 2022 04:43:11 -0700 (PDT) Date: Tue, 25 Oct 2022 12:43:08 +0100 From: Sudeep Holla To: Ulf Hansson Cc: "Rafael J . Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, Lorenzo Pieralisi , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cpuidle: dt: Return the correct numbers of parsed idle states Message-ID: <20221025114308.4kevtiz5heoekgz3@bogus> References: <20221021151013.148457-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021151013.148457-1-ulf.hansson@linaro.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Fri, Oct 21, 2022 at 05:10:12PM +0200, Ulf Hansson wrote: > While we correctly skips to initialize an idle state from a disabled idle > state node in DT, the returned value from dt_init_idle_driver() don't get > adjusted accordingly. Instead the number of found idle state nodes are > returned, while the callers are expecting the number of successfully > initialized idle states from DT. > > This leads to cpuidle drivers unnecessarily continues to initialize their > idle state specific data. Moreover, in the case when all idle states have > been disabled in DT, we would end up registering a cpuidle driver, rather > than relying on the default arch specific idle call. > Makes sense. Reviewed-by: Sudeep Holla -- Regards, Sudeep