diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 22:10:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 22:10:41 -0400 |
commit | b7e97d22113bcaafff93774e3085f5b567eaba9c (patch) | |
tree | 1d3a13574310bde064fceb4408cf91a44c59c078 /drivers/dma/tegra20-apb-dma.c | |
parent | 943c2acea53784c45fb291498d04d5188fdea891 (diff) | |
parent | d0fc905429f7f5f3ad365466669c55b04b92c1e5 (diff) |
Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dma
Pull slave-dmaengine updates from Vinod Koul:
"This time we have Andy updates on dw_dmac which is attempting to make
this IP block available as PCI and platform device though not fully
complete this time.
We also have TI EDMA moving the dma driver to use dmaengine APIs, also
have a new driver for mmp-tdma, along with bunch of small updates.
Now for your excitement the merge is little unusual here, while
merging the auto merge on linux-next picks wrong choice for pl330
(drivers/dma/pl330.c) and this causes build failure. The correct
resolution is in linux-next. (DMA: PL330: Fix build error) I didn't
back merge your tree this time as you are better than me so no point
in doing that for me :)"
Fixed the pl330 conflict as in linux-next, along with trivial header
file conflicts due to changed includes.
* 'next' of git://git.infradead.org/users/vkoul/slave-dma: (29 commits)
dma: tegra: fix interrupt name issue with apb dma.
dw_dmac: fix a regression in dwc_prep_dma_memcpy
dw_dmac: introduce software emulation of LLP transfers
dw_dmac: autoconfigure data_width or get it via platform data
dw_dmac: autoconfigure block_size or use platform data
dw_dmac: get number of channels from hardware if possible
dw_dmac: fill optional encoded parameters in register structure
dw_dmac: mark dwc_dump_chan_regs as inline
DMA: PL330: return ENOMEM instead of 0 from pl330_alloc_chan_resources
DMA: PL330: Remove redundant runtime_suspend/resume functions
DMA: PL330: Remove controller clock enable/disable
dmaengine: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
DMA: PL330: Set the capability of pdm0 and pdm1 as DMA_PRIVATE
ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE
dma: tegra: use list_move_tail instead of list_del/list_add_tail
mxs/dma: Enlarge the CCW descriptor area to 4 pages
dw_dmac: utilize slave_id to pass request line
dmaengine: mmp_tdma: add dt support
dmaengine: mmp-pdma support
spi: davici - make davinci select edma
...
Diffstat (limited to 'drivers/dma/tegra20-apb-dma.c')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 45fbeed1c1a5..528c62dd4b00 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -169,6 +169,7 @@ typedef void (*dma_isr_handler)(struct tegra_dma_channel *tdc, | |||
169 | /* tegra_dma_channel: Channel specific information */ | 169 | /* tegra_dma_channel: Channel specific information */ |
170 | struct tegra_dma_channel { | 170 | struct tegra_dma_channel { |
171 | struct dma_chan dma_chan; | 171 | struct dma_chan dma_chan; |
172 | char name[30]; | ||
172 | bool config_init; | 173 | bool config_init; |
173 | int id; | 174 | int id; |
174 | int irq; | 175 | int irq; |
@@ -475,8 +476,7 @@ static void tegra_dma_abort_all(struct tegra_dma_channel *tdc) | |||
475 | while (!list_empty(&tdc->pending_sg_req)) { | 476 | while (!list_empty(&tdc->pending_sg_req)) { |
476 | sgreq = list_first_entry(&tdc->pending_sg_req, | 477 | sgreq = list_first_entry(&tdc->pending_sg_req, |
477 | typeof(*sgreq), node); | 478 | typeof(*sgreq), node); |
478 | list_del(&sgreq->node); | 479 | list_move_tail(&sgreq->node, &tdc->free_sg_req); |
479 | list_add_tail(&sgreq->node, &tdc->free_sg_req); | ||
480 | if (sgreq->last_sg) { | 480 | if (sgreq->last_sg) { |
481 | dma_desc = sgreq->dma_desc; | 481 | dma_desc = sgreq->dma_desc; |
482 | dma_desc->dma_status = DMA_ERROR; | 482 | dma_desc->dma_status = DMA_ERROR; |
@@ -570,8 +570,7 @@ static void handle_cont_sngl_cycle_dma_done(struct tegra_dma_channel *tdc, | |||
570 | 570 | ||
571 | /* If not last req then put at end of pending list */ | 571 | /* If not last req then put at end of pending list */ |
572 | if (!list_is_last(&sgreq->node, &tdc->pending_sg_req)) { | 572 | if (!list_is_last(&sgreq->node, &tdc->pending_sg_req)) { |
573 | list_del(&sgreq->node); | 573 | list_move_tail(&sgreq->node, &tdc->pending_sg_req); |
574 | list_add_tail(&sgreq->node, &tdc->pending_sg_req); | ||
575 | sgreq->configured = false; | 574 | sgreq->configured = false; |
576 | st = handle_continuous_head_request(tdc, sgreq, to_terminate); | 575 | st = handle_continuous_head_request(tdc, sgreq, to_terminate); |
577 | if (!st) | 576 | if (!st) |
@@ -1284,7 +1283,6 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev) | |||
1284 | INIT_LIST_HEAD(&tdma->dma_dev.channels); | 1283 | INIT_LIST_HEAD(&tdma->dma_dev.channels); |
1285 | for (i = 0; i < cdata->nr_channels; i++) { | 1284 | for (i = 0; i < cdata->nr_channels; i++) { |
1286 | struct tegra_dma_channel *tdc = &tdma->channels[i]; | 1285 | struct tegra_dma_channel *tdc = &tdma->channels[i]; |
1287 | char irq_name[30]; | ||
1288 | 1286 | ||
1289 | tdc->chan_base_offset = TEGRA_APBDMA_CHANNEL_BASE_ADD_OFFSET + | 1287 | tdc->chan_base_offset = TEGRA_APBDMA_CHANNEL_BASE_ADD_OFFSET + |
1290 | i * TEGRA_APBDMA_CHANNEL_REGISTER_SIZE; | 1288 | i * TEGRA_APBDMA_CHANNEL_REGISTER_SIZE; |
@@ -1296,9 +1294,9 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev) | |||
1296 | goto err_irq; | 1294 | goto err_irq; |
1297 | } | 1295 | } |
1298 | tdc->irq = res->start; | 1296 | tdc->irq = res->start; |
1299 | snprintf(irq_name, sizeof(irq_name), "apbdma.%d", i); | 1297 | snprintf(tdc->name, sizeof(tdc->name), "apbdma.%d", i); |
1300 | ret = devm_request_irq(&pdev->dev, tdc->irq, | 1298 | ret = devm_request_irq(&pdev->dev, tdc->irq, |
1301 | tegra_dma_isr, 0, irq_name, tdc); | 1299 | tegra_dma_isr, 0, tdc->name, tdc); |
1302 | if (ret) { | 1300 | if (ret) { |
1303 | dev_err(&pdev->dev, | 1301 | dev_err(&pdev->dev, |
1304 | "request_irq failed with err %d channel %d\n", | 1302 | "request_irq failed with err %d channel %d\n", |