Changeset 3de48b5 in mainline for uspace/drv/uhci-rhd/port.c


Ignore:
Timestamp:
2011-02-26T11:20:56Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48563a3
Parents:
0063838
Message:

Switch back to polling

reduce debug verbosity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    r0063838 r3de48b5  
    9292        uhci_port_t *port_instance = port;
    9393        assert(port_instance);
     94//      port_status_write(port_instance->address, 0);
    9495
    9596        while (1) {
     
    103104                usb_log_debug("Port %d status at %p: 0x%04x.\n",
    104105                  port_instance->number, port_instance->address, port_status);
    105                 print_port_status(port_status);
     106//              print_port_status(port_status);
    106107                fibril_mutex_unlock(&dbg_mtx);
    107108
     
    115116                        }
    116117
     118                        port_status_write(port_instance->address, port_status);
     119                        usb_log_debug("Change status ack on port %d.\n",
     120                            port_instance->number);
     121
    117122                        /* remove any old device */
    118123                        if (port_instance->attached_device) {
     
    121126                                uhci_port_remove_device(port_instance);
    122127                        }
    123 
    124                         port_status_write(port_instance->address, STATUS_CONNECTED_CHANGED);
    125                         usb_log_debug("Change status erased on port %d.\n",
    126                             port_instance->number);
    127128
    128129                        if (port_status & STATUS_CONNECTED) {
Note: See TracChangeset for help on using the changeset viewer.