OSDN Git Service

usb: dwc3: core: avoid Overflow events
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 23 Dec 2016 12:40:40 +0000 (14:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:11 +0000 (11:39 +0100)
commit9bdd47c53b7cf79f68ef5038e9494261f060f64e
treee922a9148a558823b0ad13896799afd39d43f7b5
parent2b95c939cb88c3182e9dd681d4cf40b70985b8a5
usb: dwc3: core: avoid Overflow events

commit e71d363d9c611c99fb78f53bfee99616e7fe352c upstream.

Now that we're handling so many transfers at a time
and for some dwc3 revisions LPM events *must* be
enabled, we can fall into a situation where too many
events fire and we start receiving Overflow events.

Let's do what XHCI does and allocate a full page for
the Event Ring, this will avoid any future issues.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h