[U-Boot] [U-Boot, 1/2] mmc: sdhci: set to INT_DATA_END when there are data

Jaehoon Chung jh80.chung at samsung.com
Fri Aug 5 04:24:07 CEST 2016


On 07/12/2016 09:18 PM, Jaehoon Chung wrote:
> There is no data, it doesn't needs to wait for completing data transfer.
> (It seems that it can be removed.)
> Almost all timeout error is occured from stop command without data.
> After applied this patch, I hope that we don't need to increase timeout value anymore.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
> Acked-by: Lukasz Majewski <l.majewski at samsung.com>
> Tested-by: Lukasz Majewski <l.majewski at samsung.com>
> Acked-by: Minkyu Kang <mk7.kang at samsung.com>

Applied on u-boot-mmc. Thanks!

Best Regards,
Jaehoon Chung

> ---
>  drivers/mmc/sdhci.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index 604f18d..0a38a56 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -175,7 +175,8 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
>  		flags = SDHCI_CMD_RESP_LONG;
>  	else if (cmd->resp_type & MMC_RSP_BUSY) {
>  		flags = SDHCI_CMD_RESP_SHORT_BUSY;
> -		mask |= SDHCI_INT_DATA_END;
> +		if (data)
> +			mask |= SDHCI_INT_DATA_END;
>  	} else
>  		flags = SDHCI_CMD_RESP_SHORT;
>  
> 



More information about the U-Boot mailing list