Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8269060rwd; Tue, 20 Jun 2023 12:37:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45MDD1jzNkJIokfO3tF1tfu1ca3KeEGGNAYmiGSOI23iVNfDRZe4YR24XlEZuGxl5WILQf X-Received: by 2002:a05:6358:c6a4:b0:12c:79ba:9af7 with SMTP id fe36-20020a056358c6a400b0012c79ba9af7mr6540397rwb.15.1687289824511; Tue, 20 Jun 2023 12:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687289824; cv=none; d=google.com; s=arc-20160816; b=Pd44rscBNq4i4ox09+XV+OZo4+RYEI8ndQgjeX4FA6ZB5pKquJTNskmaq5FZQ67d/c y43v6xbXNnOAK52pl0bAc5JdSqOCZVlUtP2r0q4CtjExvfc0sKt/XSYTO50TNAN68nRB M9uM5LfcWU4kyj1C9SBzJGvs3RAMP08vIWvGr7TXEcflLgnttnM0hf0BIRsR6kxN0H2k GB2yeUSn/EAWmd/xx+lA4moZnqf2n0pcyuS2f7aQEWasXBfKS8hqRNUEVO7LXelnFUIf 6DN9WdqnikEMBoAbxkyovJBo4PYprx37Qf7IdYMEvh0U6/iFBMu/Hqi3lCH9iNUtFnnf mk/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=qjmVe16Z88mp0HPuccB5YwxW1CLBg/z3ac10InJAyRU=; b=hW6i8HNs7BBc6YeWVJYwEbW/uRNaMI0RSXed3NZKH+PFKZqsCGmZRYpwxEMAZalo+Z tDr6BcN+ZI1JEuPMYwQn9MiFmlcPLfq/NyrKPlXxP0FoEKB6zbkvutnZ1lsgEMK2dZ4e K0iETSj1+PImPJ7M47pdRAY83tl/t9OMdgWUlOi6qwl9CmNkQxjdI4fXZBLqEhckPg26 xSmeY3dsS6lGN85itZ2eWZ+oxntmpSY0mjnGoBB6bR/RdEGq2PWXR7UZvRtvJJbIelT/ ufFI4vFhi852KdnVVBxd91HNvZRUEpYWyypi2t0IRFY/R3W1BLum385KhjEnRec4fxls djCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYv7zkSX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a637a10000000b00553ebb05d19si1846555pgc.81.2023.06.20.12.36.52; Tue, 20 Jun 2023 12:37:04 -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=@kernel.org header.s=k20201202 header.b=OYv7zkSX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbjFTS5z (ORCPT + 99 others); Tue, 20 Jun 2023 14:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjFTS5y (ORCPT ); Tue, 20 Jun 2023 14:57:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68D52DC; Tue, 20 Jun 2023 11:57:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05C6461451; Tue, 20 Jun 2023 18:57:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A5C1C433C0; Tue, 20 Jun 2023 18:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287470; bh=qjmVe16Z88mp0HPuccB5YwxW1CLBg/z3ac10InJAyRU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=OYv7zkSXHZiNEd7RoIZuceND1NnxY+AIYGYVrl/FqmHUWgeb/pcHhHL03zlecxdvq JusXXUNNz3Fjpi72P1IQc5tebcPf+wI/+sUQofgYKQ/eFRLW1pu4Mt813erBT5A8MW plqn6nbhXLeFidiBWFxRdvcwiRXP8DZfX81gH2hSAUkVPft1j4mylNAro1I1Xn2awT cvz01KSK5Jwd0WROFLhiNFMoreb5y8I9v7BfILZatAEIuVOSmEddmXehLYBGtVm2e4 /0JGvAKBGXA5ehvJR/x8lbc122G/Md6YSSGsPxnXJTJHFkO+t7THkEt5zXd2genkn4 VgehZjyRTDlXg== Message-ID: <2e1a1c3a0dd1de0d7ce9928598979097.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230327-mvebu-clk-fixes-v2-3-8333729ee45d@kernel.org> References: <20230327-mvebu-clk-fixes-v2-0-8333729ee45d@kernel.org> <20230327-mvebu-clk-fixes-v2-3-8333729ee45d@kernel.org> Subject: Re: [PATCH v2 3/4] clk: mvebu: Iterate over possible CPUs instead of DT CPU nodes From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org To: Andrew Lunn , Gregory Clement , Michael Turquette , Rob Herring , Sebastian Hesselbarth Date: Tue, 20 Jun 2023 11:57:48 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting Rob Herring (2023-06-09 11:13:47) > Rework iterating over DT CPU nodes to iterate over possible CPUs > instead. There's no need to walk the DT CPU nodes again. Possible CPUs > is equal to the number of CPUs defined in the DT. Using the "reg" value > for an array index is fragile as it assumes "reg" is 0-N which often is > not the case. >=20 > Signed-off-by: Rob Herring > --- Applied to clk-next