Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B272BC433F5 for ; Wed, 20 Apr 2022 10:31:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F02D783CF3; Wed, 20 Apr 2022 12:31:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=metanate.com header.i=@metanate.com header.b="XdJEL+ag"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B088C83D44; Wed, 20 Apr 2022 12:31:21 +0200 (CEST) Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 352E583968 for ; Wed, 20 Apr 2022 12:31:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=john@metanate.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=v3Tgv3JhCGu6B1L2ZXcL5SVs69N4yjpQ/MiQpfVNRbg=; b=Xd JEL+agMwrtV8gUe/97LFrcSlvfQqu/2iqjMPHD4qrNz4WnT6KVMIFKElV8S9NnvkvV1tJelD2tqnQ Y39+OyOrMEd+qE5W+iP3QL3/EBeYjIwUrEv/jkEC6tu7LcKokT4jHc6CuH0yHBce8duYDgARFWhm/ DGdmC/AD28T8A92xLyhVnJaY1IZR73cRsStuSx16bMm7wKKJy3tvb0KxoV6dF3ifUpg3EV+mpauS5 StOe+QLaRoIDx0Tz9N877H5O2+W44Mgh/bIqm3OSJIS9DLaQVFaeIovTyn/scSYrtsTq7XCSgbh+r XupQ5KwYcRRaVc/e//d36w+rlHjf84zg==; Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nh7cE-00080X-0y; Wed, 20 Apr 2022 11:31:18 +0100 From: John Keeping To: Simon Glass , u-boot@lists.denx.de Cc: John Keeping Subject: [PATCH] fdt: don't set linux,phandle Date: Wed, 20 Apr 2022 11:31:11 +0100 Message-Id: <20220420103111.3511739-1-john@metanate.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated: YES X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This has been deprecated for over 10 years and everything now uses the plain "phandle" property in preference. There's no need to set linux,phandle when creating phandles for nodes that do not have one. dtc changed the default to creating just phandle in version 1.4.5 released in September 2017 with the justification that the new style had already been supported for 7 years by that point (see dtc commit 0016f8c ("dtc: change default phandles to ePAPR style instead of both")). Signed-off-by: John Keeping --- common/fdt_support.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 8662bd27a4..7e9e654204 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1544,14 +1544,6 @@ int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle) #endif ret = fdt_setprop_cell(fdt, nodeoffset, "phandle", phandle); - if (ret < 0) - return ret; - - /* - * For now, also set the deprecated "linux,phandle" property, so that we - * don't break older kernels. - */ - ret = fdt_setprop_cell(fdt, nodeoffset, "linux,phandle", phandle); return ret; } -- 2.36.0