diff options
author | Vinod Koul <vinod.koul@linux.intel.com> | 2012-03-13 02:28:12 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-03-13 02:28:12 -0400 |
commit | 949ff5b8d46b5e3435d21b2651ce3a2599208d44 (patch) | |
tree | c8fac55a7ae33271acb1fc12f5399e5494b97b47 /drivers/dma | |
parent | 8867bd508f88eae8b9c54394f17422f49e387b26 (diff) |
dmaengine: fix for cookie changes and merge
Fixed trivial issues in drivers:
drivers/dma/imx-sdma.c
drivers/dma/intel_mid_dma.c
drivers/dma/ioat/dma_v3.c
drivers/dma/iop-adma.c
drivers/dma/sirf-dma.c
drivers/dma/timb_dma.c
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 1 | ||||
-rw-r--r-- | drivers/dma/intel_mid_dma.c | 1 | ||||
-rw-r--r-- | drivers/dma/ioat/dma_v3.c | 1 | ||||
-rw-r--r-- | drivers/dma/iop-adma.c | 1 | ||||
-rw-r--r-- | drivers/dma/sirf-dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/timb_dma.c | 6 |
6 files changed, 7 insertions, 5 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ccfc7c425c52..81f9d57ec70f 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1127,6 +1127,7 @@ static void sdma_issue_pending(struct dma_chan *chan) | |||
1127 | struct sdma_engine *sdma = sdmac->sdma; | 1127 | struct sdma_engine *sdma = sdmac->sdma; |
1128 | 1128 | ||
1129 | if (sdmac->status == DMA_IN_PROGRESS) | 1129 | if (sdmac->status == DMA_IN_PROGRESS) |
1130 | sdma_enable_channel(sdma, sdmac->channel); | ||
1130 | } | 1131 | } |
1131 | 1132 | ||
1132 | #define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 34 | 1133 | #define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 34 |
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c index d599d96a57b6..2449812f5464 100644 --- a/drivers/dma/intel_mid_dma.c +++ b/drivers/dma/intel_mid_dma.c | |||
@@ -477,6 +477,7 @@ static enum dma_status intel_mid_dma_tx_status(struct dma_chan *chan, | |||
477 | dma_cookie_t cookie, | 477 | dma_cookie_t cookie, |
478 | struct dma_tx_state *txstate) | 478 | struct dma_tx_state *txstate) |
479 | { | 479 | { |
480 | struct intel_mid_dma_chan *midc = to_intel_mid_dma_chan(chan); | ||
480 | enum dma_status ret; | 481 | enum dma_status ret; |
481 | 482 | ||
482 | ret = dma_cookie_status(chan, cookie, txstate); | 483 | ret = dma_cookie_status(chan, cookie, txstate); |
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c index 145eda241dee..2c4476c0e405 100644 --- a/drivers/dma/ioat/dma_v3.c +++ b/drivers/dma/ioat/dma_v3.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <linux/dmaengine.h> | 61 | #include <linux/dmaengine.h> |
62 | #include <linux/dma-mapping.h> | 62 | #include <linux/dma-mapping.h> |
63 | #include <linux/prefetch.h> | 63 | #include <linux/prefetch.h> |
64 | #include "../dmaengine.h" | ||
64 | #include "registers.h" | 65 | #include "registers.h" |
65 | #include "hw.h" | 66 | #include "hw.h" |
66 | #include "dma.h" | 67 | #include "dma.h" |
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index 1f3a703ed0e0..4499f88789bc 100644 --- a/drivers/dma/iop-adma.c +++ b/drivers/dma/iop-adma.c | |||
@@ -894,6 +894,7 @@ static enum dma_status iop_adma_status(struct dma_chan *chan, | |||
894 | struct dma_tx_state *txstate) | 894 | struct dma_tx_state *txstate) |
895 | { | 895 | { |
896 | struct iop_adma_chan *iop_chan = to_iop_adma_chan(chan); | 896 | struct iop_adma_chan *iop_chan = to_iop_adma_chan(chan); |
897 | int ret; | ||
897 | 898 | ||
898 | ret = dma_cookie_status(chan, cookie, txstate); | 899 | ret = dma_cookie_status(chan, cookie, txstate); |
899 | if (ret == DMA_SUCCESS) | 900 | if (ret == DMA_SUCCESS) |
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index a2cde8585239..45ba352fb871 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include <linux/of_platform.h> | 18 | #include <linux/of_platform.h> |
19 | #include <linux/sirfsoc_dma.h> | 19 | #include <linux/sirfsoc_dma.h> |
20 | 20 | ||
21 | #include "dmaengine.h" | ||
22 | |||
21 | #define SIRFSOC_DMA_DESCRIPTORS 16 | 23 | #define SIRFSOC_DMA_DESCRIPTORS 16 |
22 | #define SIRFSOC_DMA_CHANNELS 16 | 24 | #define SIRFSOC_DMA_CHANNELS 16 |
23 | 25 | ||
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 7805996661b8..d408c2206023 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -510,17 +510,13 @@ static void td_free_chan_resources(struct dma_chan *chan) | |||
510 | static enum dma_status td_tx_status(struct dma_chan *chan, dma_cookie_t cookie, | 510 | static enum dma_status td_tx_status(struct dma_chan *chan, dma_cookie_t cookie, |
511 | struct dma_tx_state *txstate) | 511 | struct dma_tx_state *txstate) |
512 | { | 512 | { |
513 | struct timb_dma_chan *td_chan = | ||
514 | container_of(chan, struct timb_dma_chan, chan); | ||
515 | enum dma_status ret; | 513 | enum dma_status ret; |
516 | 514 | ||
517 | dev_dbg(chan2dev(chan), "%s: Entry\n", __func__); | 515 | dev_dbg(chan2dev(chan), "%s: Entry\n", __func__); |
518 | 516 | ||
519 | ret = dma_cookie_status(chan, cookie, txstate); | 517 | ret = dma_cookie_status(chan, cookie, txstate); |
520 | 518 | ||
521 | dev_dbg(chan2dev(chan), | 519 | dev_dbg(chan2dev(chan), "%s: exit, ret: %d\n", __func__, ret); |
522 | "%s: exit, ret: %d, last_complete: %d, last_used: %d\n", | ||
523 | __func__, ret, last_complete, last_used); | ||
524 | 520 | ||
525 | return ret; | 521 | return ret; |
526 | } | 522 | } |