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 3FFDBC433F5 for ; Tue, 11 Oct 2022 15:50:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B0CE84F3B; Tue, 11 Oct 2022 17:49:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="FOtTbVjL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5E5884F14; Tue, 11 Oct 2022 17:48:29 +0200 (CEST) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB0FF84F0F for ; Tue, 11 Oct 2022 17:48:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12f.google.com with SMTP id q18so4584557ils.12 for ; Tue, 11 Oct 2022 08:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L74AhKXwm2P0J2P6pSdZEt4m4wXqTcEGX/fuR7dheRU=; b=FOtTbVjLV0UZDJ6T5n368uszuVVEf3e+y4WJ2M2j5KdjoLxG88mtnKtWbI/TIXTBrU 9dZqK6QrdOHnlf/tZHa/wYfHmWetokri5zS39IVUFpZ/TQ992kwkTrRk7jT/4xTst0sF gbV1wTEs1CBKZ+mStPh3VAn9QHLXUa2tco6Ks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L74AhKXwm2P0J2P6pSdZEt4m4wXqTcEGX/fuR7dheRU=; b=LuyMbwzsSB9Wbbx2bbvdrYjgAzS/1Kr+ID2kpwphGh0jNapGCV7LzzgiVrrP2iz9uk Kkl6H/1kQKH9Lj+Qt2le9QoARQPP6knI4jXgsaA6Jxm7op28n5AqOfBUjs2xE48UMSDL VHUMoAzkgK8Eue3p4NPNOrG81le0Lv8bLSgNrmC56fnXP13PvqoxMFpiRxy2FWHXL1Or 9OXXtHYpjJ81P4Jb5fViY4F5tHToUWT/gIgSDI4Z8k7/GDfAg1vn5fZbv6LlwIJHJxmM HzrtohNRcqo02iQloHHIc3YArbx//Y0Naey1d7oPe2P8dMLJVio08oA9LfC6/VGTwvYp 3UIQ== X-Gm-Message-State: ACrzQf2w66bq38H2w8PR07UM+FLDCMc9Hm5/qdoOL76UDbbLdwFKaEO6 WEmVopXPqI/NcseorCOFQtL4gyFbtdbX7A== X-Google-Smtp-Source: AMsMyM6gls1/kHKIKuCYZvGH6ja4YAy8ItgUZu2TR1ykHuScU+gbRS7/Edm1bF8jqjPGSJOIOLR7sQ== X-Received: by 2002:a05:6e02:18cd:b0:2f9:e186:e673 with SMTP id s13-20020a056e0218cd00b002f9e186e673mr12950681ilu.297.1665503299147; Tue, 11 Oct 2022 08:48:19 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id r12-20020a922a0c000000b002f9b55e7e92sm4988680ile.0.2022.10.11.08.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 08:48:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH v2 13/14] dm: core: Update docs about oftree_from_fdt() Date: Tue, 11 Oct 2022 09:47:19 -0600 Message-Id: <20221011154720.550320-14-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221011154720.550320-1-sjg@chromium.org> References: <20221011154720.550320-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Update this function's comment and also the livetree documentation, so it is clear when to use the function. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to update docs about oftree_from_fdt() doc/develop/driver-model/livetree.rst | 2 +- include/dm/ofnode.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/develop/driver-model/livetree.rst b/doc/develop/driver-model/livetree.rst index 55aa3eac929..579eef5ca9f 100644 --- a/doc/develop/driver-model/livetree.rst +++ b/doc/develop/driver-model/livetree.rst @@ -255,7 +255,7 @@ So long as OF_LIVE is disabled, it is possible to do fixups using the ofnode interface. The OF_LIVE support required addition of the flattening step at the end. -See dm_test_ofnode_root() for some examples. The ofnode_path_root() function +See dm_test_ofnode_root() for some examples. The oftree_from_fdt() function causes a flat device tree to be 'registered' such that it can be used by the ofnode interface. diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 7aae2c29ef1..fa9865602d8 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -59,6 +59,9 @@ __attribute_const__ int ofnode_to_offset(ofnode node); /** * oftree_from_fdt() - Returns an oftree from a flat device tree pointer * + * If @fdt is not already registered in the list of current device trees, it is + * added to the list. + * * @fdt: Device tree to use * * Returns: reference to the given node -- 2.38.0.rc1.362.ged0d419d3c-goog