On Mon, Jun 29, 2020 at 5:48 PM Pragnesh Patel <pragnesh.pa...@sifive.com> wrote: > > Send status command (CMD13) will send R1 response under SD mode > but R2 response under SPI mode. > > R2 response is 2 bytes long, so read 2 bytes for mmc SPI mode > > Signed-off-by: Pragnesh Patel <pragnesh.pa...@sifive.com> > --- > drivers/mmc/mmc_spi.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) >
Reviewed-by: Bin Meng <bin.m...@windriver.com> Tested-by: Bin Meng <bin.m...@windriver.com>