From patchwork Thu Sep 5 08:48:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 1158304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="MOwSuGyp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46PDrd0Xcnz9sDQ for ; Thu, 5 Sep 2019 18:49:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id AFD50C21E2F; Thu, 5 Sep 2019 08:49:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D9180C21D8E; Thu, 5 Sep 2019 08:49:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0EFA0C21D8E; Thu, 5 Sep 2019 08:49:05 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by lists.denx.de (Postfix) with ESMTPS id 771D6C21C50 for ; Thu, 5 Sep 2019 08:49:04 +0000 (UTC) Received: from ziggy.de (unknown [37.223.145.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74A3D21743; Thu, 5 Sep 2019 08:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567673342; bh=mOs6y4HpR6OiA30G8KljeJs/y5Ke2GaCxCm6UnGL5rQ=; h=From:To:Cc:Subject:Date:From; b=MOwSuGypWvGImQNn5rt2MHcMZMb8SSTkh0XZNS8VTYQuDb1Uk/KSWKFl3kQpk6fzN 979MHAmbU8bORjmRtZ1GZIGK5i6KpIOhZF6I1wK6xjCi+GZWkOMEcUwAVTiuBJgbva njGB2TMsXlmQR0/N48aPz1cf/M7baYTcDhdeyhik= From: matthias.bgg@kernel.org To: treding@nvidia.com, sjg@chromium.org, swarren@nvidia.com Date: Thu, 5 Sep 2019 10:48:45 +0200 Message-Id: <20190905084849.20596-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Matthias Brugger , matthias.bgg@kernel.org Subject: [U-Boot] [PATCH v2 0/4] Fix default values for address and size cells X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Matthias Brugger The libftd implementation of U-Boot is outdated with the upstream project. Especially the default number of size-cells was wrong. This series fixes this by backporting the corresponding patches from the upstream project. Changes since v1: - fix spelling of U-Boot (patch 1 + 2 /4) - add Reviewed-by tag (patch 1/4) - fix the case of size-cells == 0 (patch 3/4) - fix default address cells for livetree (patch 4/4) v1 can be found here: https://patchwork.ozlabs.org/patch/1137331/ https://patchwork.ozlabs.org/patch/1137330/ Matthias Brugger (4): libfdt: fdt_address_cells() and fdt_size_cells() libfdt: return correct value if #size-cells property is not present libfdt: Allow #size-cells of 0 dm: Fix default address cells return value include/dm/of.h | 2 +- scripts/dtc/libfdt/fdt_addresses.c | 45 ++++++++++++++++-------------- scripts/dtc/libfdt/libfdt.h | 2 +- 3 files changed, 26 insertions(+), 23 deletions(-)