]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: decrease event buffer size
authorFelipe Balbi <balbi@ti.com>
Fri, 7 Dec 2012 19:42:03 +0000 (21:42 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 18 Jan 2013 08:11:32 +0000 (10:11 +0200)
commit848f3e8f7c603f165d9e5bddde341907ad2e3831
tree43897aaf58ce8bd6c5d3cb0bc71d4a6f8f4f648a
parent39b91da8243ed8c6c289f77388f054e40eea6afc
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>
drivers/usb/dwc3/core.h