diff options
| author | Tudor Ambarus <[email protected]> | 2021-11-25 11:00:17 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-11-26 16:26:24 +0100 |
| commit | 1e67bd2b8cb90b66e89562598e9c2046246832d3 (patch) | |
| tree | e695fdc2e0670db88e028e969427ddbb35c38866 /tools/perf/scripts/python | |
| parent | 028e083832b06fdeeb290e1e57dc1f6702c4c215 (diff) | |
tty: serial: atmel: Check return code of dmaengine_submit()
The tx_submit() method of struct dma_async_tx_descriptor is entitled
to do sanity checks and return errors if encountered. It's not the
case for the DMA controller drivers that this client is using
(at_h/xdmac), because they currently don't do sanity checks and always
return a positive cookie at tx_submit() method. In case the controller
drivers will implement sanity checks and return errors, print a message
so that the client will be informed that something went wrong at
tx_submit() level.
Fixes: 08f738be88bb ("serial: at91: add tx dma support")
Signed-off-by: Tudor Ambarus <[email protected]>
Acked-by: Richard Genoud <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions