summaryrefslogtreecommitdiff
path: root/src/host/ehci
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-10 05:07:22 +0700
committerhathach <[email protected]>2018-12-10 05:07:22 +0700
commit6a6e7d0ecb6690c5bc833f6d543c5303b6b52155 (patch)
treee7a30706b2d8db7e4de714e70977fd14fd50a4c1 /src/host/ehci
parent05913a73501c8e2ea1a88299f6b900f92307aaa7 (diff)
refactor usbh class driver
Diffstat (limited to 'src/host/ehci')
-rw-r--r--src/host/ehci/ehci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c
index dadd377bc..49f43a9ad 100644
--- a/src/host/ehci/ehci.c
+++ b/src/host/ehci/ehci.c
@@ -951,6 +951,7 @@ static inline pipe_handle_t qhd_create_pipe_handle(ehci_qhd_t const * p_qhd, tus
if (TUSB_XFER_CONTROL != xfer_type) // qhd index for control is meaningless
{
pipe_hdl.index = qhd_get_index(p_qhd);
+ pipe_hdl.ep_addr = edpt_addr(p_qhd->endpoint_number, p_qhd->pid_non_control == EHCI_PID_IN ? 1 : 0);
}
return pipe_hdl;