Re: [PATCH] hwconfig: Allow to use restricted env

2022-08-20 Thread Tom Rini
On Sun, Aug 07, 2022 at 09:06:04PM +0200, Pali Rohár wrote: > During early boot phase GD_FLG_ENV_READY is not set but env_get() may work > when env is ready in restricted mode. Do not fail with error message > "WARNING: Calling __hwconfig without a buffer and before environment is ready" > when en

[PATCH] hwconfig: Allow to use restricted env

2022-08-07 Thread Pali Rohár
During early boot phase GD_FLG_ENV_READY is not set but env_get() may work when env is ready in restricted mode. Do not fail with error message "WARNING: Calling __hwconfig without a buffer and before environment is ready" when env is already working by checking for ENV_VALID flag. Signed-off-by: