]> asedeno.scripts.mit.edu Git - linux.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)
commitea09ea51ddb9c5026e3f2090598049302c194427
tree01314c2cab163f8b6602836c9635937bbac20893
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
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