[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 04/11] xen/device-tree: Make dt_find_node_by_phandle global
- To: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
- From: Rahul Singh <Rahul.Singh@xxxxxxx>
- Date: Wed, 6 Oct 2021 10:32:38 +0000
- Accept-language: 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=MYlKb19k6G+jjBlNhWheETaiq+KnOR8gjF/VO8Id4ak=; b=Zcap6jDOvIP6XSLX6xQi3mAsee+kYLoi7uX8+Bf3BdNBa9LwB35hpZbjlIbtjg9F9s84XizgLkvCthHDr+DdLP29tEU+KsQuDq4gKguMQb19McwsRQydRKAazes2JbkWBj4/4XDDGjavFhgg3TzCOfaV+2cIozeb8Vpl2jMWTWTATFFKPtKpX2JvWyE6zNI1p0STgDKLG6TA7Yx++FXQRwfXJrhP6ddJN8jEkhAXS3uKCRwRYJHD8lLG5n6+MbCX0bsbwh1zNkiW0jRdFjyM7RG/K+yq3uEEtqJQ6f2X3xTx7lCmSdqWLcWDLQ1Xx4uLx4xonOywTZwJmJL7tGHLSg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T1qf7BmmYGc1f77mv1c3O+GMomt8sMfrBDNu/BYROF6EnRFyhUYtieFdOP6FT0JmN+At89iqZ651hoRh3WBXJtWYD1ogOFEuMl3VUN8HbcUOghuF4UfKDplk9TotrH1jvRHhhce607JLJNeo2C06JbgW+zLLMITWlP5hwuOSCOY2gOT/xMNbUAC7lO88NFP7QKhfPAKd2NE8o6STKTScty3hyNbkEdksqzAFqfU+2SnGp2iP3qp319cUE0XGdPvH2LHtJhPlRr6ino1xeiTiV422FHcr1JFheJ6GnYhI4k6Zm0jnhH8b2rGF+ojvLpZJJlvsDgnjSPh9r+2ateXVGA==
- Authentication-results-original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
- Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "oleksandr_tyshchenko@xxxxxxxx" <oleksandr_tyshchenko@xxxxxxxx>, "volodymyr_babchuk@xxxxxxxx" <volodymyr_babchuk@xxxxxxxx>, "Artem_Mygaiev@xxxxxxxx" <Artem_Mygaiev@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "paul@xxxxxxx" <paul@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
- Delivery-date: Wed, 06 Oct 2021 10:33:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
- Thread-index: AQHXuSnUS32qWIPSZk+UemyYVvX79KvFyKMA
- Thread-topic: [PATCH v4 04/11] xen/device-tree: Make dt_find_node_by_phandle global
Hi Oleksandr,
> On 4 Oct 2021, at 3:11 pm, Oleksandr Andrushchenko <andr2000@xxxxxxxxx> wrote:
>
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>
> Make dt_find_node_by_phandle globally visible, so it can be re-used by
> other frameworks.
>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Reviewed-by: Rahul Singh <rahul.singh@xxxxxxx>
Tested-by: Rahul Singh <rahul.singh@xxxxxxx>
Regards,
Rahul
> ---
> xen/common/device_tree.c | 2 +-
> xen/include/xen/device_tree.h | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
> index ea93da1725f6..4aae281e89bf 100644
> --- a/xen/common/device_tree.c
> +++ b/xen/common/device_tree.c
> @@ -1047,7 +1047,7 @@ int dt_for_each_range(const struct dt_device_node *dev,
> *
> * Returns a node pointer.
> */
> -static struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle)
> +struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle)
> {
> struct dt_device_node *np;
>
> diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h
> index 2297c59ce66d..fd6cd00b433a 100644
> --- a/xen/include/xen/device_tree.h
> +++ b/xen/include/xen/device_tree.h
> @@ -849,6 +849,8 @@ int dt_count_phandle_with_args(const struct
> dt_device_node *np,
> */
> int dt_get_pci_domain_nr(struct dt_device_node *node);
>
> +struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle);
> +
> #ifdef CONFIG_DEVICE_TREE_DEBUG
> #define dt_dprintk(fmt, args...) \
> printk(XENLOG_DEBUG fmt, ## args)
> --
> 2.25.1
>
|