Re: [PATCH RFT 4/4] mmc: renesas_sdhi: support manual calibration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -403,13 +492,20 @@ static void renesas_sdhi_reset_hs400_mode(struct tmio_mmc_host *host,
>  			 SH_MOBILE_SDHI_SCC_TMPPORT2_HS400OSEL) &
>  			sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_TMPPORT2));
>  
> +	if (priv->quirks->manual_calibration)
> +		renesas_sdhi_adjust_hs400_mode_disable(host);
> +
>  	sd_ctrl_write16(host, CTL_SD_CARD_CLK_CTL, CLK_CTL_SCLKEN |
>  			sd_ctrl_read16(host, CTL_SD_CARD_CLK_CTL));
>  }
>  
>  static void renesas_sdhi_prepare_hs400_tuning(struct tmio_mmc_host *host)
>  {
> -	renesas_sdhi_reset_hs400_mode(host, host_to_priv(host));
> +	struct renesas_sdhi *priv = host_to_priv(host);
> +
> +	renesas_sdhi_reset_hs400_mode(host, priv);
> +	if (priv->quirks->manual_calibration)
> +		priv->needs_adjust_hs400 = true;

I need to check for a valid 'quirks' here first!

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux