From 2be475db5d374d6a54d6a8d58027f510c2eb9b54 Mon Sep 17 00:00:00 2001 From: Vadim Galyant Date: Sat, 9 Dec 2017 15:00:04 +0900 Subject: [PATCH] [USBPORT] Correcting USB2_GetStartTime(). --- drivers/usb/usbport/usb2.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c index 1811b541c03..edc91c1d701 100644 --- a/drivers/usb/usbport/usb2.c +++ b/drivers/usb/usbport/usb2.c @@ -251,13 +251,11 @@ USB2_GetStartTime(IN PUSB2_TT_ENDPOINT nextTtEndpoint, TransferType = TtEndpoint->TtEndpointParams.TransferType; - if (nextTtEndpoint && TransferType == USBPORT_TRANSFER_TYPE_ISOCHRONOUS) - { - return nextTtEndpoint->StartTime + nextTtEndpoint->CalcBusTime; - } - if (TransferType == USBPORT_TRANSFER_TYPE_ISOCHRONOUS) { + if (nextTtEndpoint) + return nextTtEndpoint->StartTime + nextTtEndpoint->CalcBusTime; + ttEndpoint = TtEndpoint->Tt->FrameBudget[Frame].AltEndpoint; if (ttEndpoint) -- 2.17.1