Changeset 1f5c1e61 in mainline for uspace/drv/uhci-rhd/root_hub.c
- Timestamp:
- 2011-02-04T12:37:31Z (12 years ago)
- Branches:
- lfn, master, serial
- Children:
- 1669a73
- Parents:
- 5944244
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/root_hub.c
r5944244 r1f5c1e61 53 53 } 54 54 55 /* connect to the parent device (HC) */56 rh->parent_phone = devman_device_connect(8, 0);57 //usb_drv_hc_connect(rh, instance->hc_handle, 0);58 if (rh->parent_phone < 0) {59 usb_log_error("Failed to connect to the HC device.\n");60 return rh->parent_phone;61 }62 63 55 /* allow access to root hub registers */ 64 56 assert(sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT == size); … … 75 67 unsigned i = 0; 76 68 for (; i < UHCI_ROOT_HUB_PORT_COUNT; ++i) { 69 /* connect to the parent device (HC) */ 70 int parent_phone = devman_device_connect(instance->hc_handle, 0); 71 //usb_drv_hc_connect(rh, instance->hc_handle, 0); 72 if (parent_phone < 0) { 73 usb_log_error("Failed to connect to the HC device port %d.\n", i); 74 return parent_phone; 75 } 77 76 /* mind pointer arithmetics */ 78 77 int ret = uhci_port_init( 79 &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh );78 &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh, parent_phone); 80 79 if (ret != EOK) { 81 80 unsigned j = 0;
Note: See TracChangeset
for help on using the changeset viewer.