Changes in uspace/drv/vhc/hub.c [1e32a63:138a7fd] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hub.c

    r1e32a63 r138a7fd  
    144144        .ops = &hub_ops,
    145145        .descriptors = &descriptors,
    146         .lib_debug_level = 0,
     146        .lib_debug_level = 1,
    147147        .lib_debug_enabled_tags = USBVIRT_DEBUGTAG_ALL
    148148};
     
    181181                hub_port_t *port = &hub_dev.ports[i];
    182182               
    183                 port->index = (int) i + 1;
     183                port->index = (int) i;
    184184                port->device = NULL;
    185185                port->state = HUB_PORT_STATE_NOT_CONFIGURED;
    186186                port->status_change = 0;
    187                 fibril_mutex_initialize(&port->guard);
    188187        }
    189188       
     
    226225        for (i = 0; i < HUB_PORT_COUNT; i++) {
    227226                hub_port_t *port = &hub_dev.ports[i];
    228                 fibril_mutex_lock(&port->guard);
    229227               
    230228                if (port->device != NULL) {
    231                         fibril_mutex_unlock(&port->guard);
    232229                        continue;
    233230                }
     
    244241                //if (port->state == HUB_PORT_STATE_DISCONNECTED) {
    245242                        port->state = HUB_PORT_STATE_DISABLED;
    246                         set_port_status_change_nl(port, HUB_STATUS_C_PORT_CONNECTION);
     243                        set_port_status_change(port, HUB_STATUS_C_PORT_CONNECTION);
    247244                //}
    248245               
    249                 fibril_mutex_unlock(&port->guard);
    250 
    251246                return i;
    252247        }
Note: See TracChangeset for help on using the changeset viewer.