summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Wu <william.wu@rock-chips.com>2019-01-04 11:22:54 +0800
committerTao Huang <huangtao@rock-chips.com>2019-01-04 20:57:03 +0800
commitc0bd48bb3e6eb2505db700836647e5b4407e167b (patch)
tree1eaa84d473aca1de5c2d8a5aa86f58ef6f65c637 /include
parent18bd7e7c4da5e2f34d682efd43995c603950870f (diff)
usb: xhci: set xhci trb ent quirk based on platform data
If an xhci platform needs to enable the ENT flag in the TRB to force the xHC to pre-fetch the next TRB of a TD, then add the XHCI_TRB_ENT_QUIRK flag. Change-Id: Ib7cc095a848f0846ad995529ad703ae4e4ee4d44 Signed-off-by: William Wu <william.wu@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/xhci_pdriver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/xhci_pdriver.h b/include/linux/usb/xhci_pdriver.h
index 5df42af8a404..11d813d2bcdc 100644
--- a/include/linux/usb/xhci_pdriver.h
+++ b/include/linux/usb/xhci_pdriver.h
@@ -21,6 +21,9 @@
* @xhci_slow_suspend: set if this xhci platform need an extraordinary
* delay to wait for xHC enter the Halted state
* after the Run/Stop (R/S) bit is cleared to '0'.
+ * @xhci_trb_ent: set if this xhci platform need to enable the Evaluate
+ * Next TRB(ENT) flag in the TRB data structure to force
+ * xHC to pre-fetch the next TRB of a TD.
* @usb3_disable_autosuspend: determines if this xhci platform supports
* USB3 autosuspend capability
* @usb3_warm_reset_on_resume: determines if it need warm reset on resume.
@@ -29,6 +32,7 @@
struct usb_xhci_pdata {
unsigned usb3_lpm_capable:1;
unsigned xhci_slow_suspend:1;
+ unsigned xhci_trb_ent:1;
unsigned usb3_disable_autosuspend:1;
unsigned usb3_warm_reset_on_resume:1;
};