Re: [PATCH v5 2/2] bus: mhi: host: Drop chan lock before queuing buffers

From: Jeffrey Hugo
Date: Fri Dec 15 2023 - 13:24:06 EST


On 12/10/2023 11:42 PM, Qiang Yu wrote:
Ensure read and write locks for the channel are not taken in succession by
dropping the read lock from parse_xfer_event() such that a callback given
to client can potentially queue buffers and acquire the write lock in that
process. Any queueing of buffers should be done without channel read lock
acquired as it can result in multiple locks and a soft lockup.

Signed-off-by: Qiang Yu <quic_qianyu@xxxxxxxxxxx>

Seems to work fine for AIC100

Reviewed-by: Jeffrey Hugo <quic_jhugo@xxxxxxxxxxx>
Tested-by: Jeffrey Hugo <quic_jhugo@xxxxxxxxxxx>