Changeset 9223dc5c in mainline


Ignore:
Timestamp:
2010-12-12T18:04:04Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
682b697, f2962621
Parents:
f46f8e3
Message:

fixes for hub and hcd, left debug messsages

Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/virtusbkbd/virtusbkbd.c

    rf46f8e3 r9223dc5c  
    223223       
    224224        printf("%s: Simulating keyboard events...\n", NAME);
    225         kb_process_events(&status, keyboard_events, keyboard_events_count,
    226             on_keyboard_change);
     225        while(1){
     226                kb_process_events(&status, keyboard_events, keyboard_events_count,
     227                        on_keyboard_change);
     228        }
    227229       
    228230        printf("%s: Terminating...\n", NAME);
  • uspace/drv/usbhub/utils.c

    rf46f8e3 r9223dc5c  
    431431                usb_hub_set_power_port_request(&request, port);
    432432                opResult = usb_drv_sync_control_write(hc, target, &request, NULL, 0);
     433                printf("[usb_hub] powering port %d\n",port);
    433434                if (opResult != EOK) {
    434435                        printf("[usb_hub]something went wrong when setting hub`s %dth port\n", port);
     
    540541                return;
    541542        }
     543        printf("[usb_hub] new device address %d, handle %d\n",
     544            new_device_address, child_handle);
     545        sleep(60);
    542546       
    543547}
     
    638642        usb_port_set_dev_connected(&status, false);
    639643        if (status) {
    640                 printf("[usb_hub]there was some unsupported change on port\n");
     644                printf("[usb_hub]there was some unsupported change on port %d\n",port);
    641645        }
    642646        /// \TODO handle other changes
     
    675679                target.address = hub_info->usb_device->address;
    676680                target.endpoint = 1;/// \TODO get from endpoint descriptor
     681                printf("checking changes for hub at addr %d \n",target.address);
    677682
    678683                size_t port_count = hub_info->port_count;
  • uspace/drv/vhc/devices.c

    rf46f8e3 r9223dc5c  
    147147        if (virthub_dev.address == transaction->target.address) {
    148148                size_t tmp;
    149                 dprintf(3, "sending `%s' transaction to hub",
     149                dprintf(1, "sending `%s' transaction to hub",
    150150                    usbvirt_str_transaction_type(transaction->type));
    151151                switch (transaction->type) {
  • uspace/drv/vhc/hubops.c

    rf46f8e3 r9223dc5c  
    200200                } \
    201201        } while (false); \
    202         hub_port_t *portvar = &hub_dev.ports[index]
     202        hub_port_t *portvar = &hub_dev.ports[index-1]
    203203
    204204
  • uspace/lib/usb/src/addrkeep.c

    rf46f8e3 r9223dc5c  
    199199                        usb_address_keeping_used_t *last
    200200                            = used_address_get_instance(addresses->used_addresses.next);
    201                         free_address = last->address;
     201                        free_address = last->address + 1;
    202202                }
    203203        }
Note: See TracChangeset for help on using the changeset viewer.