Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4091489imm; Tue, 25 Sep 2018 11:09:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV62XNlu+UDjNK4GWpJwitQKCFxbswjT6DywpzbXZiqQzFnnonNMQeYYnLx4yBzPl2gwdRxAf X-Received: by 2002:a17:902:8f8c:: with SMTP id z12-v6mr2335546plo.4.1537898968255; Tue, 25 Sep 2018 11:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537898968; cv=none; d=google.com; s=arc-20160816; b=j9gbOYDO1C7qcHmXgLldMtwfsxelYUJbF0dMaKEybjtrFOuHahPcdfzkDQKUehAwaj yDg+Eex8L2QKEZ2eSDP3t/S2eeDRUHRVP1P0eGEzWcTBXZZIIp+9eMnGxXzzKduZ22nF M9G9XqD2Mk5ib8s+SCz7wDM+SRZ2j6w2A/6TKV1k41UBIcoD8I5NcZyBvT2WzsyeppzY 2QHHVzZ+L+gtBaiJRkGcISIc4oVtloHcw1Iah3UKOsP1moZfbnl0hS9tjOE+tNcB8Hd2 Vj5CDz/xP/mmBZevTZDHp7a1BQlFUL81i3rzcfX5X1DbANOu9g03ykYLCgzVsPKmPCQ3 n/Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aL5T5Qh+oA9oOnuNZ5zxuTk7P9cDVFLf0HY33WTeFy0=; b=vYDThAdhU+r4IapDZcxkWgskDVqDkxZrKqBionYFdUBB+TMM1J93TghE7vRvgPbVLJ oSlCHGzqVXA04MXrxDmc8Y6slJCYusTFV44yTOQLQ/ofFLIClMU74n0ZpATM6npaDHMQ s6Q1BjikVrrDXAtZMb1BYZm10TxURV9J7+pNk9p8S0pTx/cTV1kIEUajaKSD3fWhM6Uz YI3C8AqrlNyYXHJv4Nv0QQOEcNycas7uDLURyVGne3eNTyD5itO5zk8zj0RJO8ysZLQE nAWAtk00j0AqXEVRNTulHzImxUUqhqShgXa1T2FJ7TjpOqr8ov8fs2gXy0XJLDEuwWxk MyKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ikVarA4e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j18-v6si3037535pgk.355.2018.09.25.11.09.12; Tue, 25 Sep 2018 11:09:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ikVarA4e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727449AbeIZARi (ORCPT + 99 others); Tue, 25 Sep 2018 20:17:38 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37795 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbeIZARh (ORCPT ); Tue, 25 Sep 2018 20:17:37 -0400 Received: by mail-wr1-f67.google.com with SMTP id u12-v6so24293333wrr.4 for ; Tue, 25 Sep 2018 11:08:54 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=aL5T5Qh+oA9oOnuNZ5zxuTk7P9cDVFLf0HY33WTeFy0=; b=ikVarA4eJIcV29KoWwcVVYKHU+saFjDeb+Jjoy17lHNYqW6OpFW4WhRK3WWnpqpWIW XPvWWTDno4cDf+keHs6qhWQalwvb3UMZazRPrl88KsU0iYbONyQCYBjvFXbdwvpwFA2w vwIdEPTLUIejSCuJO1P3Q0MD2ZEaVaRhy7B3ujEWAJUE+uk6RaqoLcCn1SzO9nwthVfn wrfrzoPHojlraI80JkdT/56deg4YQG7VCUljuskbuInm2WxfhdEPttyEFO4DYcMPX/SX mKfjC2kWkYfXfwbMQHYY3GxNbmTQDPuI0+wZjnKlL3FtPDRKiftFqVyWi2x2EpFzSp6s mmbg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=aL5T5Qh+oA9oOnuNZ5zxuTk7P9cDVFLf0HY33WTeFy0=; b=Qwaj/C4P9WqKeAp+FWEW6o937tl6t2O+NZP4ukCU2aKhFQPNZRINwH/498mrWdXcC8 Q3YdkdVx7jz5ug4qFv5v9j84zutQH9Ft9iaOWqTWt6ecOCu3Zs6AvOua5MaughnOj07N l/po/SwFf87EpZpTWAjeuvRT3gGU1PurutFctiqZvb+4Wy4DtwHUxyr8OKMkHf4i+QQH y+PyhKAxzlHNSTO+FS2yoG+NcDEs04M713mocCJhVKqVD7FhTj2b28uIZ5dGgR6q+t5G a+4oi0Fzs1RXQFkBiFbyaRhm4t/Pc0VFn1Rp+wiyZpJQsirdYolFciQJfArMTh+iqbZh erog== X-Gm-Message-State: ABuFfohYnu9QyehFffvXE/2WQrHtTBSa2eQ7Nk6Ljw7fQZpSZu9b6ESz hgdIaqw8SV0ayNuytAafoR8= X-Received: by 2002:adf:ac4a:: with SMTP id v68-v6mr1915078wrc.165.1537898933774; Tue, 25 Sep 2018 11:08:53 -0700 (PDT) Received: from laptop.localdomain ([37.122.159.87]) by smtp.gmail.com with ESMTPSA id v6-v6sm2755827wro.66.2018.09.25.11.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 11:08:53 -0700 (PDT) From: Yasha Cherikovsky To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org Cc: Yasha Cherikovsky , Kevin Cernekee , Florian Fainelli , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] MIPS: BMIPS: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y Date: Tue, 25 Sep 2018 21:08:24 +0300 Message-Id: <20180925180825.24659-4-yasha.che3@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180925180825.24659-1-yasha.che3@gmail.com> References: <20180925180825.24659-1-yasha.che3@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ELF appended dtb can be accessed now via 'fw_passed_dtb'. Signed-off-by: Yasha Cherikovsky Cc: Kevin Cernekee Cc: Florian Fainelli Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/bmips/setup.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c index 3b6f687f177c..b71b6eaaf7ed 100644 --- a/arch/mips/bmips/setup.c +++ b/arch/mips/bmips/setup.c @@ -153,8 +153,6 @@ void __init plat_time_init(void) mips_hpt_frequency = freq; } -extern const char __appended_dtb; - void __init plat_mem_setup(void) { void *dtb; @@ -164,15 +162,10 @@ void __init plat_mem_setup(void) ioport_resource.start = 0; ioport_resource.end = ~0; -#ifdef CONFIG_MIPS_ELF_APPENDED_DTB - if (!fdt_check_header(&__appended_dtb)) - dtb = (void *)&__appended_dtb; - else -#endif /* intended to somewhat resemble ARM; see Documentation/arm/Booting */ if (fw_arg0 == 0 && fw_arg1 == 0xffffffff) dtb = phys_to_virt(fw_arg2); - else if (fw_passed_dtb) /* UHI interface */ + else if (fw_passed_dtb) /* UHI interface or appended dtb */ dtb = (void *)fw_passed_dtb; else if (__dtb_start != __dtb_end) dtb = (void *)__dtb_start; -- 2.19.0