rpmsg: glink: Remove chunk size word align warning
authorChris Lew <clew@codeaurora.org>
Fri, 27 Jul 2018 12:17:27 +0000 (17:47 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 1 Sep 2018 21:00:43 +0000 (14:00 -0700)
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>
drivers/rpmsg/qcom_glink_native.c

index e2ce4e638258b7a64de8e9f41e6167f09aaf8c74..f46c787733e8ac6ac63cf5eca85a40cad0665272 100644 (file)
@@ -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);