Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp434200pxf; Wed, 24 Mar 2021 08:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEyjsmtbQHb9bRwAELhJiqsG70Onnij0t99JYh2h9F17fnxKCipC5qAAjSeaiXOC0bqv9I X-Received: by 2002:a19:c350:: with SMTP id t77mr2179976lff.240.1616598384587; Wed, 24 Mar 2021 08:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616598384; cv=none; d=google.com; s=arc-20160816; b=Ikjuru8o81D5SYaGN+dBHKE+gkP9C+WlEkGOBKU5q2mD/Trr8gCIkbx3ZmcQAhmVYb XYUjMI62qoTsjOKc28OqtBU57EN4+qm7qXN1NvriVicv9fV3RVAt5uFL2jOE/1fW3XXD BN4OFLjOWt3O4O/NYpCD25qF8lL916Axj1r3h99ayqdlOvM6VBjk83IkdV3fWpewrgxy zOAy7CEK+zqKRxGy6LUE7dN6GEUq2in3s1LfuohB0eNfs/PlNuF1LRRVUgr3I8ns0Ej7 WyV22i2B5f+0XpYESl31Y9AzO/l34zeeUBq7/NsaIkY8+A0P/TIqNLyHz7D7rFNzg4Si ohQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FItyqxViIAmB8amy4A5vlzdR20mnIAmC2uA+KNkY1Gg=; b=VXtaoY+gUmpPojd/bZJGFmfTvSzTHJy5cF0x5Pyzm+/5g9BzQhQg2WJ3BMitCUtGoM iqURFPClThJ6vHuh/tK6EFzq3xEyzgmFvkqPaCaaXtJSHu/keXlBRTI/v45OfOxgrBHy xl+K2gxH3cXw/cY5ldKFzWLXAt2BQLEMBPvn5d2NHW51An30QyDUqQSB8Ou7qFKPGtg4 u0z6Zzw3yQl+SwRFIkJ7QHiXSt7/f54uZqjzAwlpf6D/9Qp9Hdzn+G0a1+mJ4BrydXcr XJbB9qLc+MNRgWExgUbCntg6Lpzbz2vqOTimlTUHt2RaOOXSQXHo4f2axzohwtEtysPu EcJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jq0HmIdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si1836289ejx.720.2021.03.24.08.05.59; Wed, 24 Mar 2021 08:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jq0HmIdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236445AbhCXPDn (ORCPT + 99 others); Wed, 24 Mar 2021 11:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236430AbhCXPDY (ORCPT ); Wed, 24 Mar 2021 11:03:24 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1115DC061763 for ; Wed, 24 Mar 2021 08:03:24 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 32so8684977pgm.1 for ; Wed, 24 Mar 2021 08:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FItyqxViIAmB8amy4A5vlzdR20mnIAmC2uA+KNkY1Gg=; b=Jq0HmIdidI3kiESpgQ+BC0vj3o2mde7P42Kiw+pHEnQOKhGpfCRFTJoME2bvKapawN WP3pLEgKYrF2sAzB+mmJAvjsOcdvNMbmGjx4Ocrubfo7asrx5cIXJ1m44gnw6MYYZHgK 0vPgZFKLr1mCyHexFNM0oCV2bvsUhTT+mT/NMt3q5LtQENk6Hm94IGJAFp7BLPtqtSKB 1dGEmDy8q2ksos80WZ2TTqJ+5mZr8kzVPJpPj/qqa615R5yJzuxPxd1NwgYsyc12UK1J LMI1FbMgNxiKkj/uloEBxOXsYX4tWQuP+aOM4rAIvmWEz9JYOW+bQIIz0RAOegSdVi8t SaIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FItyqxViIAmB8amy4A5vlzdR20mnIAmC2uA+KNkY1Gg=; b=J8ESuUYnEXxfnqlMEzLxPktcgC7WqwPMaZYK4IqeIiO8ZShXzt4nnVZ0LmlAUlTQkB 8FRhGgVw1PCzI+DnPIFlVx0nfGBHnmO6hbw+yHdhA8PV3I9RJIrBGlE648ZWMHO0pPHM AlW63QD+j+c1eG6nrzZSEv4nLKGdWb+6+dQbIAMZRGt0y07JUmslEAh10qk+G5wTxksC VTCD8qtGDpV7pyanEwGTbp5Bw4KtcnVERpT9lCMv17nDgpLpFnWaLbYYXQZf/ov24EvC eNxKNeIkTkA2UgGKHO0xC1G43jj2aLVCmWf59Wkyp+Ut+zQbvRCCOrBmMLMG98VRJXfN FGig== X-Gm-Message-State: AOAM532bGdtFFOLVAQvdIotgvl8g66HajDZKR7FMUXGppZhhRSGf/hPl 6qDcE8psQ+UHmrs8z8XqQBk= X-Received: by 2002:a62:683:0:b029:1ec:c88c:8ea2 with SMTP id 125-20020a6206830000b02901ecc88c8ea2mr3309240pfg.27.1616598203601; Wed, 24 Mar 2021 08:03:23 -0700 (PDT) Received: from WRT-WX9.. ([141.164.41.4]) by smtp.gmail.com with ESMTPSA id f2sm2916749pfq.129.2021.03.24.08.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 08:03:23 -0700 (PDT) From: Changbin Du To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH] riscv: Do not invoke early_init_dt_verify() twice Date: Wed, 24 Mar 2021 23:03:12 +0800 Message-Id: <20210324150312.20535-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the setup_arch() of riscv, function early_init_dt_verify() has been done by parse_dtb(). So no need to call it again. Just directly invoke unflatten_device_tree(). Signed-off-by: Changbin Du --- arch/riscv/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index f8f15332caa2..2a3d487e1710 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -255,10 +255,7 @@ void __init setup_arch(char **cmdline_p) #if IS_ENABLED(CONFIG_BUILTIN_DTB) unflatten_and_copy_device_tree(); #else - if (early_init_dt_verify(__va(dtb_early_pa))) - unflatten_device_tree(); - else - pr_err("No DTB found in kernel mappings\n"); + unflatten_device_tree(); #endif misc_mem_init(); -- 2.30.2