Re: [PATCH 07/22] hw/sd: ssi-sd: Suffix a data block with CRC16

2021-01-13 Thread Alistair Francis
On Thu, Dec 31, 2020 at 3:38 AM Bin Meng wrote: > > From: Bin Meng > > Per the SD spec, a valid data block is suffixed with a 16-bit CRC > generated by the standard CCITT polynomial x16+x12+x5+1. This part > is currently missing in the ssi-sd state machine. Without it, all > data block transfer f

[PATCH 07/22] hw/sd: ssi-sd: Suffix a data block with CRC16

2020-12-31 Thread Bin Meng
From: Bin Meng Per the SD spec, a valid data block is suffixed with a 16-bit CRC generated by the standard CCITT polynomial x16+x12+x5+1. This part is currently missing in the ssi-sd state machine. Without it, all data block transfer fails in guest software because the expected CRC16 is missing o