|
@@ -31,6 +31,13 @@
|
|
#include <linux/usb/otg.h>
|
|
#include <linux/usb/otg.h>
|
|
#include <linux/usb/otg-fsm.h>
|
|
#include <linux/usb/otg-fsm.h>
|
|
|
|
|
|
|
|
+#ifdef VERBOSE
|
|
|
|
+#define VDBG(fmt, args...) pr_debug("[%s] " fmt, \
|
|
|
|
+ __func__, ## args)
|
|
|
|
+#else
|
|
|
|
+#define VDBG(stuff...) do {} while (0)
|
|
|
|
+#endif
|
|
|
|
+
|
|
/* Change USB protocol when there is a protocol change */
|
|
/* Change USB protocol when there is a protocol change */
|
|
static int otg_set_protocol(struct otg_fsm *fsm, int protocol)
|
|
static int otg_set_protocol(struct otg_fsm *fsm, int protocol)
|
|
{
|
|
{
|