diff options
Diffstat (limited to 'transport_mbox.c')
-rw-r--r-- | transport_mbox.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/transport_mbox.c b/transport_mbox.c index 89562e8..bc5e1e2 100644 --- a/transport_mbox.c +++ b/transport_mbox.c @@ -515,10 +515,17 @@ int mbox_handle_close_window(struct mbox_context *context, int mbox_handle_ack(struct mbox_context *context, union mbox_regs *req, struct mbox_msg *resp) { - uint8_t bmc_events = req->msg.args[0]; + struct protocol_ack io; + int rc; + + io.req.flags = req->msg.args[0]; - return clr_bmc_events(context, (bmc_events & BMC_EVENT_ACK_MASK), - SET_BMC_EVENT); + rc = context->protocol->ack(context, &io); + if (rc < 0) { + return mbox_xlate_errno(context, rc); + } + + return 0; } /* |