soc: imx: gpcv2: add lockdep annotation
authorLucas Stach <l.stach@pengutronix.de>
Sat, 2 Oct 2021 00:59:40 +0000 (02:59 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Oct 2021 12:13:23 +0000 (20:13 +0800)
commitfadf79a07b48af66e367b49c3a445a1282148fcf
tree6204e799f75cb81313f5e9d380b3c97e6df7c485
parent2b2f106eb55276a60a89ac27a52d0d738b57a546
soc: imx: gpcv2: add lockdep annotation

Some of the GPCv2 power domains are nested inside each other without
visibility to lockdep at the genpd level, as they are in separate
driver instances and don't have a parent/child power-domain relationship.

Add a subclass annotation to the nested domains to let lockdep know that
it is okay to take the genpd lock in a nested fashion.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c