UPSTREAM: usb: dwc3: core: add fifo space helper
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 14 Apr 2016 12:03:39 +0000 (15:03 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit7b81ec6961fa9d6891e36ca3d967768093975d78
treee1a1464493add96315fa74d5cf871cad08258294
parent490c579287cd02ea6250d99ec277d811b889e7b6
UPSTREAM: usb: dwc3: core: add fifo space helper

this helper will be used, initially, to dump space
of different queues and fifos in dwc3 to
debugfs. Later, it'll be used to issue remote wakeup
when we want to start a transfer and there's
something in a TX FIFO.

Change-Id: I4ebd7a0c0df1757fbfdb561eab84617710e0a580
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit cf6d867d3b57d4eca229b3c506216d98d88be49c)
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h