Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r46e078a r5e07e2b5  
    4545#include <usb/request.h>
    4646#include <usb/classes/hub.h>
     47#include <usb/devpoll.h>
    4748#include <stdio.h>
    4849
     
    247248        for (port = 0; port < hub_info->port_count + 1; port++) {
    248249                usb_hub_port_init(&hub_info->ports[port]);
     250        }
     251        for (port = 0; port < hub_info->port_count; port++) {
     252                opResult = usb_hub_set_port_feature(hub_info->control_pipe,
     253                    port+1, USB_HUB_FEATURE_PORT_POWER);
     254                if (opResult != EOK) {
     255                        usb_log_error("cannot power on port %d;  %d\n",
     256                            port+1, opResult);
     257                }
    249258        }
    250259        usb_log_debug2("freeing data\n");
Note: See TracChangeset for help on using the changeset viewer.