[DM/MAILBOX] Fixup platform request will deadlock
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
03a9729eb8
commit
9540268ea5
|
@ -253,7 +253,11 @@ struct rt_mbox_chan *rt_mbox_request_by_index(struct rt_mbox_client *client, int
|
||||||
|
|
||||||
if (!rt_ofw_data(ctrl_np))
|
if (!rt_ofw_data(ctrl_np))
|
||||||
{
|
{
|
||||||
|
rt_spin_unlock(&mbox_ops_lock);
|
||||||
|
|
||||||
rt_platform_ofw_request(ctrl_np);
|
rt_platform_ofw_request(ctrl_np);
|
||||||
|
|
||||||
|
rt_spin_lock(&mbox_ops_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrl = rt_ofw_data(ctrl_np);
|
ctrl = rt_ofw_data(ctrl_np);
|
||||||
|
|
Loading…
Reference in New Issue