Re: [PATCH] i3c: master: dw: fix deadlock

2019-01-25 Thread vitor
Hi Jisheng, Thanks for your report. On 25/01/19 07:29, Jisheng Zhang wrote: > In dw_i3c_master_irq_handler(), we already have gotten > &master->xferqueue.lock, if we try to get the same lock again in > dw_i3c_master_dequeue_xfer(), deadlock happens. > > We fix this issue by introduing dw_i3c_mast

[PATCH] i3c: master: dw: fix deadlock

2019-01-24 Thread Jisheng Zhang
In dw_i3c_master_irq_handler(), we already have gotten &master->xferqueue.lock, if we try to get the same lock again in dw_i3c_master_dequeue_xfer(), deadlock happens. We fix this issue by introduing dw_i3c_master_dequeue_xfer_locked() which does all what dw_i3c_master_dequeue_xfer() does without