mmc: rpmb: fix response type of CMD25
authorAkio Hirayama <hirayama.akio@socionext.com>
Fri, 28 Jun 2019 12:16:25 +0000 (21:16 +0900)
committerPeng Fan <peng.fan@nxp.com>
Mon, 15 Jul 2019 02:16:49 +0000 (10:16 +0800)
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

index 908f19208955b966c27186d7f100038598b60a92..33371fe562e1124e46215104cca0d9092b353ce5 100644 (file)
@@ -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,