Skip to content

Commit

Permalink
rpmsg: glink: Remove chunk size word align warning
Browse files Browse the repository at this point in the history
It is possible for the chunk sizes coming from the non RPM remote procs
to not be word aligned. Remove the alignment warning and continue to
read from the FIFO so execution is not stalled.

Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
Chris Lew authored and Bjorn Andersson committed Sep 1, 2018
1 parent c8a54c0 commit f0beb4b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/rpmsg/qcom_glink_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,6 @@ static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail)
return -EAGAIN;
}

if (WARN(chunk_size % 4, "Incoming data must be word aligned\n"))
return -EINVAL;

rcid = le16_to_cpu(hdr.msg.param1);
spin_lock_irqsave(&glink->idr_lock, flags);
channel = idr_find(&glink->rcids, rcid);
Expand Down

0 comments on commit f0beb4b

Please sign in to comment.