diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-08-07 23:22:05 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-09-12 15:05:51 +0930 |
commit | c5c830487b1672c6184fdd8e3ec12d1735c3c232 (patch) | |
tree | f775d6e7cb456c84aa0ff4eb4df28e88df98d420 /transport_mbox.c | |
parent | 093eda5c9384927e456cf709c8331f6e60bb9ae9 (diff) | |
download | phosphor-mboxbridge-c5c830487b1672c6184fdd8e3ec12d1735c3c232.tar.gz phosphor-mboxbridge-c5c830487b1672c6184fdd8e3ec12d1735c3c232.zip |
protocol: Add ack
Change-Id: I3ebad03d7f79381c683a121c181db9f30a13a3c4
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
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; } /* |