All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Cc: sjg@chromium.org, peng.fan@nxp.com, a-govindraju@ti.com,
	Jaehoon Chung <jh80.chung@samsung.com>
Subject: [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition
Date: Fri, 24 Sep 2021 09:23:34 +0900	[thread overview]
Message-ID: <20210924002334.11026-1-jh80.chung@samsung.com> (raw)
In-Reply-To: CGME20210924002311epcas1p435670037dccad68a96eb882e30df7615@epcas1p4.samsung.com

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


       reply	other threads:[~2021-09-24  0:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20210924002311epcas1p435670037dccad68a96eb882e30df7615@epcas1p4.samsung.com>
2021-09-24  0:23 ` Jaehoon Chung [this message]
2021-09-24  2:37   ` [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition Peng Fan (OSS)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210924002334.11026-1-jh80.chung@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=a-govindraju@ti.com \
    --cc=peng.fan@nxp.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.