diff options
author | Sven Van Asbroeck <[email protected]> | 2017-04-13 08:58:11 -0400 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2017-04-13 17:35:01 +0200 |
commit | c40c461e1944b9cfb520e04184ec1e5c80fb210b (patch) | |
tree | 3cb325c560e78a27eefe1c4562dbb08ace57c804 /scripts/gdb/linux/proc.py | |
parent | 6db249db5ed9c09e396ed77811853cbd63415f0a (diff) |
pwm: pca9685: Fix GPIO-only operation
GPIO-only driver operation never clears the SLEEP bit, which can cause
the GPIOs to become unusable.
Example:
1. user requests first PWM -> driver clears SLEEP bit
2. user frees last PWM -> driver sets SLEEP bit
3. user requests GPIO
4. user switches GPIO on -> output does not turn on
because SLEEP bit is set
Prevent this behaviour by letting the runtime PM framework control the
SLEEP bit. This will put the chip to SLEEP if no PWMs/GPIOs are exported
or in use.
Fixes: bccec89f0a35 ("Allow any of the 16 PWMs to be used as a GPIO")
Reported-by: Sven Van Asbroeck <[email protected]>
Signed-off-by: Sven Van Asbroeck <[email protected]>
Suggested-by: Mika Westerberg <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions