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

Changeset 580b330 in mainline


Ignore:
Timestamp:
2014-01-25T20:08:25Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.