Skip to content

Commit

Permalink
[nrf fromlist] drivers: mbox: Fix error code in Nordic's implementation
Browse files Browse the repository at this point in the history
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().

Upstream PR: zephyrproject-rtos/zephyr#75114

Signed-off-by: Sebastian Głąb <[email protected]>
  • Loading branch information
nordic-segl authored and rlubos committed Jul 18, 2024
1 parent 611d398 commit bdab5cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/mbox/mbox_nrf_bellboard_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion drivers/mbox/mbox_nrf_vevif_event_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion drivers/mbox/mbox_nrf_vevif_task_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit bdab5cd

Please sign in to comment.