From a037c5f8a54879af3c9e39bc8f6620219257511c Mon Sep 17 00:00:00 2001 From: Subhash Jadavani Date: Wed, 11 May 2016 16:35:47 -0700 Subject: [PATCH] mmc: sdhci: Replace SDHCI_USE_ADMA_64BIT flag SDHCI_USE_ADMA_64BIT flag was being used by msm-3.18 kernel but now that upstream sdhci driver has introduced support for 64-bit ADMA, it defined new flag SDHCI_USE_64_BIT_DMA. Hence replace all the SDHCI_USE_ADMA_64BIT references with SDHCI_USE_64_BIT_DMA flag. Change-Id: I6a1e426c156d4ddb92bba00b5ec0cfb156d9550b Signed-off-by: Subhash Jadavani --- drivers/mmc/host/sdhci.c | 6 +++--- drivers/mmc/host/sdhci.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 572555876643..a25575f87b7e 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1518,7 +1518,7 @@ static void sdhci_notify_halt(struct mmc_host *mmc, bool halt) pr_debug("%s: halt notification was sent, halt=%d\n", mmc_hostname(mmc), halt); - if (host->flags & SDHCI_USE_ADMA_64BIT) { + if (host->flags & SDHCI_USE_64_BIT_DMA) { if (halt) host->adma_desc_line_sz = 16; else @@ -4173,7 +4173,7 @@ int sdhci_add_host(struct sdhci_host *host) } if (mmc->caps2 & MMC_CAP2_CMD_QUEUE) { - bool dma64 = (host->flags & SDHCI_USE_ADMA_64BIT) ? + bool dma64 = (host->flags & SDHCI_USE_64_BIT_DMA) ? true : false; ret = sdhci_cmdq_init(host, mmc, dma64); if (ret) @@ -4186,7 +4186,7 @@ int sdhci_add_host(struct sdhci_host *host) pr_info("%s: SDHCI controller on %s [%s] using %s in %s mode\n", mmc_hostname(mmc), host->hw_name, dev_name(mmc_dev(mmc)), (host->flags & SDHCI_USE_ADMA) ? - ((host->flags & SDHCI_USE_ADMA_64BIT) ? + ((host->flags & SDHCI_USE_64_BIT_DMA) ? "64-bit ADMA" : "32-bit ADMA") : ((host->flags & SDHCI_USE_SDMA) ? "DMA" : "PIO"), ((mmc->caps2 & MMC_CAP2_CMD_QUEUE) && !ret) ? diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 280eafd36ec9..fab63762623b 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -531,7 +531,6 @@ struct sdhci_host { #define SDHCI_SDIO_IRQ_ENABLED (1<<9) /* SDIO irq enabled */ #define SDHCI_SDR104_NEEDS_TUNING (1<<10) /* SDR104/HS200 needs tuning */ #define SDHCI_USE_64_BIT_DMA (1<<12) /* Use 64-bit DMA */ -#define SDHCI_USE_ADMA_64BIT (1<<12) /* Host is 64-bit ADMA capable */ #define SDHCI_HS400_TUNING (1<<13) /* Tuning for HS400 */ #define SDHCI_HOST_IRQ_STATUS (1<<14) /* host->irq status */