diff mbox series

[U-Boot,2/2] global_data: Remove comment of reserved arch-specific GD flags

Message ID 20190816124529.1178-2-sr@denx.de
State Accepted
Commit d117f917bfd2ccf4eaf90bddfa256501a554b1a4
Delegated to: Bin Meng
Headers show
Series [U-Boot,1/2] x86: Remove x86 specific GD flags as they are not referenced at all | expand

Commit Message

Stefan Roese Aug. 16, 2019, 12:45 p.m. UTC
With the removal of the x86 specific GD flags, there are no arch-
specific GD flags any more. Let's remove the comment about reserving the
upper 16 bits for arch-specific flags in the common header. This gives
us more flexibility with the usage of the GD flags.

As a matter of fact, we are already using more than 16 bits for common
GD flags (with the addition of GD_FLG_WDT_READY).

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
---
 include/asm-generic/global_data.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bin Meng Aug. 16, 2019, 2:51 p.m. UTC | #1
On Fri, Aug 16, 2019 at 8:45 PM Stefan Roese <sr@denx.de> wrote:
>
> With the removal of the x86 specific GD flags, there are no arch-
> specific GD flags any more. Let's remove the comment about reserving the
> upper 16 bits for arch-specific flags in the common header. This gives
> us more flexibility with the usage of the GD flags.
>
> As a matter of fact, we are already using more than 16 bits for common
> GD flags (with the addition of GD_FLG_WDT_READY).
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> ---
>  include/asm-generic/global_data.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Simon Goldschmidt Aug. 16, 2019, 3:05 p.m. UTC | #2
Stefan Roese <sr@denx.de> schrieb am Fr., 16. Aug. 2019, 14:45:

> With the removal of the x86 specific GD flags, there are no arch-
> specific GD flags any more. Let's remove the comment about reserving the
> upper 16 bits for arch-specific flags in the common header. This gives
> us more flexibility with the usage of the GD flags.
>
> As a matter of fact, we are already using more than 16 bits for common
> GD flags (with the addition of GD_FLG_WDT_READY).
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
>

Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

---
>  include/asm-generic/global_data.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/asm-generic/global_data.h
> b/include/asm-generic/global_data.h
> index 5372d5d8cd..7587ba2ee5 100644
> --- a/include/asm-generic/global_data.h
> +++ b/include/asm-generic/global_data.h
> @@ -150,7 +150,7 @@ typedef struct global_data {
>  #endif
>
>  /*
> - * Global Data Flags - the top 16 bits are reserved for arch-specific
> flags
> + * Global Data Flags
>   */
>  #define GD_FLG_RELOC           0x00001 /* Code was relocated to RAM
>  */
>  #define GD_FLG_DEVINIT         0x00002 /* Devices have been initialized
>  */
> --
> 2.22.1
>
>
Simon Glass Aug. 16, 2019, 3:59 p.m. UTC | #3
On Fri, 16 Aug 2019 at 10:05, Simon Goldschmidt
<simon.k.r.goldschmidt@gmail.com> wrote:
>
>
>
> Stefan Roese <sr@denx.de> schrieb am Fr., 16. Aug. 2019, 14:45:
>>
>> With the removal of the x86 specific GD flags, there are no arch-
>> specific GD flags any more. Let's remove the comment about reserving the
>> upper 16 bits for arch-specific flags in the common header. This gives
>> us more flexibility with the usage of the GD flags.
>>
>> As a matter of fact, we are already using more than 16 bits for common
>> GD flags (with the addition of GD_FLG_WDT_READY).
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: Tom Rini <trini@konsulko.com>
>> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
>
>
> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

Reviewed-by: Simon Glass <sjg@chromium.org>
Bin Meng Aug. 18, 2019, 1:59 p.m. UTC | #4
On Fri, Aug 16, 2019 at 11:59 PM Simon Glass <sjg@chromium.org> wrote:
>
> On Fri, 16 Aug 2019 at 10:05, Simon Goldschmidt
> <simon.k.r.goldschmidt@gmail.com> wrote:
> >
> >
> >
> > Stefan Roese <sr@denx.de> schrieb am Fr., 16. Aug. 2019, 14:45:
> >>
> >> With the removal of the x86 specific GD flags, there are no arch-
> >> specific GD flags any more. Let's remove the comment about reserving the
> >> upper 16 bits for arch-specific flags in the common header. This gives
> >> us more flexibility with the usage of the GD flags.
> >>
> >> As a matter of fact, we are already using more than 16 bits for common
> >> GD flags (with the addition of GD_FLG_WDT_READY).
> >>
> >> Signed-off-by: Stefan Roese <sr@denx.de>
> >> Cc: Bin Meng <bmeng.cn@gmail.com>
> >> Cc: Simon Glass <sjg@chromium.org>
> >> Cc: Tom Rini <trini@konsulko.com>
> >> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> >
> >
> > Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

applied to u-boot-x86, thanks!
diff mbox series

Patch

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 5372d5d8cd..7587ba2ee5 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -150,7 +150,7 @@  typedef struct global_data {
 #endif
 
 /*
- * Global Data Flags - the top 16 bits are reserved for arch-specific flags
+ * Global Data Flags
  */
 #define GD_FLG_RELOC		0x00001	/* Code was relocated to RAM	   */
 #define GD_FLG_DEVINIT		0x00002	/* Devices have been initialized   */