Changeset 4c25c2f in mainline for uspace/lib/usbhost/src/bus.c
- Timestamp:
- 2018-01-15T15:02:57Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 745a3f1
- Parents:
- 01d9707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/bus.c
r01d9707 r4c25c2f 97 97 98 98 /** 99 * Setup devices Transaction Translation. 100 * 101 * This applies for Low/Full speed devices under High speed hub only. Other 102 * devices just inherit TT from the hub. 103 * 104 * Roothub must be handled specially. 105 */ 106 static void device_setup_tt(device_t *dev) 107 { 108 if (!dev->hub) 109 return; 110 111 if (dev->hub->speed == USB_SPEED_HIGH && usb_speed_is_11(dev->speed)) { 112 /* For LS devices under HS hub */ 113 dev->tt.dev = dev->hub; 114 dev->tt.port = dev->port; 115 } 116 else { 117 /* Inherit hub's TT */ 118 dev->tt = dev->hub->tt; 119 } 120 } 121 122 /** 99 123 * Invoke the device_enumerate bus operation. 100 124 * … … 111 135 if (dev->online) 112 136 return EINVAL; 137 138 device_setup_tt(dev); 113 139 114 140 const int r = ops->device_enumerate(dev);
Note:
See TracChangeset
for help on using the changeset viewer.