]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Add check for IDMAC configuration
authorGirish K S <girish.shivananjappa@linaro.org>
Tue, 12 Jun 2012 09:58:22 +0000 (15:28 +0530)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:06 +0000 (00:02 -0400)
commit083d630a37715c3592b187b2aef2be4ed72a60e7
tree483b6ecc1a637eb58935d769c2ad42ba2057a37c
parent015c56457d290e12d657f699bdc6db3c8700e537
mmc: dw_mmc: Add check for IDMAC configuration

In the current dwmmc driver there is support for selecting IDMAC from
the menu config option. If the support for IDMAC is enabled in the menu
config and the hardware configuration register's DMA_INTERFACE field is
0, the driver will still try to do the DMA initialization.

The dw_mci_idmac_init function currently implemented returns only success
indicating that the DMA initialization is always successful. This patch
adds a check for existence of the DMA IP to allow the DMA initialization.

Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c