Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: initialize tx_list in dma_async_tx_descriptor_init

Centralize this common initialization (and one case where ipu_idmac is
duplicating ->chan initialization).

Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+1 -7
+1
drivers/dma/dmaengine.c
··· 920 920 { 921 921 tx->chan = chan; 922 922 spin_lock_init(&tx->lock); 923 + INIT_LIST_HEAD(&tx->tx_list); 923 924 } 924 925 EXPORT_SYMBOL(dma_async_tx_descriptor_init); 925 926
-1
drivers/dma/dw_dmac.c
··· 826 826 dma_async_tx_descriptor_init(&desc->txd, chan); 827 827 desc->txd.tx_submit = dwc_tx_submit; 828 828 desc->txd.flags = DMA_CTRL_ACK; 829 - INIT_LIST_HEAD(&desc->txd.tx_list); 830 829 desc->txd.phys = dma_map_single(chan2parent(chan), &desc->lli, 831 830 sizeof(desc->lli), DMA_TO_DEVICE); 832 831 dwc_desc_put(dwc, desc);
-1
drivers/dma/fsldma.c
··· 354 354 dma_async_tx_descriptor_init(&desc_sw->async_tx, 355 355 &fsl_chan->common); 356 356 desc_sw->async_tx.tx_submit = fsl_dma_tx_submit; 357 - INIT_LIST_HEAD(&desc_sw->async_tx.tx_list); 358 357 desc_sw->async_tx.phys = pdesc; 359 358 } 360 359
-1
drivers/dma/ioat_dma.c
··· 693 693 desc_sw->async_tx.tx_submit = ioat2_tx_submit; 694 694 break; 695 695 } 696 - INIT_LIST_HEAD(&desc_sw->async_tx.tx_list); 697 696 698 697 desc_sw->hw = desc; 699 698 desc_sw->async_tx.phys = phys;
-1
drivers/dma/iop-adma.c
··· 498 498 slot->async_tx.tx_submit = iop_adma_tx_submit; 499 499 INIT_LIST_HEAD(&slot->chain_node); 500 500 INIT_LIST_HEAD(&slot->slot_node); 501 - INIT_LIST_HEAD(&slot->async_tx.tx_list); 502 501 hw_desc = (char *) iop_chan->device->dma_desc_pool; 503 502 slot->async_tx.phys = 504 503 (dma_addr_t) &hw_desc[idx * IOP_ADMA_SLOT_SIZE];
-2
drivers/dma/ipu/ipu_idmac.c
··· 983 983 memset(txd, 0, sizeof(*txd)); 984 984 dma_async_tx_descriptor_init(txd, &ichan->dma_chan); 985 985 txd->tx_submit = idmac_tx_submit; 986 - txd->chan = &ichan->dma_chan; 987 - INIT_LIST_HEAD(&txd->tx_list); 988 986 989 987 list_add(&desc->list, &ichan->free_list); 990 988
-1
drivers/dma/mv_xor.c
··· 632 632 slot->async_tx.tx_submit = mv_xor_tx_submit; 633 633 INIT_LIST_HEAD(&slot->chain_node); 634 634 INIT_LIST_HEAD(&slot->slot_node); 635 - INIT_LIST_HEAD(&slot->async_tx.tx_list); 636 635 hw_desc = (char *) mv_chan->device->dma_desc_pool; 637 636 slot->async_tx.phys = 638 637 (dma_addr_t) &hw_desc[idx * MV_XOR_SLOT_SIZE];