hw/sd: Use sdbus_read_data() instead of sdbus_read_byte() when possible
commit618e0be1bac7ffe794242b422f7a9767f2a8be79
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 14 Aug 2020 09:23:46 +0000 (14 11:23 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 21 Aug 2020 14:35:35 +0000 (21 16:35 +0200)
treee16ef3db024ddf1ff92e38b4fa0976a9114dde2c
parent6505a91a77d4efcc6d54b35851abcb137cdca30a
hw/sd: Use sdbus_read_data() instead of sdbus_read_byte() when possible

Use the recently added sdbus_read_data() to read multiple
bytes at once, instead of looping calling sdbus_read_byte().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200814092346.21825-8-f4bug@amsat.org>
hw/sd/allwinner-sdhost.c
hw/sd/milkymist-memcard.c
hw/sd/sdhci.c