mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02:00
rpmsg: glink: Cancel sending on processor reset
Unblock threads waiting for space in the smem fifo when the peer remote processor reset is detected. This will allow processes to unblock and cleanup instead of waiting for a 10 second timeout. Change-Id: I1a033a81424dd0c40dd4aa709c4fb9a89e2fa124 Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
d19561af42
commit
da8adeaf36
|
|
@ -422,7 +422,8 @@ static int qcom_glink_tx(struct qcom_glink *glink,
|
|||
spin_unlock_irqrestore(&glink->tx_lock, flags);
|
||||
|
||||
wait_event_timeout(glink->tx_avail_notify,
|
||||
qcom_glink_tx_avail(glink) >= tlen, 10 * HZ);
|
||||
qcom_glink_tx_avail(glink) >= tlen ||
|
||||
atomic_read(&glink->in_reset), 10 * HZ);
|
||||
|
||||
spin_lock_irqsave(&glink->tx_lock, flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user