glink: native: Check the return value of native rx

Check the return value of native rx function in threaded
interrupt.
Read the data from fifo until the return value is 0.

Change-Id: I7a66707ed942fd5e37c496db91709b9ce0a306d8
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
This commit is contained in:
Pranav Mahesh Phansalkar 2024-05-28 11:48:27 +05:30
parent b0e9354523
commit e6d9f686f4

View File

@ -1638,8 +1638,11 @@ static irqreturn_t qcom_glink_native_intr(int irq, void *data)
static irqreturn_t qcom_glink_native_thread_intr(int irq, void *data)
{
struct qcom_glink *glink = data;
int ret;
qcom_glink_native_rx(glink, 0);
do {
ret = qcom_glink_native_rx(glink, 0);
} while (ret >= sizeof(struct glink_msg));
return IRQ_HANDLED;
}