On Tue, Sep 13, 2016 at 12:56:15PM +0200, Simon Horman wrote:
> Add tuning support for use with SDR104 mode
> This includes adding support for the sampling clock controller (SCC).
> 
> Based on work by Ai Kyuse.
> 
> Cc: Ai Kyuse <ai.kyuse...@renesas.com>
> Signed-off-by: Simon Horman <horms+rene...@verge.net.au>

...

> Signed-off-by: Simon Horman <horms+rene...@verge.net.au>
> ---
>  drivers/mmc/host/sh_mobile_sdhi.c | 265 
> +++++++++++++++++++++++++++++++++++++-
>  1 file changed, 264 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/host/sh_mobile_sdhi.c 
> b/drivers/mmc/host/sh_mobile_sdhi.c
> index 49edff7fee49..32d3e01e0840 100644
> --- a/drivers/mmc/host/sh_mobile_sdhi.c
> +++ b/drivers/mmc/host/sh_mobile_sdhi.c


...

> +static void sh_mobile_sdhi_hw_reset(struct tmio_mmc_host *host)
> +{
> +     struct sh_mobile_sdhi *priv;
> +
> +     if (host->mmc->caps & MMC_CAP_UHS_SDR104)
> +             return;

The logic above is inverted, it should be:

        if (!(host->mmc->caps & MMC_CAP_UHS_SDR104))
                return;

An observable side effect of the above is that on the r8a7796/Salvator-X
a card is not detected after being ejected and re-inserted.

Reply via email to