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

Commit a149a27b authored by Chris Lew's avatar Chris Lew Committed by Gerrit - the friendly Code Review server
Browse files

rpmsg: glink: Change ioread functions to iomemcpy_from



The ioread functions logs each read in the rtb logs. GLINK should
use a read variant that does not log to rtb.

Change-Id: I66d73fe4f083bd64690817aff69fae89a01b162d
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 56faadfd
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016, Linaro Ltd
 * Copyright (c) 2018, The Linux Foundation, All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -98,13 +99,11 @@ static void glink_smem_rx_peak(struct qcom_glink_pipe *np,

	len = min_t(size_t, count, pipe->native.length - tail);
	if (len) {
		__ioread32_copy(data, pipe->fifo + tail,
				len / sizeof(u32));
		memcpy_fromio(data, pipe->fifo + tail, len);
	}

	if (len != count) {
		__ioread32_copy(data + len, pipe->fifo,
				(count - len) / sizeof(u32));
		memcpy_fromio(data + len, pipe->fifo, (count - len));
	}
}