diff options
| author | Tudor Ambarus <[email protected]> | 2020-01-23 14:03:06 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2020-02-25 11:27:27 +0530 |
| commit | ad16bc232dd72f85984c790e07c69009b7c850c8 (patch) | |
| tree | 5bbe4d155f66038df71ac4f10309e776816cafbe /tools/perf/scripts/python | |
| parent | bbc58394d81110f76586d3053fd5a3a3ad616050 (diff) | |
dmaengine: at_hdmac: Return err in case the chan is not free at alloc res time
Having a list of descriptors allocated for the channel at
device_alloc_chan_resources() time is a sign for bad free usage.
Return err and add a debug message in case the channel is not
free from a previous use.
atchan->descs_allocated becomes useless, get rid of it. More,
drop the error message in atc_desc_get() because now it would
introduce an extra if statement. The callers of atc_desc_get()
already print error messages in case the callee fails, no one
is hurt.
Signed-off-by: Tudor Ambarus <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions