diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-12-04 13:44:41 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-11 01:25:58 -0500 |
commit | ddb4f0f0e05871c7ac540cc778993c06ff53b765 (patch) | |
tree | 6880d9690d296bd2cade679e46ccca8986deab83 /drivers | |
parent | 61f135b92f4758bc4d4767cd0a5d2da954e27f14 (diff) |
sh: DMA driver has to specify its alignment requirements
The SH DMA driver by default uses 32-byte transfers, in this mode buffers and
sizes have to be 32-byte aligned. Specifying this requirement also fixes Oopses
with dmatest.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/shdma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index b3b065c4e5c1..f5fae1258b54 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c | |||
@@ -677,6 +677,8 @@ static int __init sh_dmae_probe(struct platform_device *pdev) | |||
677 | shdev->common.device_is_tx_complete = sh_dmae_is_complete; | 677 | shdev->common.device_is_tx_complete = sh_dmae_is_complete; |
678 | shdev->common.device_issue_pending = sh_dmae_memcpy_issue_pending; | 678 | shdev->common.device_issue_pending = sh_dmae_memcpy_issue_pending; |
679 | shdev->common.dev = &pdev->dev; | 679 | shdev->common.dev = &pdev->dev; |
680 | /* Default transfer size of 32 bytes requires 32-byte alignment */ | ||
681 | shdev->common.copy_align = 5; | ||
680 | 682 | ||
681 | #if defined(CONFIG_CPU_SH4) | 683 | #if defined(CONFIG_CPU_SH4) |
682 | /* Non Mix IRQ mode SH7722/SH7730 etc... */ | 684 | /* Non Mix IRQ mode SH7722/SH7730 etc... */ |