Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3baaa47 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

ASoC: intel: use __iowrite32_copy for 32 bit copy



The driver was using own method to do 32bit copy, turns out we have a kernel
API so use that instead

Tested-by: default avatarSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 161aa49e
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -39,14 +39,12 @@
#include "sst.h"
#include "../sst-dsp.h"

static void memcpy32_toio(void __iomem *dst, const void *src, int count)
static inline void memcpy32_toio(void __iomem *dst, const void *src, int count)
{
	int i;
	const u32 *src_32 = src;
	u32 *dst_32 = dst;

	for (i = 0; i < count/sizeof(u32); i++)
		writel(*src_32++, dst_32++);
	/* __iowrite32_copy uses 32-bit count values so divide by 4 for
	 * right count in words
	 */
	__iowrite32_copy(dst, src, count/4);
}

/**