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


Ignore:
Timestamp:
2014-01-25T20:08:25Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1803b7d
Parents:
d97f91f
Message:

ehci: Use correct flag to detect async advance event

Use mutex to protect against missed wakeup

File:
1 edited

Legend:

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

    rd97f91f r580b330  
    311311                ehci_rh_interrupt(&instance->rh);
    312312        }
    313         if (status & USB_STS_ASYNC_SCHED_FLAG) {
     313        if (status & USB_STS_IRQ_ASYNC_ADVANCE_FLAG) {
     314                fibril_mutex_lock(&instance->guard);
    314315                fibril_condvar_signal(&instance->async_doorbell);
     316                fibril_mutex_unlock(&instance->guard);
    315317        }
    316318        if (status & (USB_STS_IRQ_FLAG | USB_STS_ERR_IRQ_FLAG)) {
Note: See TracChangeset for help on using the changeset viewer.