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

Commit df2063e5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: bg_glink: Use separate mutex lock for response and command thread"

parents 943d32a1 8304a4a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,10 +120,10 @@ static void bg_cdc_glink_notify_rx(void *handle, const void *priv,

	pr_debug("%s: Rx packet received\n", __func__);

	mutex_lock(&ch_info->w_lock);
	mutex_lock(&ch_info->r_lock);
	if (ch_info->func)
		ch_info->func((void *)ptr, size);
	mutex_unlock(&ch_info->w_lock);
	mutex_unlock(&ch_info->r_lock);
	glink_rx_done(ch_info->handle, ptr, true);
}