kernel_optimize_test/drivers/pwm
Alexandre Belloni 8db9e29fe5 pwm: atmel: Fix polarity handling
When atmel_pwm_config() calculates and then sets the prescaler, it is
overwriting the channel's CMR register so we are losing the CPOL
configuration.

As atmel_pwm_config() is always called before enabling a channel,
inverting the polarity doesn't work.

Fix that by reading CMR first and only overwriting the prescaler bits.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2014-03-18 20:47:31 +01:00
..
core.c pwm: use seq_puts() instead of seq_printf() 2013-12-20 10:53:41 +01:00
Kconfig pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
Makefile pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
pwm-ab8500.c
pwm-atmel-tcb.c
pwm-atmel.c pwm: atmel: Fix polarity handling 2014-03-18 20:47:31 +01:00
pwm-bfin.c
pwm-ep93xx.c pwm: ep93xx: split module author names 2013-12-20 10:53:50 +01:00
pwm-fsl-ftm.c pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
pwm-imx.c
pwm-jz4740.c pwm: jz4740: Use devm_clk_get() 2013-12-12 13:23:23 +01:00
pwm-lp3943.c pwm: Add LP3943 PWM driver 2014-01-21 08:28:00 +00:00
pwm-lpc32xx.c
pwm-mxs.c
pwm-pca9685.c
pwm-puv3.c
pwm-pxa.c pwm: pxa: Use of_match_ptr() 2014-02-26 16:14:57 +01:00
pwm-renesas-tpu.c
pwm-samsung.c pwm: samsung: Use SIMPLE_DEV_PM_OPS macro 2014-02-26 16:14:57 +01:00
pwm-spear.c
pwm-tegra.c
pwm-tiecap.c pwm: tiecap: Remove duplicate put_sync call 2014-01-23 15:19:18 +01:00
pwm-tiehrpwm.c pwm: tiehrpwm: use dev_err() instead of pr_err() 2013-12-20 11:03:17 +01:00
pwm-tipwmss.c
pwm-tipwmss.h
pwm-twl-led.c
pwm-twl.c
pwm-vt8500.c
sysfs.c pwm: sysfs: Convert to use ATTRIBUTE_GROUPS macro 2013-12-04 11:35:28 +01:00