From patchwork Fri Jun 28 12:16:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1124162 X-Patchwork-Delegate: van.freenix@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="nerBBZCh"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45Zwk94yrxz9s7h for ; Fri, 28 Jun 2019 22:17:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9A61EC21DA2; Fri, 28 Jun 2019 12:17:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 38CA6C21C2F; Fri, 28 Jun 2019 12:16:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 257A1C21C2F; Fri, 28 Jun 2019 12:16:57 +0000 (UTC) Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by lists.denx.de (Postfix) with ESMTPS id 2B481C21C27 for ; Fri, 28 Jun 2019 12:16:55 +0000 (UTC) Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x5SCGcnT018189; Fri, 28 Jun 2019 21:16:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x5SCGcnT018189 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561724199; bh=INnCUupjw+KWOyVp8+pHgewbV2Zoapuwn35BOpboTQQ=; h=From:To:Cc:Subject:Date:From; b=nerBBZChWOxv4GESXwkLLeFz/1Fs7hEB58dnt1CemYd7qQCGOTUHpYB92dnuCsJW/ oDTRV+zH0CbZAA78T08f7T5p4BrG1BPxC5E8W78pcZcTpHFiQKKb6AXqJDowWG0zaY xNt+Fj0jUVc5QMYqrm3lzoQnv6AKTTQK0DDNSsBUh5iwD2+xRPcJzTxC7iZ7dqRGEV ZFcLnQ5y9TppeSv/BcL/1FVs7nnv95w5wRF9FoG9gmLNz99RSkB86DcdgO8jrkAls7 jg+YpUurka+Wxr6//Ph7OkTaZ0+Z0P6n5LGA2kcH1bsPzVL4xbrqlmOh10D+BwEbju oxw40CchnTJQA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 28 Jun 2019 21:16:25 +0900 Message-Id: <20190628121625.11198-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Cc: Akio Hirayama Subject: [U-Boot] [PATCH] mmc: rpmb: fix response type of CMD25 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Akio Hirayama The response type of CMD25 is R1 instead of R1b. Signed-off-by: Akio Hirayama [masahiro: add log ] Signed-off-by: Masahiro Yamada --- 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,