Re: [PATCH v2] cmd: gpt: initialize partition table

2024-05-03 Thread Tom Rini
On Mon, Apr 22, 2024 at 11:47:33PM +0530, Kishan Dudhatra wrote:

> Change in v2:
>   - Fix applies to all block devices, not just MMC.
> 
> If partition init is not completed within the gpt write,
> the gpt partition list will not be updated.
> 
> Signed-off-by: Kishan Dudhatra 
> 
> diff --git a/cmd/gpt.c b/cmd/gpt.c
> index d7e96529a6..7aaf1889a5 100644

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature


[PATCH v2] cmd: gpt: initialize partition table

2024-04-22 Thread Kishan Dudhatra
Change in v2:
- Fix applies to all block devices, not just MMC.

If partition init is not completed within the gpt write,
the gpt partition list will not be updated.

Signed-off-by: Kishan Dudhatra 

diff --git a/cmd/gpt.c b/cmd/gpt.c
index d7e96529a6..7aaf1889a5 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -643,6 +643,10 @@ static int gpt_default(struct blk_desc *blk_dev_desc, 
const char *str_part)
free(str_disk_guid);
free(partitions);
 
+   /* initialize partition table */
+   if (blk_enabled())
+   part_init(blk_dev_desc);
+
return ret;
 }
 
-- 
2.34.1