diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2018-11-12 13:36:38 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-13 10:08:47 -0800 |
commit | 20e00db2f59bdddf8a8e241473ef8be94631d3ae (patch) | |
tree | fc6ca8888b69b27a87f5fffb3b5d6f16857714c3 /tools/perf/scripts/python/sched-migration.py | |
parent | 16a8ee4c80b45984b6de1f90a49edcf336b7c621 (diff) |
ASoC: wm_adsp: Fix dma-unsafe read of scratch registers
Stack memory isn't DMA-safe so it isn't safe to use either
regmap_raw_read or regmap_bulk_read to read into stack memory.
The two functions to read the scratch registers were using
stack memory and regmap_raw_read. It's not worth allocating
memory just for this trivial read, and it isn't time-critical.
A simple regmap_read for each register is sufficient.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions