mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
mmc: Fix mmc_send_status()
The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Andy Fleming <afleming@freescale.com> Tested-by: Lei Wen <adrian.wenl@gmail.com>
This commit is contained in:
parent
58c583b6c2
commit
aaf3d41aa0
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ int mmc_send_status(struct mmc *mmc, int timeout)
|
|||
|
||||
cmd.cmdidx = MMC_CMD_SEND_STATUS;
|
||||
cmd.resp_type = MMC_RSP_R1;
|
||||
cmd.cmdarg = 0;
|
||||
if (!mmc_host_is_spi(mmc))
|
||||
cmd.cmdarg = mmc->rca << 16;
|
||||
cmd.flags = 0;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue