Skip to contentSkip to conversation

mmc: mmci: Add qcom dml support to the driver.

RFC PATCH Prakash Burla 1 participant 1 message Jul 17, 2014 1 message not in the archive MMC, SD and SDIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Prakash Burla

author Tested-by
#1 lore raw

This driver is tested on IFC6410.

Quoted 45 lines

From: Srinivas Kandagatla <[email protected]>
Date: Fri, Jul 11, 2014 at 5:18 PM
Subject: [RFC PATCH] mmc: mmci: Add qcom dml support to the driver.
To: [email protected]
Cc: Linus Walleij <[email protected]>, Chris Ball <[email protected]>, Ulf Hansson <[email protected]>, Russell King <[email protected]>, [email protected], Srinivas Kandagatla <[email protected]>

On Qualcomm APQ8064 SOCs, SD card controller has an additional glue called DML (Data Mover Local/Lite) to assist dma transfers. This hardware needs to be setup before any dma transfer is requested. DML itself is not a DMA engine, its just a gule between the SD card controller and dma controller.

Most of this code has been ported from qualcomm's 3.4 kernel.

This patch adds the code necessary to intialize the hardware and setup before doing any dma transfers.

---

Hi All,

DMA support for Qualcomm SD card controller is missing in my last patchset, the reason to post this patch separately is because of the unusual glue logic between card controller and the dma-controller. This glue logic is called DML (Data mover local/lite).

DML assists dma transfers between sd card controller and dma-controller. As this DML gule is part of SD controller IP and needs configuring for every transfer, So I thought of keeping it close to driver in drivers/mmc/ directory is more usefull, than trying to find a infrastructure to fit it. DML itself is not a DMA controller but an logic present on SD card controller and it resides in SD card controller IP.

I would like to get your opnion on overall correctness of the approch.

Thanks in advance.
srini

Quoted 9 lines
 drivers/mmc/host/Kconfig    |  11 +++
 drivers/mmc/host/Makefile   |   1 +
 drivers/mmc/host/mmci.c     |  19 ++++-
 drivers/mmc/host/qcom_dml.c | 171 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/mmc/host/qcom_dml.h |  17 +++++
 5 files changed, 218 insertions(+), 1 deletion(-)
 create mode 100644 drivers/mmc/host/qcom_dml.c
 create mode 100644 drivers/mmc/host/qcom_dml.h

.
[SNIP]
.

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/