From 6c67ea20ff3d8a0a31536854f9682a0947db69de Mon Sep 17 00:00:00 2001 From: yaowenrui Date: Mon, 1 Jul 2024 10:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E6=A0=B8=E4=BB=A3=E7=A0=81=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yaowenrui --- linux-5.10/hispark_taurus_patch/hispark_taurus.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux-5.10/hispark_taurus_patch/hispark_taurus.patch b/linux-5.10/hispark_taurus_patch/hispark_taurus.patch index d3f4cae..ee62455 100755 --- a/linux-5.10/hispark_taurus_patch/hispark_taurus.patch +++ b/linux-5.10/hispark_taurus_patch/hispark_taurus.patch @@ -25241,10 +25241,11 @@ diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 94caee49d..c69c59dcb 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c -@@ -538,17 +538,15 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, +@@ -537,18 +537,16 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, + return err; } - if (idata->rpmb) { +- if (idata->rpmb || prev_idata) { - sbc.opcode = MMC_SET_BLOCK_COUNT; - /* - * We don't do any blockcount validation because the max size @@ -25256,6 +25257,7 @@ index 94caee49d..c69c59dcb 100644 - sbc.arg = prev_idata->ic.arg; - sbc.flags = MMC_RSP_R1 | MMC_CMD_AC; - mrq.sbc = &sbc; ++ if (idata->rpmb) { + struct mmc_command mmc_cmd = {}; + mmc_cmd.opcode = MMC_SET_BLOCK_COUNT; + mmc_cmd.arg = data.blocks & 0x0000FFFF; -- Gitee