summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-02-19 23:29:19 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-22 08:11:18 +0100
commitafaeb00ca1b9292d892c6bc5e481dfa34722e400 (patch)
tree89604aa9733ed7c55b8621061c34791c8e597197 /drivers/usb/host
parente9fb81b8b518c52c9c472c30a80c9de018d6ee35 (diff)
downloadbarebox-afaeb00ca1b9292d892c6bc5e481dfa34722e400.tar.gz
barebox-afaeb00ca1b9292d892c6bc5e481dfa34722e400.tar.xz
usb: xhci-hcd: Initialize TRT flag for xHCI >= 1.0
Initialize TRT flag for xHCI >= 1.0, not just == 1.0. This is what Linux xHCI driver does. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/xhci-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c
index c8327c88f8..5174463793 100644
--- a/drivers/usb/host/xhci-hcd.c
+++ b/drivers/usb/host/xhci-hcd.c
@@ -1248,7 +1248,7 @@ static int xhci_submit_control(struct usb_device *udev, unsigned long pipe,
field[1] = le16_to_cpu(req->length) << 16 |
le16_to_cpu(req->index);
flags = TRB_TYPE(TRB_SETUP) | TRB_IDT;
- if (xhci->hci_version == 0x100 && length > 0) {
+ if (xhci->hci_version >= 0x100 && length > 0) {
if (req->requesttype & USB_DIR_IN)
flags |= TRB_TX_TYPE(TRB_DATA_IN);
else