diff options
author | Jonas Jensen <jonas.jensen@gmail.com> | 2013-12-06 10:42:09 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-01-26 07:03:45 -0500 |
commit | af58652a3e6746c8ad498984c61c12a1941c9175 (patch) | |
tree | f5e5a930da160166e02133898e9ff3cf2b97d1bd /drivers/dma/virt-dma.h | |
parent | a85159fece07f4ff3e266da619af050928dceca1 (diff) |
dma: fix vchan_cookie_complete() debug print
vd->tx.cookie is set zero on dma_cookie_complete(),
save to local before printing it.
Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/virt-dma.h')
-rw-r--r-- | drivers/dma/virt-dma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/virt-dma.h b/drivers/dma/virt-dma.h index 85c19d63f9fb..181b95267866 100644 --- a/drivers/dma/virt-dma.h +++ b/drivers/dma/virt-dma.h | |||
@@ -84,10 +84,12 @@ static inline bool vchan_issue_pending(struct virt_dma_chan *vc) | |||
84 | static inline void vchan_cookie_complete(struct virt_dma_desc *vd) | 84 | static inline void vchan_cookie_complete(struct virt_dma_desc *vd) |
85 | { | 85 | { |
86 | struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); | 86 | struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); |
87 | dma_cookie_t cookie; | ||
87 | 88 | ||
89 | cookie = vd->tx.cookie; | ||
88 | dma_cookie_complete(&vd->tx); | 90 | dma_cookie_complete(&vd->tx); |
89 | dev_vdbg(vc->chan.device->dev, "txd %p[%x]: marked complete\n", | 91 | dev_vdbg(vc->chan.device->dev, "txd %p[%x]: marked complete\n", |
90 | vd, vd->tx.cookie); | 92 | vd, cookie); |
91 | list_add_tail(&vd->node, &vc->desc_completed); | 93 | list_add_tail(&vd->node, &vc->desc_completed); |
92 | 94 | ||
93 | tasklet_schedule(&vc->task); | 95 | tasklet_schedule(&vc->task); |