env: Update env_addr for mmc environment driver
PATCH 1/1 env: Update env_addr for mmc environment driver
Signed-off-by Pankit Garg <[email protected]>
--- env/mmc.c | 5 +++++ 1 file changed, 5 insertions(+)
env/mmc.c +5 -0
@@ -362,6 +362,7 @@ static int env_mmc_load(void)int ret;int dev =mmc_get_env_dev ();const char *errmsg; +env_t *ep =NULL ; mmc =find_mmc_device (dev);
@@ -383,6 +384,10 @@ static int env_mmc_load(void) } ret =env_import (buf,1 ); +if (!ret) { + ep = (env_t *)buf; + gd->env_addr = (ulong)&(ep->data); + } fini:fini_mmc_for_env (mmc);
Signature · 1 line
2.17.1
PATCH 1/1 env: Update env_addr for mmc environment driver
Quoted 2 lines · Pankit Garg
Signed-off-by Pankit Garg <[email protected]>
Acked-by Joe Hershberger <[email protected]>
PATCH 1/1 env: Update env_addr for mmc environment driver
In reply to Pankit GargQuoted 9 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Pankit Garg
Sent: Tuesday, November 19, 2019 3:20 PM
To: u-boot at lists.denx.de
Cc: Pankit Garg <[email protected]>
Subject: [U-Boot] [PATCH] env: Updateenv_addrfor mmc environment driver
Please add description
Quoted 27 lines
Signed-off-by Pankit Garg <[email protected]>---
env/mmc.c| 5 +++++1 file changed, 5 insertions(+)env/mmc.c +5
-0@@ -362,6 +362,7 @@ static int env_mmc_load(void)int ret;int dev =mmc_get_env_dev ();const char *errmsg; +env_t *ep =NULL ; mmc =find_mmc_device (dev);@@ -383,6 +384,10 @@ static int env_mmc_load(void) } ret =env_import (buf,1 ); +if (!ret) { + ep = (env_t *)buf; + gd->env_addr = (ulong)&(ep->data); + }fini:
Quoted 4 lines
fini_mmc_for_env(mmc);--
2.17.1
-priyankajain