drivers: mbox: Fix error code in Nordic's implementation

According to the official MBOX API documentation available at
https://docs.zephyrproject.org/latest/hardware/peripherals/mbox.html
mbox_sen() shall return
-EMSGSIZE – If the supplied data size is unsupported by the driver.

Fix error code returned by the mbox_send().

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
This commit is contained in:
Sebastian Głąb 2024-06-27 15:52:17 +02:00 committed by Carles Cufí
parent 6e045743f8
commit 06b56c7971
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ static int bellboard_tx_send(const struct device *dev, uint32_t id, const struct
}
if (msg != NULL) {
return -ENOTSUP;
return -EMSGSIZE;
}
nrfy_bellboard_task_trigger(config->bellboard, nrf_bellboard_trigger_task_get(id));

View File

@ -38,7 +38,7 @@ static int vevif_event_tx_send(const struct device *dev, uint32_t id, const stru
}
if (msg != NULL) {
return -ENOTSUP;
return -EMSGSIZE;
}
nrf_vpr_csr_vevif_events_trigger(BIT(id));

View File

@ -38,7 +38,7 @@ static int vevif_task_tx_send(const struct device *dev, uint32_t id, const struc
}
if (msg != NULL) {
return -ENOTSUP;
return -EMSGSIZE;
}
nrfy_vpr_task_trigger(config->vpr, nrfy_vpr_trigger_task_get(id));