Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp45951lqt; Wed, 5 Jun 2024 16:48:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWW+HF/ldasyWDxb3MNPVD7/HwdAa0fNMYj9mXF5LuhuWPdBaVItamDRhQZhPvw3h8+0SHSMaWRo/XJxZP7BuG17+TtC8egXnoSBrQ4Yg== X-Google-Smtp-Source: AGHT+IHXyGiTTKXpBrY4PF35R/ITDDR6r+rWLb7CKmul94xpVMhu1IGeVnU+lPqIT/Cod4/prQzI X-Received: by 2002:a17:907:86a1:b0:a63:3c6f:bff6 with SMTP id a640c23a62f3a-a6c7629775amr97734166b.18.1717631279955; Wed, 05 Jun 2024 16:47:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717631279; cv=pass; d=google.com; s=arc-20160816; b=aImM2qvYW8GRNgR10eyo4qGs+ngnuVVX6WE51Ar6W/Rs6PgRDhfyYzqkhTBYrpYY0Y 6ZvYalz65UHUiER234iMELc3RtMaryVqD+d4HRdX/lytPfbDMWQKHa3No2tzj+xCDzWW q3Hkz9pxDVi1eWSY4SO7/vnJjrphtYtlQzbUtGKU0NdhjCcPMSUt85inxRe/yrf6XdYh +nuB0HAoivzsn+Y93QWnjrJ07zOBY5KLCbqcQS+0VGVp7n3tkJnsfYaKeCBeqJkA+7xl igHyoo6eIK7jx1STc18VYfkxQABasHFGNjNkFjNeTvcZOuRmf422Xcig726fEB9KSQu7 gltQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7hqNaLwTRTLMrzSjH1nGFQ9ha2zLUELaYC646ahaZdQ=; fh=UCkawGQKpPXWL4jR2UVqrU5/ToXguOBk5xTK2yf8WOQ=; b=uRal+C2bQJJYfrchaIQFQmNTLD70m6uVFgm6GgbEQ4FogwXKUQbx+e5IpkZzzJc+in b42SUUXnn4G7AioZ0oPExrz+ymEydQikQADEnWtT/yS5cx2lm1ISl6AE3uivFWNSlbo3 13G4WCAtJmRWvrD2/L6i50HwwtvA2BoavNQ6h/nykf+qOkFk3bunNOz7K1sbaOL/GtuF SUwsjV0AuHUoRfD6x7lnl8heOXh/b7dv47W7ojvmswFqGL4AYeVzbzllC28fIMwChDRd K8hetkeJ+uCK4S3kaedDgAWjWJwjYNh1KIVA6fHE3mO0a+5zXi97GF06UTBDOeXJUYxS 1BSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=clvohwWg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80708667si5537866b.543.2024.06.05.16.47.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=clvohwWg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8F70F1F24FFD for ; Wed, 5 Jun 2024 23:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C823A169375; Wed, 5 Jun 2024 23:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="clvohwWg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEF3E2AE7F; Wed, 5 Jun 2024 23:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631271; cv=none; b=Qb3yZyS3ZUR6kZLFtr7jrTvGRQCMDQC407/2ominMjWMaKIGBlmFWwQzHDjJblLs+Bp3zC3o8KI3SjgFsPbJoGFRlp2OhfvMg+1iem8hl4rNcfmgMHciHzEodqjiBl3no9sAkZHSZEFoWTWuzdoPpnqDnpI5fzQQRcBRkW552zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631271; c=relaxed/simple; bh=P0Dz9uZCXkyVC4xEsaJA7+X7GQ2s5KNP/lIbs99pgVw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OHBqBClKEV9fQFDfOfdDK5Hnqeve3DHGnQz+zxMvjGEDC10Vy9ZwTLJcitTyvJbuXt4GrWvihKHcv0azQTbuqfXd1QJ7FlqJsGm8Va3AEWYgQOKfgrsIWD99wvNR8qeuTJBJiQJYaOx+Nukl9JmNlNQG648SpSkIzKqn2dXx30g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=clvohwWg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E58FBC2BD11; Wed, 5 Jun 2024 23:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717631270; bh=P0Dz9uZCXkyVC4xEsaJA7+X7GQ2s5KNP/lIbs99pgVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=clvohwWguyxAER2uYj+UnseqBAsI95UvGSOj46jVLwJI6OX1zOKJqN3rrKtrpqrlE Py7I6IBFsW7aJWoCOPieQoWmBGUGq5p7BjTHkxnxNimBXSitURG5GzeRlEpnFRmdsc ka2TtwJSuWgqQnQ9WqvuqrBrJvPWij4CeSCi4ldIk4tuFFvtzKSBu2bA7WfHYABG9L l3NJIwlRrO7Kk95I5PMKK2onfw7nr2bSgEQWp+9X6dpyVjysl57r1kMEqSL9vsEOeM 6/buXteFjsiaeUeq07wTEOfU5LWpONuupQV/K5p4/x6zDIb9qJrNtXqJT7sHqdNzi2 fv3Lhs0LQAxUw== Date: Wed, 5 Jun 2024 17:47:47 -0600 From: "Rob Herring (Arm)" To: Stephen Boyd Cc: Daniel Latypov , Saravana Kannan , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Christian Marangi , devicetree@vger.kernel.org, Rae Moar , Conor Dooley , Maxime Ripard , linux-clk@vger.kernel.org, linux-kselftest@vger.kernel.org, David Gow , "Rafael J . Wysocki" , patches@lists.linux.dev, Michael Turquette , kunit-dev@googlegroups.com, Brendan Higgins , Greg Kroah-Hartman Subject: Re: [PATCH v5 01/11] of/platform: Allow overlays to create platform devices from the root node Message-ID: <171763126482.3452193.1706263155906513076.robh@kernel.org> References: <20240603223811.3815762-1-sboyd@kernel.org> <20240603223811.3815762-2-sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603223811.3815762-2-sboyd@kernel.org> On Mon, 03 Jun 2024 15:37:58 -0700, Stephen Boyd wrote: > We'd like to apply overlays to the root node in KUnit so we can test > platform devices created as children of the root node. > > On some architectures (powerpc), the root node isn't marked with > OF_POPULATED_BUS. If an overlay tries to modify the root node on these > platforms it will fail, while on other platforms, such as ARM, it will > succeed. This is because the root node is marked with OF_POPULATED_BUS > by of_platform_default_populate_init() calling > of_platform_default_populate() with NULL as the first argument. > > Loosen the requirement here so that platform devices can be created for > nodes created as children of the root node via DT overlays even if the > platform bus wasn't populated for the root node. > > Cc: Rob Herring > Cc: Saravana Kannan > Signed-off-by: Stephen Boyd > --- > drivers/of/platform.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > Reviewed-by: Rob Herring (Arm)