[PATCH 1/2] PM / runtime: Allow drivers to override runtime PM behaviour on sleep

Rafael J. Wysocki rafael at kernel.org
Thu Nov 28 16:14:51 UTC 2019


On Thu, Nov 28, 2019 at 5:03 PM Thierry Reding <thierry.reding at gmail.com> wrote:
>
> From: Thierry Reding <treding at nvidia.com>
>
> Currently the driver PM core will automatically acquire a runtime PM
> reference for devices before system sleep is entered. This is needed
> to avoid potential issues related to devices' parents getting put to
> runtime suspend at the wrong time and causing problems with their
> children.

Not only for that.

> In some cases drivers are carefully written to avoid such issues and
> the default behaviour can be changed to allow runtime PM to operate
> regularly during system sleep.

But this change breaks quite a few assumptions in the core too, so no,
it can't be made.

Thanks!


More information about the dri-devel mailing list