Changeset 07645906 in mainline for uspace/drv/bus/usb/ehci/hc.c


Ignore:
Timestamp:
2014-01-26T04:46:48Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cbfbdc3
Parents:
00bbc362
Message:

ehci: Report fatal errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hc.c

    r00bbc362 r07645906  
    308308        status = EHCI_RD(status);
    309309        assert(instance);
     310
    310311        if (status & USB_STS_PORT_CHANGE_FLAG) {
    311312                ehci_rh_interrupt(&instance->rh);
    312313        }
     314
    313315        if (status & USB_STS_IRQ_ASYNC_ADVANCE_FLAG) {
    314316                fibril_mutex_lock(&instance->guard);
     
    316318                fibril_mutex_unlock(&instance->guard);
    317319        }
     320
    318321        if (status & (USB_STS_IRQ_FLAG | USB_STS_ERR_IRQ_FLAG)) {
    319322                fibril_mutex_lock(&instance->guard);
     
    334337        }
    335338
     339        if (status & USB_STS_HOST_ERROR_FLAG) {
     340                usb_log_fatal("HOST CONTROLLER SYSTEM ERROR!\n");
     341                //TODO do something here
     342        }
    336343}
    337344
Note: See TracChangeset for help on using the changeset viewer.