[U-Boot] [PATCH] mmc: sdhci: add timeout setting for response busy command

Pantelis Antoniou panto at antoniou-consulting.com
Tue May 5 11:34:56 CEST 2015


Hi Rob,

> On Mar 24, 2015, at 00:57 , Rob Herring <robh at kernel.org> wrote:
> 
> From: Kevin Liu <kliu5 at marvell.com>
> 
> Timeout interrupt also work for response busy command(R1b) like
> cmd38/cmd6. So need to set it accordingly. Current code only
> set timeout for data command.
> 
> Signed-off-by: Kevin Liu <kliu5 at marvell.com>
> Signed-off-by: Rob Herring <robh at kernel.org>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> ---
> drivers/mmc/sdhci.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index 78e958e..8faeca3 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -213,6 +213,8 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
> 				SDHCI_BLOCK_SIZE);
> 		sdhci_writew(host, data->blocks, SDHCI_BLOCK_COUNT);
> 		sdhci_writew(host, mode, SDHCI_TRANSFER_MODE);
> +	} else if (cmd->resp_type & MMC_RSP_BUSY) {
> +		sdhci_writeb(host, 0xe, SDHCI_TIMEOUT_CONTROL);
> 	}
> 
> 	sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT);
> -- 
> 2.1.0
> 

Thanks, Applied.

— Pantelis



More information about the U-Boot mailing list