|
@@ -89,15 +89,11 @@ static void glink_smem_rx_peak(struct qcom_glink_pipe *np,
|
|
|
tail -= pipe->native.length;
|
|
|
|
|
|
len = min_t(size_t, count, pipe->native.length - tail);
|
|
|
- if (len) {
|
|
|
- __ioread32_copy(data, pipe->fifo + tail,
|
|
|
- len / sizeof(u32));
|
|
|
- }
|
|
|
+ if (len)
|
|
|
+ memcpy_fromio(data, pipe->fifo + tail, len);
|
|
|
|
|
|
- if (len != count) {
|
|
|
- __ioread32_copy(data + len, pipe->fifo,
|
|
|
- (count - len) / sizeof(u32));
|
|
|
- }
|
|
|
+ if (len != count)
|
|
|
+ memcpy_fromio(data + len, pipe->fifo, (count - len));
|
|
|
}
|
|
|
|
|
|
static void glink_smem_rx_advance(struct qcom_glink_pipe *np,
|