Re: [PATCH] versal: Return ENVL_NOWHERE instead of ENVL_UNKNOWN

2022-01-05 Thread Michal Simek
st 24. 11. 2021 v 12:16 odesílatel Michal Simek
 napsal:
>
> From: T Karthik Reddy 
>
> The system fails to boot without any environment location, so return
> ENVL_NOWHERE when there's nowhere to store the environment instead
> of ENVL_UNKNOWN.
>
> The same change was also done by commit 50918d0df5cb ("xilinx: Return
> ENVL_NOWHERE instead of ENVL_UNKNOWN") for zynq and zynqmp.
>
> Signed-off-by: T Karthik Reddy 
> Signed-off-by: Michal Simek 
> ---
>
>  board/xilinx/versal/board.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
> index 03604d730a0b..299e128f7b9d 100644
> --- a/board/xilinx/versal/board.c
> +++ b/board/xilinx/versal/board.c
> @@ -269,13 +269,13 @@ enum env_location env_get_location(enum env_operation 
> op, int prio)
> return ENVL_FAT;
> if (IS_ENABLED(CONFIG_ENV_IS_IN_EXT4))
> return ENVL_EXT4;
> -   return ENVL_UNKNOWN;
> +   return ENVL_NOWHERE;
> case OSPI_MODE:
> case QSPI_MODE_24BIT:
> case QSPI_MODE_32BIT:
> if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
> return ENVL_SPI_FLASH;
> -   return ENVL_UNKNOWN;
> +   return ENVL_NOWHERE;
> case JTAG_MODE:
> default:
> return ENVL_NOWHERE;
> --
> 2.33.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


[PATCH] versal: Return ENVL_NOWHERE instead of ENVL_UNKNOWN

2021-11-24 Thread Michal Simek
From: T Karthik Reddy 

The system fails to boot without any environment location, so return
ENVL_NOWHERE when there's nowhere to store the environment instead
of ENVL_UNKNOWN.

The same change was also done by commit 50918d0df5cb ("xilinx: Return
ENVL_NOWHERE instead of ENVL_UNKNOWN") for zynq and zynqmp.

Signed-off-by: T Karthik Reddy 
Signed-off-by: Michal Simek 
---

 board/xilinx/versal/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 03604d730a0b..299e128f7b9d 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -269,13 +269,13 @@ enum env_location env_get_location(enum env_operation op, 
int prio)
return ENVL_FAT;
if (IS_ENABLED(CONFIG_ENV_IS_IN_EXT4))
return ENVL_EXT4;
-   return ENVL_UNKNOWN;
+   return ENVL_NOWHERE;
case OSPI_MODE:
case QSPI_MODE_24BIT:
case QSPI_MODE_32BIT:
if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
return ENVL_SPI_FLASH;
-   return ENVL_UNKNOWN;
+   return ENVL_NOWHERE;
case JTAG_MODE:
default:
return ENVL_NOWHERE;
-- 
2.33.1