Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2524728rdd; Fri, 12 Jan 2024 12:08:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNaMKcfOAWFEunF40/FDVTKqG0bxG46sz+I+4dPgRmG55yJHJQ3wrL8QgHhidJ3safZv6Y X-Received: by 2002:a05:6a20:181f:b0:19a:7ac2:7b2 with SMTP id bk31-20020a056a20181f00b0019a7ac207b2mr1253100pzb.73.1705090094075; Fri, 12 Jan 2024 12:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705090094; cv=none; d=google.com; s=arc-20160816; b=i8si3GsqUcoqBcXNbWMys0Y19M6VY/1QegbfIDEC3RtUNxemso2vG5BxtJhNvOP+Y4 +l6vuFMzjfPM53gIob0b4c+Mf0CkTtpEAIUjbLxRRkMTa0hA3OfYoLOsynv8Dh+82zGi PLpqe7s2p/pRs/8b4xqAwYFELDAk7l0N4GhhLqKyd+J0ELJXTht8hkUHGtcLoc7YKTn8 7EBcD78uTZhSs3o8ErJ1Uc7GoFhWvikXgrILzDfKLseQt1+UVlAL1TcRiBxO7WU2ceLV FQnrFkpcpUR7tbS+9dxToqBhEwsoVuhYJocrwoqVAQhLmbWCH8yPJvwGOK7YqOy/sKNP QIAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CqOU6E/fmILrxzO1+PqTUQ2BhTLfjR8U6sXhToy/ht4=; fh=z5DSQ+Di/n6S5JDKA9oYSYT6aAQl62IgbZZELXMyeNI=; b=Aysxl+CUhLhbGqQrPw9CeC5tOmNG5QtZ4cju4LhEwdRuTv4HB6mmOxMMUt2ulsMNVF IibBJngIRDahHRFwnzC3A95vQ6ftyShLQwWS+XLBXZJ+LjT5kd0PvcPdHuTRd60vDoX7 oubMxQXLO3J3GFU2BJySlKwLKEy5e4V4uYbMkDRUy+TAU6JnlBAPSOZL3/CrsJ7635Bh CyuGf+DeTD6r32KsObX1wS3j5v+U5h7T1uDzS6NmFVWCttp89fa0ocbboqFcrVhWmtOO hzGpCC80Rh+RiGC6tkiCIKH5ruoNWn2sRVYyAQz/mzaDS8Y2EAAST5IbNo88wdtwoDwy zYdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nGnzveG/"; spf=pass (google.com: domain of linux-kernel+bounces-25014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y32-20020a056a00182000b006d99a0c4b34si3987535pfa.180.2024.01.12.12.08.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 12:08:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nGnzveG/"; spf=pass (google.com: domain of linux-kernel+bounces-25014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25014-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F027CB210EF for ; Fri, 12 Jan 2024 20:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EBE2168A4; Fri, 12 Jan 2024 20:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nGnzveG/" 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 4573216419; Fri, 12 Jan 2024 20:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6629AC43390; Fri, 12 Jan 2024 20:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705090072; bh=Ftr3BKZw8coGMgoBGEKihNEJ4LajJ+HPG/Va2fa5Q/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nGnzveG/zSlluWPqK50MsRXFZgcqSqsT+b/j0PKAXVP7ZtdQyKAg1m3guf/d+IBVA 07pgc33Sbuh8cKPwsn4TbkcS4oenSfh3ljankCMJg+3KSR3xYKkq/FmivEMPbadwki Gnq+l6slqsgHmDwxM4NPuJLHDFpi9gubCjnjUfdn8Sxy8LDYoDjOakf6QcAqDVrAdr MDEBQQjx5CgxrWGB2llxj/Yj47M6+dU6XpmzgIP+dv/eye+gmUbhi9gVZJmKU4tJND 6j9+++zKYkaAyoMnCs8uOcZrzTy3AjyU8ipiPD0bw/T6SgAUz0oA+ED7fSzqWiE2Uf xFRtahWLY3/DA== From: Stephen Boyd To: Rob Herring Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-um@lists.infradead.org, linux-arm-kernel@lists.infradead.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, devicetree@vger.kernel.org, Frank Rowand , Catalin Marinas , Will Deacon Subject: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree() Date: Fri, 12 Jan 2024 12:07:44 -0800 Message-ID: <20240112200750.4062441-2-sboyd@kernel.org> X-Mailer: git-send-email 2.43.0.275.g3460e3d667-goog In-Reply-To: <20240112200750.4062441-1-sboyd@kernel.org> References: <20240112200750.4062441-1-sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Call this function unconditionally so that we can populate an empty DTB on platforms that don't boot with a firmware provided or builtin DTB. There's no harm in calling unflatten_device_tree() unconditionally. If there isn't a valid initial_boot_params dtb then unflatten_device_tree() returns early. Cc: Rob Herring Cc: Frank Rowand Cc: Catalin Marinas Cc: Will Deacon Cc: Signed-off-by: Stephen Boyd --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 417a8a86b2db..ede3d59dabf0 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -351,8 +351,7 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p) /* Parse the ACPI tables for possible boot-time configuration */ acpi_boot_table_init(); - if (acpi_disabled) - unflatten_device_tree(); + unflatten_device_tree(); bootmem_init(); -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git