summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-05-04 12:58:14 +0300
committerFelipe Balbi <balbi@ti.com>2012-05-04 12:58:14 +0300
commit3ef35fafdc87b72851f7785dc5331a0f4eb1b3ce (patch)
tree83664ecb128f24e2c8cad82797eaa0f7ee7f311e /drivers/usb/dwc3/core.h
parentf898ae09a043cf9c3c4be82c04e08fcf00fe82c1 (diff)
downloadlinux-stable-3ef35fafdc87b72851f7785dc5331a0f4eb1b3ce.tar.gz
linux-stable-3ef35fafdc87b72851f7785dc5331a0f4eb1b3ce.tar.bz2
linux-stable-3ef35fafdc87b72851f7785dc5331a0f4eb1b3ce.zip
usb: dwc3: define DWC3_EP0_BOUNCE_SIZE
to avoid sprinkling magic constants on the driver we define a constant to be used when allocating setup_buffer and ep0_bounce buffer. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index ef28bd5680c5..fbd0c8e30c19 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -51,6 +51,7 @@
#include <linux/usb/gadget.h>
/* Global constants */
+#define DWC3_EP0_BOUNCE_SIZE 512
#define DWC3_ENDPOINTS_NUM 32
#define DWC3_XHCI_RESOURCES_NUM 2