mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
dmaengine: xgene: convert tasklets to use new tasklet_setup() API
In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier <romain.perier@gmail.com> Signed-off-by: Allen Pais <allen.lkml@gmail.com> Link: https://lore.kernel.org/r/20200831103542.305571-32-allen.lkml@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
@@ -975,9 +975,9 @@ static enum dma_status xgene_dma_tx_status(struct dma_chan *dchan,
|
|||||||
return dma_cookie_status(dchan, cookie, txstate);
|
return dma_cookie_status(dchan, cookie, txstate);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xgene_dma_tasklet_cb(unsigned long data)
|
static void xgene_dma_tasklet_cb(struct tasklet_struct *t)
|
||||||
{
|
{
|
||||||
struct xgene_dma_chan *chan = (struct xgene_dma_chan *)data;
|
struct xgene_dma_chan *chan = from_tasklet(chan, t, tasklet);
|
||||||
|
|
||||||
/* Run all cleanup for descriptors which have been completed */
|
/* Run all cleanup for descriptors which have been completed */
|
||||||
xgene_dma_cleanup_descriptors(chan);
|
xgene_dma_cleanup_descriptors(chan);
|
||||||
@@ -1539,8 +1539,7 @@ static int xgene_dma_async_register(struct xgene_dma *pdma, int id)
|
|||||||
INIT_LIST_HEAD(&chan->ld_pending);
|
INIT_LIST_HEAD(&chan->ld_pending);
|
||||||
INIT_LIST_HEAD(&chan->ld_running);
|
INIT_LIST_HEAD(&chan->ld_running);
|
||||||
INIT_LIST_HEAD(&chan->ld_completed);
|
INIT_LIST_HEAD(&chan->ld_completed);
|
||||||
tasklet_init(&chan->tasklet, xgene_dma_tasklet_cb,
|
tasklet_setup(&chan->tasklet, xgene_dma_tasklet_cb);
|
||||||
(unsigned long)chan);
|
|
||||||
|
|
||||||
chan->pending = 0;
|
chan->pending = 0;
|
||||||
chan->desc_pool = NULL;
|
chan->desc_pool = NULL;
|
||||||
|
Reference in New Issue
Block a user