[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v5 2/8] xen/arm: export device_tree_get_reg and device_tree_get_u32


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Julien Grall <Julien.Grall@xxxxxxx>
  • Date: Wed, 25 Sep 2019 20:50:37 +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-SenderADCheck; bh=Gj8NxgmWfoptoiMWslR0ktlxYswun8cpzjOxOEbfVKc=; b=lpCtL0590MsmuXZCEM4G6OY4hLXf6+0/g2O4LdTrWJMSpdqqNQk1zPSD1/kOEx3sqeA4wHk+vXUZHqto+F8CPvj25u4/P3ppCnPj5VfvH2F/UrViLsbJRclx0VFrFeSTlYJQ1ewLoGJMSHwlPROSQbi7Z5Z5XNYkC+62U3lZYxG3yIJJG3LbNvK7rTsKwIZOaw7GR5cmKgF/OEoPAJXEWJrKOFQbZp2B9S7iF3ulqLpLUL/ImWCUb3v/QwXFL8Aou+C2ajsCEMYhwqEqA1XerF83EAg0HzmBq/Cd+SLrkvnLAWGwRYIDaU3bE0DYyKzjfyzeplBFIwJVYrtUjcFURg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=egNJvhKwYB5ZgNBoU94w1tvyc3CGmsJTP10HIMZUbTZhjzgigt9VmvqPdiSX7opM3SzqZk2pTEOmIO75ksEp5srr5nDL9eeNTd6pyNaWIwgyQ6UXAG2K0+o/JJtMSRLFGv2iKhePkfKe0egQ1RAIBP5+LESaXOysMtHNpL2oc15u1uQMVyc10yi1iHk7JAaRtR6UvwulJFLjc3Nozh20XNr33ZPU4c3z5T4tqnwWWu8mpZeK8R9wxq0p52iIn/BK6nKjqkiF4Zt6S9Jq5En2lIj9whpp0P8jlANzK0xvXQY9e55akv5keCA0X7FeRYddo8Hdc4opoa9Ja3suOIsKWQ==
  • Authentication-results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.xen.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.xen.org; dmarc=none action=none header.from=arm.com;
  • Authentication-results-original: spf=none (sender IP is ) smtp.mailfrom=Julien.Grall@xxxxxxx;
  • Cc: Stefano Stabellini <stefanos@xxxxxxxxxx>, "andrii_anisov@xxxxxxxx" <andrii_anisov@xxxxxxxx>, Achin Gupta <Achin.Gupta@xxxxxxx>, "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>, nd <nd@xxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 25 Sep 2019 20:51:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: True
  • Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Julien.Grall@xxxxxxx;
  • Thread-index: AQHVc9H3NBL7ZInOSEmtOPgp2tAl8qc83hwA
  • Thread-topic: [PATCH v5 2/8] xen/arm: export device_tree_get_reg and device_tree_get_u32

Hi,

On 25/09/2019 19:49, Stefano Stabellini wrote:
> They'll be used in later patches.
> 
> Signed-off-by: Stefano Stabellini <stefanos@xxxxxxxxxx>

Acked-by: Julien Grall <julien.grall@xxxxxxx>

Cheers,

> 
> ---
> Changes in v5:
> - move declarations to xen/include/asm-arm/setup.h
> 
> Changes in v4:
> - new patch
> ---
>   xen/arch/arm/bootfdt.c      | 8 ++++----
>   xen/include/asm-arm/setup.h | 6 ++++++
>   2 files changed, 10 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c
> index 623173bc7f..a7810abb15 100644
> --- a/xen/arch/arm/bootfdt.c
> +++ b/xen/arch/arm/bootfdt.c
> @@ -55,15 +55,15 @@ static bool __init device_tree_node_compatible(const void 
> *fdt, int node,
>       return false;
>   }
>   
> -static void __init device_tree_get_reg(const __be32 **cell, u32 
> address_cells,
> -                                       u32 size_cells, u64 *start, u64 *size)
> +void __init device_tree_get_reg(const __be32 **cell, u32 address_cells,
> +                                u32 size_cells, u64 *start, u64 *size)
>   {
>       *start = dt_next_cell(address_cells, cell);
>       *size = dt_next_cell(size_cells, cell);
>   }
>   
> -static u32 __init device_tree_get_u32(const void *fdt, int node,
> -                                      const char *prop_name, u32 dflt)
> +u32 __init device_tree_get_u32(const void *fdt, int node,
> +                               const char *prop_name, u32 dflt)
>   {
>       const struct fdt_property *prop;
>   
> diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h
> index efcba545c2..fa0a8721b2 100644
> --- a/xen/include/asm-arm/setup.h
> +++ b/xen/include/asm-arm/setup.h
> @@ -115,6 +115,12 @@ const char *boot_module_kind_as_string(bootmodule_kind 
> kind);
>   extern uint32_t hyp_traps_vector[];
>   void init_traps(void);
>   
> +void device_tree_get_reg(const __be32 **cell, u32 address_cells,
> +                         u32 size_cells, u64 *start, u64 *size);
> +
> +u32 device_tree_get_u32(const void *fdt, int node,
> +                        const char *prop_name, u32 dflt);
> +
>   #endif
>   /*
>    * Local variables:
> 

-- 
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.