• yangbo lu's avatar
    mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version · 1ef5e49e
    yangbo lu authored
    A previous patch had removed esdhc_of_platform_init() by mistake.
    static void esdhc_of_platform_init(struct sdhci_host *host)
    {
    	u32 vvn;
    
    	vvn = in_be32(host->ioaddr + SDHCI_SLOT_INT_STATUS);
    	vvn = (vvn & SDHCI_VENDOR_VER_MASK) >> SDHCI_VENDOR_VER_SHIFT;
    	if (vvn == VENDOR_V_22)
    		host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
    
    	if (vvn > VENDOR_V_22)
    		host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ;
    }
    
    This patch is used to fix it by add/remove some quirks according to
    verdor version in probe.
    Signed-off-by: default avatarYangbo Lu <yangbo.lu@freescale.com>
    Fixes: f4932cfd ("mmc: sdhci-of-esdhc: support both BE and LE host controller")
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    1ef5e49e
sdhci-of-esdhc.c 16.9 KB