kernel_optimize_test/drivers/pwm
Paul Kocialkowski 45c0ce847a pwm: twl: Reliably disable TWL6030 PWMs
The current TWL6030 code for the TWL PWM driver does not reliably disable the
PWM output, as tested with LEDs. The previous commit to that driver introduced
that regression.

However, it does make sense to disable the PWM clock after resetting the PWM,
but for some obscure reason, doing it all at once simply doesn't work.

The TWL6030 datasheet mentions that PWMs have to be disabled in two distinct
steps. However, clearing the clock enable bit in a second step (after issuing a
reset first) does not work.

The only approach that works is the one that was in place before the previous
commit to the driver. It consists in enabling the PWM clock after issuing a
reset. This is what TI kernel trees and production code seem to be using.

However, adding an extra step to disable the PWM clock seems to work reliably,
despite looking quite odd.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2016-09-05 07:13:47 +02:00
..
core.c Merge branch 'for-4.8/capture' into for-next 2016-07-25 16:23:39 +02:00
Kconfig pwm: Add ChromeOS EC PWM driver 2016-07-25 10:40:41 +02:00
Makefile pwm: Add ChromeOS EC PWM driver 2016-07-25 10:40:41 +02:00
pwm-ab8500.c
pwm-atmel-hlcdc.c pwm: atmel-hlcdc: Fix default PWM polarity 2016-06-14 10:51:45 +02:00
pwm-atmel-tcb.c
pwm-atmel.c pwm: atmel: Use of_device_get_match_data() 2016-07-11 12:49:36 +02:00
pwm-bcm-iproc.c pwm: Add support for Broadcom iProc PWM controller 2016-07-11 12:49:25 +02:00
pwm-bcm-kona.c
pwm-bcm2835.c
pwm-berlin.c
pwm-bfin.c
pwm-brcmstb.c
pwm-clps711x.c pwm: clps711x: Changing the compatibility string to match with the smallest supported chip 2016-07-06 17:38:17 +02:00
pwm-crc.c
pwm-cros-ec.c pwm: Add ChromeOS EC PWM driver 2016-07-25 10:40:41 +02:00
pwm-ep93xx.c
pwm-fsl-ftm.c
pwm-img.c
pwm-imx.c
pwm-jz4740.c
pwm-lp3943.c
pwm-lpc18xx-sct.c
pwm-lpc32xx.c pwm: lpc32xx: Set PWM_PIN_LEVEL bit to default value 2016-07-11 12:49:29 +02:00
pwm-lpss-pci.c pwm: lpss: pci: Enable PWM module on Intel Edison 2016-07-11 12:07:25 +02:00
pwm-lpss-platform.c
pwm-lpss.c pwm: lpss: Move clk_rate check to ->probe() 2016-07-11 12:49:24 +02:00
pwm-lpss.h
pwm-mtk-disp.c
pwm-mxs.c
pwm-omap-dmtimer.c pwm: omap-dmtimer: Allow for setting dmtimer clock source 2016-06-29 21:54:00 -07:00
pwm-pca9685.c
pwm-puv3.c
pwm-pxa.c
pwm-rcar.c
pwm-renesas-tpu.c
pwm-rockchip.c pwm: rockchip: Add support for atomic update 2016-07-11 12:49:28 +02:00
pwm-samsung.c
pwm-spear.c
pwm-sti.c
pwm-stmpe.c pwm: Add a driver for the STMPE PWM 2016-07-11 12:49:29 +02:00
pwm-sun4i.c
pwm-tegra.c pwm: tegra: Add support for Tegra186 2016-07-11 12:49:34 +02:00
pwm-tiecap.c pwm: pwm-ti*: Remove support for local clock gating 2016-07-11 12:07:18 +02:00
pwm-tiehrpwm.c pwm: pwm-ti*: Remove support for local clock gating 2016-07-11 12:07:18 +02:00
pwm-tipwmss.c pwm: pwm-ti*: Remove support for local clock gating 2016-07-11 12:07:18 +02:00
pwm-twl-led.c
pwm-twl.c pwm: twl: Reliably disable TWL6030 PWMs 2016-09-05 07:13:47 +02:00
pwm-vt8500.c
sysfs.c Merge branch 'for-4.8/capture' into for-next 2016-07-25 16:23:39 +02:00