Skip to content

Commit bdab5cd

Browse files
nordic-seglrlubos
authored andcommitted
[nrf fromlist] 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(). Upstream PR: zephyrproject-rtos/zephyr#75114 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 611d398 commit bdab5cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/mbox/mbox_nrf_bellboard_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static int bellboard_tx_send(const struct device *dev, uint32_t id, const struct
2323
}
2424

2525
if (msg != NULL) {
26-
return -ENOTSUP;
26+
return -EMSGSIZE;
2727
}
2828

2929
nrfy_bellboard_task_trigger(config->bellboard, nrf_bellboard_trigger_task_get(id));

drivers/mbox/mbox_nrf_vevif_event_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int vevif_event_tx_send(const struct device *dev, uint32_t id, const stru
3838
}
3939

4040
if (msg != NULL) {
41-
return -ENOTSUP;
41+
return -EMSGSIZE;
4242
}
4343

4444
nrf_vpr_csr_vevif_events_trigger(BIT(id));

drivers/mbox/mbox_nrf_vevif_task_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int vevif_task_tx_send(const struct device *dev, uint32_t id, const struc
3838
}
3939

4040
if (msg != NULL) {
41-
return -ENOTSUP;
41+
return -EMSGSIZE;
4242
}
4343

4444
nrfy_vpr_task_trigger(config->vpr, nrfy_vpr_trigger_task_get(id));

0 commit comments

Comments
 (0)