• Eliad Peller's avatar
    wl12xx: avoid premature elp entrance · a665d6e2
    Eliad Peller authored
    The elp_work is being enqueued on wl1271_ps_elp_sleep, but doesn't get
    cancelled on wl1271_ps_elp_wakeup. This might cause immediate entrance
    to elp when the wl->mutex is being released, rather than using the delayed
    enqueueing optimization.
    
    Cancel elp_work on wakeup request, and add a new WL1271_FLAG_ELP_REQUESTED
    flag to further synchronize the elp actions.
    
    [Fixed a couple of typos in some comments -- Luca]
    Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
    Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
    a665d6e2
ps.c 6.45 KB