Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4091366imm; Tue, 25 Sep 2018 11:09:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62szRAUEnB0NP3QM2dxJ7ox5wEOpm1f5A9znM7DajGnCjR475s/kiYR+6AJdeq65ouaXUkT X-Received: by 2002:a63:4e4e:: with SMTP id o14-v6mr2131272pgl.181.1537898960192; Tue, 25 Sep 2018 11:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537898960; cv=none; d=google.com; s=arc-20160816; b=y/0z2EDnxydEWwm/ATDlGE+q9Te69cQ9J7o3jifSE7qq0KZ9pUn2YIo5DtlcfIwhnZ OVQGrluQOzB/WD+QSQxRLA1wIkgkhFKpwupRb6v5Any/kiZ5nQ4UX/SyAbTT9CfgNWVk UaBbEwQBThHOZaw20EXPPWqnSH713HvtG6CbrFABRFlZjcwiGa2GS++yRDdJlF7uJazp 9NfuVi7vCX7VRRdCX5WZTvD/PRfYOVNKjqTLMdK11eLDJOnlnQv1Twfq+ijrk/nx4Nqe NiEN0KHmWxOteaAg+Dm+RcvkCiCSXfXAcLwy9EUOTy86gqsRLGVfNrZvwx9n3vzkFkIw nziw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CI0hLS/bvI0Hqo/pfglI7FYYUsJ/cwY74alonubtd24=; b=KoXGJiG3HFxVH4aDvJ12wYKGceEpllUp1+u9giUpKx2pavbgxKQpNBZsjSTwXEaGMK zJe27oKKb1TBZut7D1iPr/3l+YsQiejWvCQgJg/m67te+35zAkvcIOBDEiidcrRNJ2qk POyqaSleTiPd5X3qbEI+ng5MZ60rRRU4q/qzsc6nrWDxI8TMDa8a0qKLSru20Kv72FRE OjFGCGgvytyqvpDGEOkzhS+EwiHrm9Z6FgCmrm1IKTApz88ZyeN6RbSWRTsnKOXAYSpb iudaj03WnpItTwhW4597TcyaaN7Yo8lowAszeJkbvB7BKEputfh+GPGWrG71sDQwbs0z vQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=auC+OaKC; 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 e7-v6si3087207pgn.82.2018.09.25.11.09.05; Tue, 25 Sep 2018 11:09:20 -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=auC+OaKC; 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 S1727305AbeIZAR1 (ORCPT + 99 others); Tue, 25 Sep 2018 20:17:27 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34825 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbeIZAR1 (ORCPT ); Tue, 25 Sep 2018 20:17:27 -0400 Received: by mail-wr1-f66.google.com with SMTP id o16so11010883wrx.2 for ; Tue, 25 Sep 2018 11:08:44 -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=CI0hLS/bvI0Hqo/pfglI7FYYUsJ/cwY74alonubtd24=; b=auC+OaKCTtg9cJXRa7nmpzJdX50yTxyrVVNvZZnoKthSRJIAXkoq0QJW8U5FvqUbF+ wUHDJ0HzDVf0tfUlj59ToPdGjq9fH5TMjUHOLzSIzx7aJNXOEbcbPIT2FSicVRaepJet 1ngKpu4E+3o8RJqRgcVvlLyD9dgD9ifsJdf5fRBnRhcHqE3owMk/Mjt2MptFWHgo2/jJ QsMNgO5dxxn0m/81Pfwc2mzfu1t8QmyyUquvaXDeFwotVsl91LgMsnJNTZQiVsv+EwnC qf8XWYQX9W56c53iJ091ghM1rKELrOXCaWAZ9nuBGIiOU7OUiLvpWLhKkJTw4zJMOoA1 xszA== 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=CI0hLS/bvI0Hqo/pfglI7FYYUsJ/cwY74alonubtd24=; b=BidXDt249x8jlur8H9fIWJiitLIUQW2gfJF2p09ASkUla+WJ80GbviTL/5WCRWT/Sk cYEgsdrnB+Uv82OrJ8tbAIzg3sS/wgP+SYT7eAP3/8QpGfexW1BXovE3ZADPN0Z7Z+gl nX58fwHflxBb2q3n1HLONPN7m275Q/ygQhhExgSKKIcLdkGmGIFmfj+u+IxQFmm0luR1 e1ZBxsl3fkcxw/Xs3KARNx9aMbhF1bQzeYzpTL538Q6/ix42wumMBlxq4fgr2yjb+Vvy JgVz/fCZReCbTOziSgZ5V7XytUgWrmi75emgI56RyBd+5Xe3I7qRGrViv0CbxLNz7q0j 4MAA== X-Gm-Message-State: ABuFfohS62TU4SrUOAvCvs1uIvZeXC9dMeQHml7gOVPZlMPtR/1ByJJu QWDiRIELgrOmCYkTlS4DMrKoOe+3ACk= X-Received: by 2002:adf:93a5:: with SMTP id 34-v6mr2114197wrp.244.1537898923546; Tue, 25 Sep 2018 11:08:43 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 11:08:43 -0700 (PDT) From: Yasha Cherikovsky To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org Cc: Yasha Cherikovsky , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] MIPS: Simplify ELF appended dtb handling Date: Tue, 25 Sep 2018 21:08:21 +0300 Message-Id: <20180925180825.24659-1-yasha.che3@gmail.com> X-Mailer: git-send-email 2.19.0 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 Hi, This patch series simplifies and cleans up the handling of CONFIG_MIPS_ELF_APPENDED_DTB in the MIPS tree. Specifically, it makes sure that the dtb appears in 'fw_passed_dtb' also under CONFIG_MIPS_ELF_APPENDED_DTB=y. This allows to remove special platform code that handled the ELF appended dtb case, and replace it with the generic appended dtb case (fw_passed_dtb). There's also a bonus: platforms that already handle 'fw_passed_dtb', gain now automatic support for detecting a DT blob under CONFIG_MIPS_ELF_APPENDED_DTB=y. Patches: - Patch 1 adds only comments (to make the file more readable for patch 2). - Patch 2 fixes 'fw_passed_dtb' under CONFIG_MIPS_ELF_APPENDED_DTB=y. - Patch 3 simplifies CONFIG_MIPS_ELF_APPENDED_DTB handling on the BMIPS platform. - Patch 4 simplifies CONFIG_MIPS_ELF_APPENDED_DTB handling on the Octeon platform. Patches 3 and 4 depend on patch 2. The patches are on top of v4.18. The patches are also available at: https://github.com/yashac3/linux-rtl8186/commits/elf_appended_dtb_changes_on_4_18 Please review. Thanks, Yasha Cc: linux-kernel@vger.kernel.org Yasha Cherikovsky (4): MIPS/head: Add comments after #endif and #else MIPS/head: Store ELF appended dtb in a global variable too MIPS: BMIPS: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y MIPS: Octeon: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y arch/mips/bmips/setup.c | 9 +-------- arch/mips/cavium-octeon/setup.c | 10 +++------- arch/mips/kernel/head.S | 18 ++++++++++-------- 3 files changed, 14 insertions(+), 23 deletions(-) -- 2.19.0