[PATCH 1/3] remoteproc: xlnx: avoid mailbox setup

From: Tanmay Shah

Date: Tue Mar 03 2026 - 18:53:20 EST


Mailbox properties are optional in the remoteproc xlnx bindings.
If mailbox properties are not found in device-tree it's not fatal error
in the driver. Driver will print warning messages and continue with
normal operation. However, these warning messages can be interpreted as
error. Check "mboxes" and "mbox-names" properties in the driver and setup
mailbox only if they are available in the device-tree.
This will avoid any unwanted warning/error messages.

Signed-off-by: Tanmay Shah <tanmay.shah@xxxxxxx>
---
drivers/remoteproc/xlnx_r5_remoteproc.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/xlnx_r5_remoteproc.c
index 5a468d959f1e..148d8c622566 100644
--- a/drivers/remoteproc/xlnx_r5_remoteproc.c
+++ b/drivers/remoteproc/xlnx_r5_remoteproc.c
@@ -265,6 +265,10 @@ static struct mbox_info *zynqmp_r5_setup_mbox(struct device *cdev)
struct mbox_client *mbox_cl;
struct mbox_info *ipi;

+ if (!of_property_present(dev_of_node(cdev), "mboxes") ||
+ !of_property_present(dev_of_node(cdev), "mbox-names"))
+ return NULL;
+
ipi = kzalloc_obj(*ipi);
if (!ipi)
return NULL;
--
2.34.1