This allows userspace to determine at runtime the semantics of the
forced hostmode for the currently running kernel, the version is
presented at /proc/drivers/musb_hdrc.
#include "../core/hcd.h"
#include "musb_host.h"
+/* This is the version of forced hostmode userspace<->kernelspace API.
+ * Do not update to the build date, bump only on API changes */
+#define MUSB_VERSION_HOSTMODE "20101104"
#ifdef CONFIG_USB_MUSB_OTG
#elif defined(CONFIG_USB_MUSB_HDRC_HCD)
"host"
#endif
- ", debug=%d [eps=%d]\n",
+ ", debug=%d [eps=%d]"
+ ", version_hostmode=" MUSB_VERSION_HOSTMODE "\n",
musb_debug,
musb->nr_endpoints);
if (code <= 0)