On 6/10/26 11:44, Bernhard Beschow wrote:
The next patch offers to skip the s->data bounce buffer for CMD18 and CMD25. Prepare for that by adding a buffer parameter.Rather than introducing two new wrapper functions, as in the inspiring commit, the additional argument is added at all call sites. This reduces the number of helper functions and matches existing code where multiple sd->* arguments are passed to sd_blk_{read,write}. This patch is inspired by: https://lore.kernel.org/qemu-devel/[email protected]/ Inspired-by: Christian Speich <[email protected]> Signed-off-by: Bernhard Beschow <[email protected]> --- hw/sd/sd.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
