]> git.karo-electronics.de Git - karo-tx-linux.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)
commit94c6cee91bebfc17596243b6a5f4fe910feec426
tree483b6ecc1a637eb58935d769c2ad42ba2057a37c
parentb650352dd3df36164e3427bff3f33bc06ac47642
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