diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-10-20 11:24:34 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-21 18:59:00 -0400 |
commit | 7f26680170e322730c7c7553f5625fb04de4f5b8 (patch) | |
tree | 0453e0f60041c3124899734f168462834005e58d /sound/soc/intel/sst-firmware.c | |
parent | 33c1256f1ce30a94f4b590bb30baf787e17f64aa (diff) |
ASoC: intel: use __iowrite32_copy for 32 bit copy
The sst-firmware was also using own method to do 32bit copy, turns out we have a
kernel API so use that instead
[For BYT]
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-firmware.c')
-rw-r--r-- | sound/soc/intel/sst-firmware.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index 3bb43dac892d..cf3d19997126 100644 --- a/sound/soc/intel/sst-firmware.c +++ b/sound/soc/intel/sst-firmware.c | |||
@@ -32,13 +32,10 @@ | |||
32 | 32 | ||
33 | static void block_module_remove(struct sst_module *module); | 33 | static void block_module_remove(struct sst_module *module); |
34 | 34 | ||
35 | static void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes) | 35 | static inline void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes) |
36 | { | 36 | { |
37 | u32 i; | 37 | /* __iowrite32_copy use 32bit size values so divide by 4 */ |
38 | 38 | __iowrite32_copy((void *)dest, src, bytes/4); | |
39 | /* copy one 32 bit word at a time as 64 bit access is not supported */ | ||
40 | for (i = 0; i < bytes; i += 4) | ||
41 | memcpy_toio(dest + i, src + i, 4); | ||
42 | } | 39 | } |
43 | 40 | ||
44 | /* create new generic firmware object */ | 41 | /* create new generic firmware object */ |