Skip to contentSkip to conversation

backlight: pwm: Handle EPROBE_DEFER while requesting the PWM

RFC Petr Cvek 1 participant 1 message Jul 23, 2015 PWM

lore
Share & tools
lore

Petr Cvek

author
#0 lore raw

Hello,
It seems, that commit

	68feaca0b13e453aa14ee064c1736202b48b342f

blocks the "legacy" call to request a PWM chip from PXA27x architecture (pwm_pxa). Checking for EPROBE_DEFER (default return from devm_pwm_get if pwm is not found) causes jump over it. Older versions of kernel (tested on 3.13-rc7) and modified 4.2.0-rc1 (commented goto) works.

My question is: Should I write patch modifying error checking path or rather migrate legacy PXA driver to new API (I can only test pwm_pxa and only on one specific device)?

Petr Cvek