diff options
author | Giuseppe CAVALLARO <[email protected]> | 2014-08-27 11:27:00 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-08-29 19:54:36 -0700 |
commit | 362b37be01edc7429e3ebaa89613517d57863f5c (patch) | |
tree | c29059b8d78ad83cd2decf42daa7be8d3a101497 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 5566401f2f10556776fd199c11d6a02a5e0b7b95 (diff) |
stmmac: fix dma api misuse
Enabling DMA_API_DEBUG, warnings are reported at runtime
because the device driver frees DMA memory with wrong functions
and it does not call dma_mapping_error after mapping dma memory.
The first problem is fixed by of introducing a flag that helps us
keeping track which mapping technique was used, so that we can use
the right API for unmap.
This approach was inspired by the e1000 driver, which uses a similar
technique.
Signed-off-by: Andre Draszik <[email protected]>
Signed-off-by: Giuseppe Cavallaro <[email protected]>
Reviewed-by: Denis Kirjanov <[email protected]>
Cc: Hans de Goede <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions