mbox: Clarify protocol version negotion

The specification intended that the mbox daemon return its highest
supported protocol version less-than-or-equal to the version requested
by the host. This was not clear in the documentation and was not the
behaviour implemented by the daemon.

Fix both the documentation and the daemon to perform to this
expectation.

Change-Id: I6f9cf0b16d2b9319d69656eb26defb46dccd4ddf
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mboxd_msg.c b/mboxd_msg.c
index 179af60..84e8d9a 100644
--- a/mboxd_msg.c
+++ b/mboxd_msg.c
@@ -176,10 +176,12 @@
 	int rc;
 
 	/* Check we support the version requested */
-	if (mbox_api_version < API_MIN_VERSION ||
-	    mbox_api_version > API_MAX_VERSION) {
+	if (mbox_api_version < API_MIN_VERSION)
 		return -MBOX_R_PARAM_ERROR;
-	}
+
+	if (mbox_api_version > API_MAX_VERSION)
+		mbox_api_version = API_MAX_VERSION;
+
 	context->version = mbox_api_version;
 	MSG_OUT("Using Protocol Version: %d\n", context->version);