]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Mark all devices as "might sleep"
authorThierry Reding <thierry.reding@gmail.com>
Thu, 21 Jan 2016 14:04:59 +0000 (15:04 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 21 Jan 2016 14:04:59 +0000 (15:04 +0100)
commit3e8b07df5ec61b1a34fee2f5b270796035d38318
tree8afb1372654d843dca5e0969ddfd58cb5bda7c3a
parent8c4f5a29eaf57c41faf42609ceabf43dc48c0ec1
pwm: Mark all devices as "might sleep"

Commit 90c8d3bb032c ("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: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c