diff options
| author | GuEe-GUI <[email protected]> | 2024-11-29 16:01:23 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-12-02 21:14:34 +0800 |
| commit | 7b7e4686afb6d3771d84f2c6200aee8c2a61003e (patch) | |
| tree | d012eb84709b1d5ed144b08c01b148eb65333c17 /components | |
| parent | 72a78a268f1b5f422bcdb1eac8dc5eb0dfd49b63 (diff) | |
[DM/MAILBOX] Fixup platform request will deadlock
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/mailbox/mailbox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/mailbox/mailbox.c b/components/drivers/mailbox/mailbox.c index 84b9f11247..ef3ea4ff52 100644 --- a/components/drivers/mailbox/mailbox.c +++ b/components/drivers/mailbox/mailbox.c @@ -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)) { + rt_spin_unlock(&mbox_ops_lock); + rt_platform_ofw_request(ctrl_np); + + rt_spin_lock(&mbox_ops_lock); } ctrl = rt_ofw_data(ctrl_np); |
