• T
    pwm: Mark all devices as "might sleep" · ff01c944
    Thierry Reding 提交于
    Commit d1cd2142 ("pwm: Set enable state properly on failed call to
    enable") introduced a mutex that is needed to protect internal state of
    PWM devices. Since that mutex is acquired in pwm_set_polarity() and in
    pwm_enable() and might potentially block, all PWM devices effectively
    become "might sleep".
    
    It's rather pointless to keep the .can_sleep field around, but given
    that there are external users let's postpone the removal for the next
    release cycle.
    Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
    ff01c944
core.c 21.4 KB