Changeset 0e97b4b5 in mainline
- Timestamp:
- 2013-01-04T16:51:11Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ceb444c
- Parents:
- 237df2f
- Location:
- uspace/drv/bus/usb/vhc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/hub/virthub.c
r237df2f r0e97b4b5 155 155 dev->address = 0; 156 156 dev->name = str_dup(name); 157 if (! name)157 if (!dev->name) 158 158 return ENOMEM; 159 159 -
uspace/drv/bus/usb/vhc/main.c
r237df2f r0e97b4b5 51 51 }; 52 52 53 54 53 static int vhc_control_node(ddf_dev_t *dev, ddf_fun_t **fun) 55 54 { … … 93 92 usb_log_error("Failed to init HCD structures: %s.\n", 94 93 str_error(ret)); 95 free(data);94 ddf_fun_destroy(ctl_fun); 96 95 return ret; 97 96 } … … 100 99 101 100 /* Add virtual hub device */ 102 usb_address_t address = 1; 103 ret = vhc_virtdev_plug_hub(data, &data->hub, NULL, address); 101 ret = vhc_virtdev_plug_hub(data, &data->hub, NULL, 0); 104 102 if (ret != EOK) { 105 103 usb_log_error("Failed to plug root hub: %s.\n", str_error(ret)); 106 free(data);104 ddf_fun_destroy(ctl_fun); 107 105 return ret; 108 106 } 109 107 110 // TODO fix the address hack 111 ret = hcd_ddf_setup_hub(dev, &address); 108 ret = hcd_ddf_setup_root_hub(dev, USB_SPEED_FULL); 112 109 if (ret != EOK) { 113 110 usb_log_error("Failed to init VHC root hub: %s\n",
Note:
See TracChangeset
for help on using the changeset viewer.