From: Bin Meng Date: Thu, 28 Jan 2021 06:30:29 +0000 (+0800) Subject: hw/sd: sd: Allow single/multiple block write for SPI mode X-Git-Tag: v6.0.0-rc0~73^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eedb7f249cabfb03ff778ed2330710fc63a1172a;p=thirdparty%2Fqemu.git hw/sd: sd: Allow single/multiple block write for SPI mode At present the single/multiple block write in SPI mode is blocked by sd_normal_command(). Remove the limitation. Signed-off-by: Bin Meng Tested-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210128063035.15674-4-bmeng.cn@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/hw/sd/sd.c b/hw/sd/sd.c index a85a821abbe..5de9e0a6c20 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1230,9 +1230,6 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req) case 25: /* CMD25: WRITE_MULTIPLE_BLOCK */ switch (sd->state) { case sd_transfer_state: - /* Writing in SPI mode not implemented. */ - if (sd->spi) - break; if (addr + sd->blk_len > sd->size) { sd->card_status |= ADDRESS_ERROR;