Files
linux/drivers/mmc/host
yangbo lu 0fd49331f9 mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version
commit 1ef5e49e46 upstream.

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: Yangbo Lu <yangbo.lu@freescale.com>
Fixes: f4932cfd22 ("mmc: sdhci-of-esdhc: support both BE and LE host controller")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-31 12:06:09 +01:00
..
2012-11-28 12:28:18 -08:00
2009-03-24 21:30:03 +01:00
2013-08-24 23:45:22 -04:00
2016-10-07 15:23:41 +02:00
2014-09-24 10:13:09 +02:00
2015-06-01 09:06:48 +02:00
2015-01-19 09:56:07 +01:00
2017-03-30 09:35:17 +02:00
2015-10-26 15:59:53 +01:00
2007-07-26 01:53:31 +02:00
2015-03-23 14:13:49 +01:00