]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: edma: Implement protection for invalid max_burst
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 3 Oct 2017 08:35:37 +0000 (11:35 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 12 Oct 2017 16:43:06 +0000 (22:13 +0530)
commit2bd9afc18330ddb057f7f3726673b2691a18b9ef
tree01314c2cab163f8b6602836c9635937bbac20893
parent384fde7ed224f283f11ef2a592b05d4a29492aa8
dmaengine: edma: Implement protection for invalid max_burst

the device's max_burst to 32767 (CIDX is 16bit signed value) so clients
can take this into consideration when setting up the transfer.

During slave transfer preparation check if the requested maxburst is valid.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c