[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN][PATCH v10 08/20] xen/device-tree: Add device_tree_find_node_by_path() to find nodes in device tree
- To: Vikram Garhwal <vikram.garhwal@xxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Mon, 28 Aug 2023 01:59:08 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u2OUpPHrRVxAY391QF3WkYaOHqw3HmDHfAlCFLQcAPw=; b=cMSqtM3U6AZTy8Cpw7c3ERo0utiU619rL1gtZde1Z2RUhveEVDnNfP0nCkbUZ1hhYZ++tjE+868RJ+clnp0cOSXnIB1L47r3l58cyX6F14J9o+gWqmwog/7joIDGi2LJFA4XJh/XWRVbkXWpKgtYGZ6H/UHd4HQ5pVRGdo6a+ZtUkXhKzIWoxKfBRb7QYKDQeD25HhajqTBCO6TaTZ2QPMkW/ko6Qy/mPym0Db9J0P7ACg6jFUeEwDjs3JSI2wqtorakELqFKFGr0LDgIaCHZrdo8sLHmj6YtYEqBNmR04e2NZZ/ndRiDMIFryXUFiwvqirLMakFC7KqJeWTBTexzg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LH8e2fDwdIgyWRdbiuSLmB/z4uGvAGUuRczCg4clNYdLsK6aidvD/9YLvDU5mxGDXBuYwKEYVwEPA8keaUwepiUcV/ugr4vfvMZ8ciAIAaBu7mBjkowBjWJvgE0trQ3tRp5r+Dj4xEHEHHWt+BMdoSHjEV4iD2pXbAZ/gdTeutpBaZ1TFj1SMrDzMz1owFZ5PwUXLGigVDNiws36+0k6BU89NXoYLvCSW+SlxWZZEl/dPRRF6aD64AWJdjulbnTP7bEn0WAHDjmNia4Vp7EmziM3pPxPkvgwOPPnh1qd/g7DMY7QN0dVoCHRRQ1KrqGdQEcMCUNf0ScV67aJ3plyyQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>
- Delivery-date: Mon, 28 Aug 2023 01:59:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHZ1yqk/rh9XTnQ3EOw+dopXp97ca/++BQA
- Thread-topic: [XEN][PATCH v10 08/20] xen/device-tree: Add device_tree_find_node_by_path() to find nodes in device tree
Hi Vikram,
> On Aug 25, 2023, at 16:02, Vikram Garhwal <vikram.garhwal@xxxxxxx> wrote:
>
> Add device_tree_find_node_by_path() to find a matching node with path for a
> dt_device_node.
>
> Reason behind this function:
> Each time overlay nodes are added using .dtbo, a new fdt(memcpy of
> device_tree_flattened) is created and updated with overlay nodes. This
> updated fdt is further unflattened to a dt_host_new. Next, we need to find
> the overlay nodes in dt_host_new, find the overlay node's parent in dt_host
> and add the nodes as child under their parent in the dt_host. Thus we need
> this function to search for node in different unflattened device trees.
>
> Also, make dt_find_node_by_path() static inline.
>
> Signed-off-by: Vikram Garhwal <vikram.garhwal@xxxxxxx>
Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
>
|