Changeset 4708657 in mainline


Ignore:
Timestamp:
2011-05-30T17:35:29Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be8d907
Parents:
0c07d70
Message:

removed global hub powering (not needed and actually errorneous)

Location:
uspace/drv/usbhub
Files:
3 edited

Legend:

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

    r0c07d70 r4708657  
    9595 * @param port port number, starting from 1
    9696 */
    97 void usb_hub_process_interrupt(usb_hub_info_t *hub,
     97void usb_hub_process_port_interrupt(usb_hub_info_t *hub,
    9898    uint16_t port) {
    9999        usb_log_debug("Interrupt at port %zu\n", (size_t) port);
  • uspace/drv/usbhub/ports.h

    r0c07d70 r4708657  
    7070
    7171
    72 void usb_hub_process_interrupt(usb_hub_info_t *hub,
     72void usb_hub_process_port_interrupt(usb_hub_info_t *hub,
    7373        uint16_t port);
    7474
  • uspace/drv/usbhub/usbhub.c

    r0c07d70 r4708657  
    168168                bool change = (change_bitmap[port / 8] >> (port % 8)) % 2;
    169169                if (change) {
    170                         usb_hub_process_interrupt(hub, port);
     170                        usb_hub_process_port_interrupt(hub, port);
    171171                }
    172172        }
     
    266266
    267267                if (!has_individual_port_powering) {
    268                         usb_log_debug("Has_global powering\n");
    269                         opResult = usb_hub_set_feature(hub_info->control_pipe,
    270                             USB_HUB_FEATURE_C_HUB_LOCAL_POWER);
    271                         if (opResult != EOK) {
    272                                 usb_log_error("Cannot power hub: %s\n",
    273                                     str_error(opResult));
    274                         }
     268                        //this setting actually makes no difference
     269                        usb_log_debug("Hub has global powering\n");
    275270                }
    276271
     
    280275                            port, USB_HUB_FEATURE_PORT_POWER);
    281276                        if (opResult != EOK) {
    282                                 usb_log_error("cannot power on port %zu: %s.\n",
     277                                usb_log_error("Cannot power on port %zu: %s.\n",
    283278                                    port, str_error(opResult));
    284279                        }
Note: See TracChangeset for help on using the changeset viewer.