Changes in / [8971926:3dfdcb7] in mainline


Ignore:
Location:
uspace/drv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/root_hub.c

    r8971926 r3dfdcb7  
    5757        .device_version = 0,
    5858        .length = sizeof (usb_standard_device_descriptor_t),
     59        /// \TODO this value is guessed
    5960        .max_packet_size = 8,
    6061        .vendor_id = 0x16db,
     
    467468
    468469        usb_hub_bm_request_type_t request_type = request_packet->request_type;
    469         if (buffer_size < 4) {
     470        if (buffer_size < 4/*request_packet->length*/) {///\TODO
    470471                usb_log_warning("requested more data than buffer size\n");
    471472                return EINVAL;
     
    677678            (instance->registers->rh_port_status[port - 1] | (1 << feature))
    678679            & (~port_clear_feature_valid_mask);
     680        /// \TODO any error?
     681
    679682        return EOK;
    680683}
     
    704707            & (~port_clear_feature_valid_mask))
    705708            | (1 << feature);
     709        /// \TODO any error?
    706710
    707711        return EOK;
  • uspace/drv/usbhub/main.c

    r8971926 r3dfdcb7  
    8787
    8888        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    89 
     89       
    9090        return usb_driver_main(&usb_hub_driver);
    9191}
  • uspace/drv/usbhub/usbhub.c

    r8971926 r3dfdcb7  
    249249        usb_log_debug("setting port count to %d\n", descriptor->ports_count);
    250250        hub_info->port_count = descriptor->ports_count;
     251        /// \TODO this is not semantically correct
    251252        bool is_power_switched =
    252253            ((descriptor->hub_characteristics & 1) == 0);
Note: See TracChangeset for help on using the changeset viewer.