diff options
author | Kevin Wangtao <kevin.wangtao@hisilicon.com> | 2018-12-03 11:55:09 +0800 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2018-12-12 08:01:10 +0530 |
commit | 2e4ac7cc493f36e45facb921a992a145351d280c (patch) | |
tree | 56e2b6453e8227b28141ee1cb7172ffac2445097 /drivers/mailbox/ti-msgmgr.c | |
parent | b5452838c661726880652f14e20ab58efed54fa5 (diff) | |
download | lwn-2e4ac7cc493f36e45facb921a992a145351d280c.tar.gz lwn-2e4ac7cc493f36e45facb921a992a145351d280c.zip |
mailbox: Hi3660: Fixup mailbox state machine malfunction issue
Current mailbox driver of Hi3660 release the mailbox directly
before sending a new message which may cause last message lost
and next message sending doesn't take effect actually.
This patch fixs this issue by following the right progress below,
each time before sending a message, mailbox driver will check
whether the mailbox is in ready state, if last message has been
acknowledged, the mailbox driver will clear the ack state to turn
the mailbox to ready state again.
Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
Reviewed-and-tested-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/ti-msgmgr.c')
0 files changed, 0 insertions, 0 deletions