diff mbox series

[U-Boot] mmc: rpmb: fix response type of CMD25

Message ID 20190628121625.11198-1-yamada.masahiro@socionext.com
State Accepted
Commit 24b1e0c7e2e3ac55fa431251b90d1521a42e3bf2
Delegated to: Peng Fan
Headers show
Series [U-Boot] mmc: rpmb: fix response type of CMD25 | expand

Commit Message

Masahiro Yamada June 28, 2019, 12:16 p.m. UTC
From: Akio Hirayama <hirayama.akio@socionext.com>

The response type of CMD25 is R1 instead of R1b.

Signed-off-by: Akio Hirayama <hirayama.akio@socionext.com>
[masahiro: add log ]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/mmc/rpmb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Peng Fan July 10, 2019, 6:07 a.m. UTC | #1
> Subject: [PATCH] mmc: rpmb: fix response type of CMD25
> 
> From: Akio Hirayama <hirayama.akio@socionext.com>
> 
> The response type of CMD25 is R1 instead of R1b.
> 
> Signed-off-by: Akio Hirayama <hirayama.akio@socionext.com>
> [masahiro: add log ]
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
> 
>  drivers/mmc/rpmb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index
> 908f19208955..33371fe562e1 100644
> --- a/drivers/mmc/rpmb.c
> +++ b/drivers/mmc/rpmb.c
> @@ -103,7 +103,7 @@ static int mmc_rpmb_request(struct mmc *mmc,
> const struct s_rpmb *s,
> 
>  	cmd.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK;
>  	cmd.cmdarg = 0;
> -	cmd.resp_type = MMC_RSP_R1b;
> +	cmd.resp_type = MMC_RSP_R1;
> 
>  	data.src = (const char *)s;
>  	data.blocks = 1;
> @@ -327,7 +327,7 @@ static int send_write_mult_block(struct mmc *mmc,
> const struct s_rpmb *frm,  {
>  	struct mmc_cmd cmd = {
>  		.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK,
> -		.resp_type = MMC_RSP_R1b,
> +		.resp_type = MMC_RSP_R1,
>  	};
>  	struct mmc_data data = {
>  		.src = (const void *)frm,

Applied to mmc master

Thanks,
Peng.

> --
> 2.17.1
diff mbox series

Patch

diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c
index 908f19208955..33371fe562e1 100644
--- a/drivers/mmc/rpmb.c
+++ b/drivers/mmc/rpmb.c
@@ -103,7 +103,7 @@  static int mmc_rpmb_request(struct mmc *mmc, const struct s_rpmb *s,
 
 	cmd.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK;
 	cmd.cmdarg = 0;
-	cmd.resp_type = MMC_RSP_R1b;
+	cmd.resp_type = MMC_RSP_R1;
 
 	data.src = (const char *)s;
 	data.blocks = 1;
@@ -327,7 +327,7 @@  static int send_write_mult_block(struct mmc *mmc, const struct s_rpmb *frm,
 {
 	struct mmc_cmd cmd = {
 		.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK,
-		.resp_type = MMC_RSP_R1b,
+		.resp_type = MMC_RSP_R1,
 	};
 	struct mmc_data data = {
 		.src = (const void *)frm,