[PATCH 0/2] PM: domains: use separate lockdep class for each genpd

From: Dmitry Baryshkov
Date: Fri Jun 11 2021 - 06:17:00 EST


It is not possible to always use mutex nesting when locking/unlocking
genpds. See for example the trace in the patch#2, where genpd calls are
broken with regulator calls (genpd enables regulator, regulator uses
another genpd). This causes lockdep to print a false warning and stop
reporting further warnings. Break this by introducing per-domain lock
classes and use them to clearly track genpd locking sequences.