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

2021-01-23 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

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

2021-01-24 Thread Philippe Mathieu-Daudé
On 1/23/21 11:39 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 fails in guest