Skip to content

Commit 9dbd1dd

Browse files
Yue HuUlf Hansson
authored andcommitted
mmc: core: Use host instead of card argument to mmc_spi_send_csd()
Since mmc_send_cxd_data() does not care card if opcode is MMC_SEND_CSD. Signed-off-by: Yue Hu <huyue2@yulong.com> Link: https://lore.kernel.org/r/20210201055507.542-1-zbestahu@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent fdb7ef5 commit 9dbd1dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/mmc/core/mmc_ops.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,
296296
return 0;
297297
}
298298

299-
static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd)
299+
static int mmc_spi_send_csd(struct mmc_host *host, u32 *csd)
300300
{
301301
int ret, i;
302302
__be32 *csd_tmp;
@@ -305,7 +305,7 @@ static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd)
305305
if (!csd_tmp)
306306
return -ENOMEM;
307307

308-
ret = mmc_send_cxd_data(card, card->host, MMC_SEND_CSD, csd_tmp, 16);
308+
ret = mmc_send_cxd_data(NULL, host, MMC_SEND_CSD, csd_tmp, 16);
309309
if (ret)
310310
goto err;
311311

@@ -320,7 +320,7 @@ static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd)
320320
int mmc_send_csd(struct mmc_card *card, u32 *csd)
321321
{
322322
if (mmc_host_is_spi(card->host))
323-
return mmc_spi_send_csd(card, csd);
323+
return mmc_spi_send_csd(card->host, csd);
324324

325325
return mmc_send_cxd_native(card->host, card->rca << 16, csd,
326326
MMC_SEND_CSD);

0 commit comments

Comments
 (0)