Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mmc: core: SPI mode remove cmd7

SPI mode doesn't support cmd7, so remove it in mmc_sdio_alive() and
confirm if sdio is active by checking CCCR register value is available
or not.

Signed-off-by: Rex Chen <rex.chen_1@nxp.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250728082230.1037917-2-rex.chen_1@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Rex Chen and committed by
Ulf Hansson
fec40f44 0caebd16

+5 -1
+5 -1
drivers/mmc/core/sdio.c
··· 945 945 */ 946 946 static int mmc_sdio_alive(struct mmc_host *host) 947 947 { 948 - return mmc_select_card(host->card); 948 + if (!mmc_host_is_spi(host)) 949 + return mmc_select_card(host->card); 950 + else 951 + return mmc_io_rw_direct(host->card, 0, 0, SDIO_CCCR_CCCR, 0, 952 + NULL); 949 953 } 950 954 951 955 /*