leds-pwm: issue in __led_pwm_set()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm using leds-pwm on an atmel sama5d31 based board. I have one
question/issue. In __led_pwm_set(), if the duty cycle is 0,
pwm_disable() is called. This won't work fine on that platform. What
happens is that pwm_config() correctly sets the duty cycle to 0 which is
behaving correctly with that controller (and in my case, putting the
line low). But the call to pwm_disable() is making the pwm controller
release the line and then it is set to high.

I've tried various configurations, like configuring a pull-down on the
pin but I still observe the same behavior. For now, I have a workaround
in atmel-pwm (I activate the output overdrive when duty cycle is 0). But
I believe, we should find another way to do that.

Any input is appreciated.

Regards,

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux