summaryrefslogtreecommitdiff
path: root/mm/maccess.c
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2015-07-23 15:19:01 (GMT)
committerThierry Reding <thierry.reding@gmail.com>2015-08-17 14:35:13 (GMT)
commit4a627b52e47ee09348773a981f2097f69ff349ee (patch)
tree2e61c4291ef4601efe34e4cbe9f9b52290f3f2d3 /mm/maccess.c
parentfe0aea7978d25d8df6c128481b8111e76d972657 (diff)
downloadlinux-4a627b52e47ee09348773a981f2097f69ff349ee.tar.xz
pwm-pca9685: Fix several driver bugs
Problems: - When duty_ns == period_ns, the full OFF bit was not cleared and the PWM output of the PCA9685 stayed off. - When duty_ns == period_ns and the catch-all channel was used, the ALL_LED_OFF_L register was not cleared. - The full ON bit was not cleared when setting the OFF time, therefore the exact OFF time was ignored when setting a duty_ns < period_ns Solution: Clear both OFF registers when setting full ON and clear the full ON bit when changing the OFF registers. Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'mm/maccess.c')
0 files changed, 0 insertions, 0 deletions