soc: qcom: qmi_interface: Parse all control packets

There are some control packets such as DEL_CLIENT that will not always
match the local node address. All packets addressed to the control port
should be decoded as qrtr control packets.

Change-Id: I46b366c77fd2d8defc203e0c74181a228710c48e
Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
Chris Lew 2020-11-11 18:06:33 -08:00
commit 332b0b6fa4

View file

@ -556,8 +556,7 @@ static void qmi_data_ready_work(struct work_struct *work)
break;
}
if (sq.sq_node == qmi->sq.sq_node &&
sq.sq_port == QRTR_PORT_CTRL) {
if (sq.sq_port == QRTR_PORT_CTRL) {
qmi_recv_ctrl_pkt(qmi, qmi->recv_buf, msglen);
} else if (ops->msg_handler) {
ops->msg_handler(qmi, &sq, qmi->recv_buf, msglen);