Changeset 1f5c1e61 in mainline for uspace/drv/uhci-rhd/root_hub.c


Ignore:
Timestamp:
2011-02-04T12:37:31Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1669a73
Parents:
5944244
Message:

Separate phones for every root hub port

Add tons of debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/root_hub.c

    r5944244 r1f5c1e61  
    5353        }
    5454
    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 
    6355        /* allow access to root hub registers */
    6456        assert(sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT == size);
     
    7567        unsigned i = 0;
    7668        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                }
    7776                /* mind pointer arithmetics */
    7877                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);
    8079                if (ret != EOK) {
    8180                        unsigned j = 0;
Note: See TracChangeset for help on using the changeset viewer.