Skip to content

misc: atmel_pwm: fix probe dependencies

Johan Hovold linux-arm-kernel lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2misc: atmel_pwm: add deferred-probing supportdrivers/misc/atmel_pwm.c+4 -22 replies
2/2misc: atmel_pwm: set initcall level to subsysdrivers/misc/atmel_pwm.c+11 -17 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] misc: atmel_pwm: fix probe dependencies

Two drivers (atmel-pwm-bl and leds-atmel-pwm) currently depend on the atmel_pwm driver to have bound to any pwm-device before their devices are probed.

The first patch adds deferred-probing support to the atmel_pwm driver to handle such dependencies. Note that the atmel-pwm-bl driver in linux-next supports deferred probing since commit 9d3fde86b ("backlight:
atmel-pwm-bl: fix deferred probe from __init").

Although deferred probing is sufficient to deal with the dependency problem, relying on deferred probing for the backlight driver is not desirable as it may cause unnecessary delays before enabling the backlight at boot. The second patch fixes this by making sure pwm-devices are probed before any backlight devices.

Johan

Johan Hovold (2):
misc: atmel_pwm: add deferred-probing support
misc: atmel_pwm: set initcall level to subsys

 drivers/misc/atmel_pwm.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.4