]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Prepare mmc_send_cxd_data() to be re-used for additional cmds
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 May 2021 16:12:17 +0000 (18:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 May 2021 13:12:28 +0000 (15:12 +0200)
commitb9452a88a59643a6c7a7ec685441914d69d5fc08
treeeb981dcbe39ee3961974809bc48e299736071f82
parent25c193d3b483cbd038a794f7c978f9e3fbe53989
mmc: core: Prepare mmc_send_cxd_data() to be re-used for additional cmds

The function mmc_send_cxd_data() sends a data read command of ADTC type and
prepares to receive an R1 response. To make it even more re-usable, let's
extend it with another in-parameter for the command argument. While at it,
let's also rename the function to mmc_send_adtc_data() as it better
describes its purpose.

Note that, this change doesn't add any new users of the function. Instead
that is done from subsequent changes.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20210504161222.101536-7-ulf.hansson@linaro.org
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h