summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl.c
diff options
context:
space:
mode:
authorRichard Fitzgerald2018-11-12 14:36:38 +0100
committerGreg Kroah-Hartman2018-12-17 09:24:32 +0100
commit737f3bb3e4be365707438421f25b3e28f1bdaf7a (patch)
tree2e14c5446367434418096cb4013b6bb110970b87 /sound/soc/intel/skylake/skl.c
parentASoC: rockchip: add missing slave_config setting for I2S (diff)
downloadkernel-qcow2-linux-737f3bb3e4be365707438421f25b3e28f1bdaf7a.tar.gz
kernel-qcow2-linux-737f3bb3e4be365707438421f25b3e28f1bdaf7a.tar.xz
kernel-qcow2-linux-737f3bb3e4be365707438421f25b3e28f1bdaf7a.zip
ASoC: wm_adsp: Fix dma-unsafe read of scratch registers
[ Upstream commit 20e00db2f59bdddf8a8e241473ef8be94631d3ae ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl.c')
0 files changed, 0 insertions, 0 deletions