Provide mechanism to check mailbox queue length before posting new
message to mailbox queue.
Changes in v2:
- Split patchset in two patches for two different subsystems.
- Change design and introduce new field per channel to track mbox
queue length.
- use this new field in xlnx remoteproc driver to prevent sending new
messages if no slots available in the mbox tx channel queue.
Tanmay Shah (2):
mailbox: check mailbox queue is full or not
remoteproc: xlnx: do not kick if mbox queue is full
drivers/mailbox/mailbox.c | 3 +++
drivers/remoteproc/xlnx_r5_remoteproc.c | 5 +++++
include/linux/mailbox_controller.h | 2 ++
3 files changed, 10 insertions(+)
base-commit: 56d030ea3330ab737fe6c05f89d52f56208b07ac
--
2.34.1