]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 24 May 2021 13:12:29 +0000 (15:12 +0200)
commitd2355f548cd9ff6e9d99445c1d185c6efd57a169
treec536ffa93932d9857889710592cac9a60bd60db0
parentb9452a88a59643a6c7a7ec685441914d69d5fc08
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