diff options
author | Felipe Balbi | 2012-01-18 16:06:03 +0100 |
---|---|---|
committer | Felipe Balbi | 2012-02-06 10:48:28 +0100 |
commit | 40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce (patch) | |
tree | 81cb72779547b8530e6b28c9f7c59d0e599ef113 /drivers/usb/dwc3/gadget.c | |
parent | usb: dwc3: gadget: allow Link state changes via debugfs (diff) | |
download | kernel-qcow2-linux-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.tar.gz kernel-qcow2-linux-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.tar.xz kernel-qcow2-linux-40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce.zip |
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/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e0e2337dad13..4b64dc0bfa27 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"); |