mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
async_tx: allow architecture specific async_tx_find_channel implementations
The source and destination addresses are included to allow channel selection based on address alignment. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
This commit is contained in:
parent
d4c56f97ff
commit
47437b2c9a
5 changed files with 22 additions and 9 deletions
|
@ -361,13 +361,13 @@ static void __exit async_tx_exit(void)
|
|||
}
|
||||
|
||||
/**
|
||||
* async_tx_find_channel - find a channel to carry out the operation or let
|
||||
* __async_tx_find_channel - find a channel to carry out the operation or let
|
||||
* the transaction execute synchronously
|
||||
* @depend_tx: transaction dependency
|
||||
* @tx_type: transaction type
|
||||
*/
|
||||
struct dma_chan *
|
||||
async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx,
|
||||
__async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx,
|
||||
enum dma_transaction_type tx_type)
|
||||
{
|
||||
/* see if we can keep the chain on one channel */
|
||||
|
@ -383,7 +383,7 @@ async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx,
|
|||
} else
|
||||
return NULL;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(async_tx_find_channel);
|
||||
EXPORT_SYMBOL_GPL(__async_tx_find_channel);
|
||||
#else
|
||||
static int __init async_tx_init(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue