Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e9ec415 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: Use Spinlock in GSI irq context



This fix uses the appropriate spinlock in gsi irq context
to protect updating a ipa resource.

Change-Id: Ia19c37d2f54d4d89c4bb508475cef66395275d22
Acked-by: default avatarJyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 9ae54a8e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3553,10 +3553,10 @@ static void ipa_gsi_irq_rx_notify_cb(struct gsi_chan_xfer_notify *notify)
	IPADBG_LOW("event %d notified\n", notify->evt_id);

	sys = (struct ipa3_sys_context *)notify->chan_user_data;
	spin_lock_bh(&sys->spinlock);
	spin_lock(&sys->spinlock);
	rx_pkt_expected = list_first_entry(&sys->head_desc_list,
					   struct ipa3_rx_pkt_wrapper, link);
	spin_unlock_bh(&sys->spinlock);
	spin_unlock(&sys->spinlock);
	rx_pkt_rcvd = (struct ipa3_rx_pkt_wrapper *)notify->xfer_user_data;

	if (rx_pkt_expected != rx_pkt_rcvd) {