diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-26 12:54:04 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-10-31 11:15:36 +0200 |
commit | 45a2af2f2b5af38743024a2a4fc154e2be93bd20 (patch) | |
tree | 21e632ffeb37f1ae95238317538769b9298fbe1e /drivers/usb/dwc3/core.h | |
parent | 799e9dc82968c66d6f8faf96d0bd01e515b0b2f2 (diff) | |
download | blackbird-op-linux-45a2af2f2b5af38743024a2a4fc154e2be93bd20.tar.gz blackbird-op-linux-45a2af2f2b5af38743024a2a4fc154e2be93bd20.zip |
usb: dwc3: debug: decode control endpoint phase too
DWC3 can tell us which phase of a setup transfer
we're getting into. Let's decode it from the event
to make it easier to debug.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 99fa8b8b06fe..18e4c09ae286 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1041,6 +1041,7 @@ struct dwc3_event_depevt { /* Control-only Status */ #define DEPEVT_STATUS_CONTROL_DATA 1 #define DEPEVT_STATUS_CONTROL_STATUS 2 +#define DEPEVT_STATUS_CONTROL_PHASE(n) ((n) & 3) /* In response to Start Transfer */ #define DEPEVT_TRANSFER_NO_RESOURCE 1 |