[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register re
From: |
Alistair Francis |
Subject: |
Re: [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register regardless the CSD structure version |
Date: |
Wed, 31 Jan 2018 08:16:51 -0800 |
On Mon, Jan 22, 2018 at 7:30 PM, Philippe Mathieu-Daudé <address@hidden> wrote:
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Alistair
> ---
> hw/sd/sd.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/hw/sd/sd.c b/hw/sd/sd.c
> index 20764451f2..f6318c6fdb 100644
> --- a/hw/sd/sd.c
> +++ b/hw/sd/sd.c
> @@ -377,7 +377,6 @@ static void sd_reset_csd(SDState *sd, uint64_t size)
> sd->csd[13] = 0x20 | /* Max. write data block length */
> ((HWBLOCK_SHIFT << 6) & 0xc0);
> sd->csd[14] = 0x00; /* File format group */
> - sd->csd[15] = (sd_crc7(sd->csd, 15) << 1) | 1;
> } else { /* SDHC */
> size /= 512 * 1024;
> size -= 1;
> @@ -396,8 +395,8 @@ static void sd_reset_csd(SDState *sd, uint64_t size)
> sd->csd[12] = 0x0a;
> sd->csd[13] = 0x40;
> sd->csd[14] = 0x00;
> - sd->csd[15] = 0x00;
> }
> + sd->csd[15] = (sd_crc7(sd->csd, 15) << 1) | 1;
> }
>
> static void sd_reset_rca(SDState *sd)
> --
> 2.15.1
>
>
- [Qemu-devel] [PATCH v3 00/18] SDCard: bugfixes, support UHS-I (part 5), Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 01/18] sdcard: Don't always set the high capacity bit, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register regardless the CSD structure version, Philippe Mathieu-Daudé, 2018/01/22
- Re: [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register regardless the CSD structure version,
Alistair Francis <=
- [Qemu-devel] [PATCH v3 03/18] sdcard: fix the 'maximum data transfer rate' to 25MHz, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add few comments, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 05/18] sdcard: remove commands from unsupported old MMC specification, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 06/18] sdcard: simplify using the ldst API, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 07/18] sdcard: use the correct masked OCR in the R3 reply, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 08/18] sdcard: use the registerfields API for the CARD_STATUS register masks, Philippe Mathieu-Daudé, 2018/01/22