Changeset 9097c16a in mainline for uspace/drv/vhc/hub.c
- Timestamp:
- 2011-02-04T13:14:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e7cdf8
- Parents:
- 11797d5 (diff), ff244e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hub.c
r11797d5 r9097c16a 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbvhc 30 30 * @{ 31 31 */ … … 63 63 = fibril_create(hub_register_in_devman_fibril, hc_dev); 64 64 if (root_hub_registration == 0) { 65 printf(NAME ": failed to register root hub\n");65 usb_log_fatal("Failed to create hub registration fibril.\n"); 66 66 return; 67 67 } … … 79 79 device_t *hc_dev = (device_t *) arg; 80 80 81 int hc = usb_drv_hc_connect(hc_dev, hc_dev->handle, IPC_FLAG_BLOCKING);82 if (hc < 0){83 printf(NAME ": failed to register root hub\n");84 return hc;85 } 81 int hc; 82 do { 83 hc = usb_drv_hc_connect(hc_dev, hc_dev->handle, 84 IPC_FLAG_BLOCKING); 85 } while (hc < 0); 86 86 87 87 usb_drv_reserve_default_address(hc);
Note:
See TracChangeset
for help on using the changeset viewer.