Skip to content

Commit 39a65a0

Browse files
lyakhcjb
authored andcommitted
mfd: sdhi: require the tmio-mmc driver to bounce unaligned buffers
The SDHI controller on SH-Mobile SoCs requires even buffer addresses, when used with DMA. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent eba4603 commit 39a65a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/mfd/sh_mobile_sdhi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
136136
priv->param_rx.slave_id = p->dma_slave_rx;
137137
priv->dma_priv.chan_priv_tx = &priv->param_tx;
138138
priv->dma_priv.chan_priv_rx = &priv->param_rx;
139+
priv->dma_priv.alignment_shift = 1; /* 2-byte alignment */
139140
mmc_data->dma = &priv->dma_priv;
140141
}
141142

0 commit comments

Comments
 (0)