dmaengine: omap-dma: Implement protection for invalid max_burst
authorPeter Ujfalusi <[email protected]>
Tue, 3 Oct 2017 08:35:38 +0000 (11:35 +0300)
committerVinod Koul <[email protected]>
Thu, 12 Oct 2017 16:43:48 +0000 (22:13 +0530)
commit05ec62a106a3b358cdc6ac41025b320dc2dbcb3f
treedea8ab21088f8ff8dc08ff5a7920e4e5666d1460
parentea09ea51ddb9c5026e3f2090598049302c194427
dmaengine: omap-dma: Implement protection for invalid max_burst

the device's max_burst to 16777215 (EN is 24bit unsigned 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 <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/omap-dma.c