]> 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)
commitf4f26e5e61d58b9936f853afac59516b880089eb
tree01314c2cab163f8b6602836c9635937bbac20893
parent2018862bdad13479b663e0e9615d7c6fcaa89285
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