mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
dma: edma: Remove limits on number of slots
With this series, this check is no longer required and we shouldn't need to reject drivers DMA'ing more than the MAX number of slots. Signed-off-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
b267b3bc1e
commit
5622ff1a4d
@ -287,12 +287,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (sg_len > MAX_NR_SG) {
|
||||
dev_err(dev, "Exceeded max SG segments %d > %d\n",
|
||||
sg_len, MAX_NR_SG);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
edesc = kzalloc(sizeof(*edesc) + sg_len *
|
||||
sizeof(edesc->pset[0]), GFP_ATOMIC);
|
||||
if (!edesc) {
|
||||
|
Loading…
Reference in New Issue
Block a user