summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-10-13 14:00:25 +0700
committerhathach <[email protected]>2020-10-13 14:11:17 +0700
commit3623f578a4b9c75b61b1c7a7d0c0c3ff2440e690 (patch)
tree3050df8ff9b2fe7d09e04c3fde53818912df949b /src/host
parentd92d1a03ca2df69856f02c64ae88d805d60ad088 (diff)
more clean up
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 595024b9c..7d1201aa4 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -880,9 +880,12 @@ static bool parse_configuration_descriptor(uint8_t dev_addr, tusb_desc_configura
}
else
{
+ TU_LOG2("%s open\r\n", driver->name);
+
uint16_t itf_len = 0;
- TU_LOG2("%s open\r\n", driver->name);
+ // TODO class driver can perform control transfer when opening which is
+ // non-blocking --> need a way to coordinate composite device
TU_ASSERT( driver->open(dev->rhport, dev_addr, desc_itf, &itf_len) );
TU_ASSERT( itf_len >= sizeof(tusb_desc_interface_t) );
p_desc += itf_len;