hw/sd: sd: Remove duplicated codes in single/multiple block read/write
commitcdf6701bcc71331f8d0744c7f4c3cb309c71d541
authorBin Meng <bin.meng@windriver.com>
Thu, 28 Jan 2021 06:30:28 +0000 (28 14:30 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 19 Feb 2021 23:17:09 +0000 (20 00:17 +0100)
tree494d6174e4fb659c70450d5992e4c863eb1b7ba6
parent1365d863a71803a8aac7922986c858ed4dedd826
hw/sd: sd: Remove duplicated codes in single/multiple block read/write

The single block read (CMD17) codes are the same as the multiple
block read (CMD18). Merge them into one. The same applies to single
block write (CMD24) and multiple block write (CMD25).

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210128063035.15674-3-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/sd.c