Skip to content

leds/pwm: don't call pwm_disable when setting brightness

Uwe Kleine-König linux-arm-kernel linux-leds 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] leds/pwm: don't call pwm_disable when setting brightness
Quoted 19 lines · Uwe Kleine-K?nig

Hello,

some time ago I pointed out a problem with leds-pwm on i.MX28, because on this SoC it can happen that after:

	pwm_config(pwm, 0, period);
	pwm_disable(pwm);

the connected LED stays on. The mail thread is available at

	http://thread.gmane.org/gmane.linux.kernel/1381289

This series implements the outcome that didn't get any opposition, i.e. the pin state is explicitly undefined after pwm_disable. The first patch adds this fact to the general pwm docs, the second patch fixes the leds-pwm driver accordingly. The third patch is just a trivial fix that I noticed while patching the leds-pwm driver and not really related to any problem.

Quoted 2 lines

Best regards
Uwe

Ping. Even if patches 1 and 2 are maybe controversal, patch 3 should be ok.

Do you still have the problem addressed by the first two patches on your radar?

Best regards
Uwe

Quoted 8 lines

Uwe Kleine-K?nig (3):
pwm/doc: Clearify that the pin state after pwm_disable is undefined leds/pwm: Don't disable pwm when setting brightness to 0 leds/pwm: fix driver description and make license match the header

 Documentation/pwm.txt   |  5 +++++
 drivers/leds/leds-pwm.c | 14 +++++++-------
 2 files changed, 12 insertions(+), 7 deletions(-)
Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |