public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mmc: Fix mmc_send_status()
Date: Wed, 10 Aug 2011 09:09:53 +0200	[thread overview]
Message-ID: <201108100909.53946.marek.vasut@gmail.com> (raw)
In-Reply-To: <1312960113-2333-1-git-send-email-marek.vasut@gmail.com>

On Wednesday, August 10, 2011 09:08:33 AM Marek Vasut wrote:
> The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix
> it.

Missed Andy, adding to CC. Sorry Andy.

btw this fixes my CMD13 issue.
> 
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> ---
>  drivers/mmc/mmc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index cbd7567..c9ff023 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -115,7 +115,7 @@ int mmc_send_status(struct mmc *mmc, int timeout)
> 
>  	cmd.cmdidx = MMC_CMD_SEND_STATUS;
>  	cmd.resp_type = MMC_RSP_R1;
> -	cmd.cmdarg = 0;
> +	cmd.cmdarg = mmc->rca << 16;
>  	cmd.flags = 0;
> 
>  	do {

      reply	other threads:[~2011-08-10  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  7:08 [U-Boot] [PATCH] mmc: Fix mmc_send_status() Marek Vasut
2011-08-10  7:09 ` Marek Vasut [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108100909.53946.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox