Skip to content

PM: Make the PM core execute driver callbacks if subsystem ones are not present

Rafael J. Wysocki lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointersdrivers/base/power/main.c+95 -1020 replies
2/5PM: Run the driver callback directly if the subsystem one is not thereDocumentation/power/devices.txt Documentation/power/runtime_pm.txt drivers/base/power/main.c +1 more+170 -1150 replies
3/5PM / Sleep: Remove forward-only callbacks from platform bus typedrivers/base/platform.c include/linux/platform_device.h+1 -1440 replies
4/5PM / Sleep: Remove forward-only callbacks from AMBA bus typedrivers/amba/bus.c+1 -1350 replies
5/5PM: Drop generic_subsys_pm_opsarch/powerpc/kernel/vio.c drivers/base/power/generic_ops.c include/linux/pm.h+0 -391 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Update][PATCH 0/5] PM: Make the PM core execute driver callbacks if subsystem ones are not present

Hi,

I have one more patch for this series and a couple of fixes.

Quoted 8 lines · Rafael J. Wysocki

The following patchset changes the PM core so that driver callbacks are executed automatically when subsystem ones are not present and uses the new PM core's behavior to simplify the platform and AMBA bus types (there probably are many more bus types that may be simplified this way, but those two were the easiest targets for me).

The reasons why to do this are outlined in the changelog of the second patch.

[1/5] - Make pm_op and pm_noirq_op return callbacks
[2/5] - Make PM core call driver callbacks directly if subsystem ones are not present [3/5] - Remove unnecessary bus type PM callback from platform bus type [4/5] - Remove unnecessary bus type PM callback from AMBA bus type [5/5] - Drop generic_subsys_pm_ops

If there are no objections, I'd like to take these patches for 3.3.

Thanks,
Rafael