summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-exynos.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-12-07 20:42:03 +0100
committerFelipe Balbi <balbi@ti.com>2013-01-18 09:11:32 +0100
commit5da93478251cf0dd6b34874c7c1c24a4a52eabc1 (patch)
tree43897aaf58ce8bd6c5d3cb0bc71d4a6f8f4f648a /drivers/usb/dwc3/dwc3-exynos.c
parentLinux 3.8-rc4 (diff)
downloadlinux-5da93478251cf0dd6b34874c7c1c24a4a52eabc1.tar.xz
linux-5da93478251cf0dd6b34874c7c1c24a4a52eabc1.zip
usb: dwc3: decrease event buffer size
Currently we're allocating an entire page to serve as our event buffer. Provided our events are 4 bytes long, it's very unlikely we will even trigger 1k events at once. Even in the worst case scenario where every endpoint triggers one event and we still have a couple of error events, that would still be less than 40 events. In order to cope with future versions of the IP which could (or could not) increase the amount of possible events to trigger simultaneously, we're using an arbitrary size of 64 events for our event buffer. We're saving 3840 bytes by doing so. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-exynos.c')
0 files changed, 0 insertions, 0 deletions