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 Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux