• Kalle Jokiniemi's avatar
    OMAP: Fix race condition with autodeps · a0219fbd
    Kalle Jokiniemi authored
    There is a possible race condition in clockdomain
    code handling hw supported idle transitions.
    
    When multiple autodeps dependencies are being added
    or removed, a transition of still remaining dependent
    powerdomain can result in false readings of the
    state counter. This is especially fatal for off mode
    state counter, as it could result in a driver not
    noticing a context loss.
    
    Fixed by disabling hw supported state transitions
    when autodeps are being changed.
    Signed-off-by: default avatarKalle Jokiniemi <kalle.jokiniemi@digia.com>
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    a0219fbd
clockdomain.c 16.6 KB