Skip to contentSkip to conversation

mmc: sdhi: enable .dma_rx_offset for platform prototype

PATCH New Magnus Damm 1 participant 1 message Jun 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/7 mmc: sdhi: enable .dma_rx_offset for platform prototype

From: Kuninori Morimoto <[email protected]>

.dma_rx_offset is caring only DT today.
THis patch cares it via platform

Not for upstream merge.

[[email protected]: Extracted from tarball, adjusted patch title to remove "Local" and added "Not for upstream merge" comment]

---

Changes since V1:
- None

 drivers/mmc/host/sh_mobile_sdhi.c  |    1 +
 include/linux/mmc/sh_mobile_sdhi.h |    1 +
 2 files changed, 2 insertions(+)
drivers/mmc/host/sh_mobile_sdhi.c +1 -0
index 91c6399..d65b3ca 100644
@@ -195,6 +195,7 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
 		mmc_data->capabilities |= p->tmio_caps;
 		mmc_data->capabilities2 |= p->tmio_caps2;
 		mmc_data->cd_gpio = p->cd_gpio;
+		dma_priv->dma_rx_offset = p->dma_rx_offset;
 
 		if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) {
 			/*
include/linux/mmc/sh_mobile_sdhi.h +1 -0
index 68927ae..5f11afc 100644
@@ -25,6 +25,7 @@ struct sh_mobile_sdhi_info {
 	unsigned long tmio_caps2;
 	u32 tmio_ocr_mask;	/* available MMC voltages */
 	unsigned int cd_gpio;
+	dma_addr_t dma_rx_offset;
 
 	/* callbacks for board specific setup code */
 	int (*init)(struct platform_device *pdev,
Signature · 1 line
1.7.9.5