mmc: core: Drop open coding in mmc_sd_switch()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 May 2021 16:12:18 +0000 (18:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:36 +0000 (13:57 +0200)
commit41e84fe1647e0d6ec309882bc247667e304c351f
tree22de0c6b545bb1cca81500a79accade08f273e5a
parentcec18ad93e35a219d2277dbbdbfedb4f83a7a220
mmc: core: Drop open coding in mmc_sd_switch()

The SD_SWITCH (CMD6) is an ADTC type of command with an R1 response, which
can be sent by using the mmc_send_adtc_data(). Let's do that and drop the
open coding in mmc_sd_switch().

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-8-ulf.hansson@linaro.org
drivers/mmc/core/sd_ops.c