All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition
       [not found] <CGME20210924002311epcas1p435670037dccad68a96eb882e30df7615@epcas1p4.samsung.com>
@ 2021-09-24  0:23 ` Jaehoon Chung
  2021-09-24  2:37   ` Peng Fan (OSS)
  0 siblings, 1 reply; 2+ messages in thread
From: Jaehoon Chung @ 2021-09-24  0:23 UTC (permalink / raw)
  To: u-boot; +Cc: sjg, peng.fan, a-govindraju, Jaehoon Chung

It doesn't need to follow more sequence to do the hwparititioning,
because SD doesn't support hwpartitioning feature.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 cmd/mmc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cmd/mmc.c b/cmd/mmc.c
index f1e30d0cf64b..62c7e9129666 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -673,6 +673,11 @@ static int do_mmc_hwpartition(struct cmd_tbl *cmdtp, int flag,
 	if (!mmc)
 		return CMD_RET_FAILURE;
 
+	if (IS_SD(mmc)) {
+		puts("SD doesn't support partitioning\n");
+		return CMD_RET_FAILURE;
+	}
+
 	if (argc < 1)
 		return CMD_RET_USAGE;
 	i = 1;
-- 
2.29.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition
  2021-09-24  0:23 ` [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition Jaehoon Chung
@ 2021-09-24  2:37   ` Peng Fan (OSS)
  0 siblings, 0 replies; 2+ messages in thread
From: Peng Fan (OSS) @ 2021-09-24  2:37 UTC (permalink / raw)
  To: Jaehoon Chung, u-boot; +Cc: sjg, Peng Fan, a-govindraju


On 2021/9/24 8:23, Jaehoon Chung wrote:
> It doesn't need to follow more sequence to do the hwparititioning,
> because SD doesn't support hwpartitioning feature.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>   cmd/mmc.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/cmd/mmc.c b/cmd/mmc.c
> index f1e30d0cf64b..62c7e9129666 100644
> --- a/cmd/mmc.c
> +++ b/cmd/mmc.c
> @@ -673,6 +673,11 @@ static int do_mmc_hwpartition(struct cmd_tbl *cmdtp, int flag,
>   	if (!mmc)
>   		return CMD_RET_FAILURE;
>   
> +	if (IS_SD(mmc)) {
> +		puts("SD doesn't support partitioning\n");
> +		return CMD_RET_FAILURE;
> +	}
> +
>   	if (argc < 1)
>   		return CMD_RET_USAGE;
>   	i = 1;
> 

Reviewed-by: Peng Fan <peng.fan@nxp.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-24  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210924002311epcas1p435670037dccad68a96eb882e30df7615@epcas1p4.samsung.com>
2021-09-24  0:23 ` [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition Jaehoon Chung
2021-09-24  2:37   ` Peng Fan (OSS)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.