Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 68b9f148 in mainline


Ignore:
Timestamp:
2011-05-18T10:46:48Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
aeca5a3
Parents:
33d19a7
Message:

OHCI: restart hw on unrecoverable error

File:
1 edited

Legend:

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

    r33d19a7 r68b9f148  
    293293                rh_interrupt(&instance->rh);
    294294
    295 
    296295        if (status & I_WDH) {
    297296                fibril_mutex_lock(&instance->guard);
     
    316315                fibril_mutex_unlock(&instance->guard);
    317316        }
     317
     318        if (status & I_UE) {
     319                hc_start_hw(instance);
     320        }
     321
    318322}
    319323/*----------------------------------------------------------------------------*/
     
    450454{
    451455        assert(instance);
    452 
    453456#define SETUP_ENDPOINT_LIST(type) \
    454457do { \
     
    458461                usb_log_error("Failed(%d) to setup %s endpoint list.\n", \
    459462                    ret, name); \
    460                 endpoint_list_fini(&instance->lists[USB_TRANSFER_ISOCHRONOUS]); \
     463                endpoint_list_fini(&instance->lists[USB_TRANSFER_ISOCHRONOUS]);\
    461464                endpoint_list_fini(&instance->lists[USB_TRANSFER_INTERRUPT]); \
    462465                endpoint_list_fini(&instance->lists[USB_TRANSFER_CONTROL]); \
Note: See TracChangeset for help on using the changeset viewer.