diff options
author | Felipe Balbi <balbi@ti.com> | 2012-01-18 17:06:03 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-06 11:48:28 +0200 |
commit | 40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce (patch) | |
tree | 81cb72779547b8530e6b28c9f7c59d0e599ef113 /drivers/usb/dwc3 | |
parent | 138801aaa566ecb5a5739a85909b9ec7285efd70 (diff) | |
download | kernel_goldelico_gta04-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.zip kernel_goldelico_gta04-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.tar.gz kernel_goldelico_gta04-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.tar.bz2 |
usb: dwc3: gadget: fix XferNotReady debug print
Only bit 3 of the event status bitfield is valid
and the others should not be considered.
Make sure SW matches documentation on that case
to avoid bogus debugging prints which would
confuse an engineer.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/core.h | 5 | ||||
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 9e57f8e..f4878c4 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -719,6 +719,11 @@ struct dwc3_event_depevt { u32 endpoint_event:4; u32 reserved11_10:2; u32 status:4; + +/* Within XferNotReady */ +#define DEPEVT_STATUS_TRANSFER_ACTIVE (1 << 3) + +/* Within XferComplete */ #define DEPEVT_STATUS_BUSERR (1 << 0) #define DEPEVT_STATUS_SHORT (1 << 1) #define DEPEVT_STATUS_IOC (1 << 2) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e0e2337..4b64dc0 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1657,7 +1657,8 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc, int ret; dev_vdbg(dwc->dev, "%s: reason %s\n", - dep->name, event->status + dep->name, event->status & + DEPEVT_STATUS_TRANSFER_ACTIVE ? "Transfer Active" : "Transfer Not Active"); |