OpenCloudOS-Kernel/drivers/soc/renesas
Geert Uytterhoeven 1d9ffbc6b1 soc: renesas: rmobile-sysc: Mark fwnode when PM domain is added
Currently, there are two drivers binding to the R-Mobile System
Controller (SYSC):
  - The rmobile-sysc driver registers PM domains from a core_initcall(),
    and does not use a platform driver,
  - The optional rmobile-reset driver registers a reset handler, and
    does use a platform driver.

As fw_devlink only considers devices, commit bab2d712ee ("PM:
domains: Mark fwnodes when their powerdomain is added/removed") works
only for PM Domain drivers where the DT node is a real device node, and
not for PM Domain drivers using a hierarchical representation inside a
subnode.  Hence if fw_devlink is enabled, probing of on-chip devices
that are part of the SYSC PM domain is deferred until the optional
rmobile-reset driver has been bound.   If the rmobile-reset driver is
not available, this will never happen, and thus lead to complete system
boot failures.

Fix this by explicitly marking the fwnode initialized.

Suggested-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210216123958.3180014-1-geert+renesas@glider.be
2021-03-08 10:25:00 +01:00
..
Kconfig soc: renesas: r8a779a0-sysc: Add r8a779a0 support 2020-09-16 08:57:31 +02:00
Makefile soc: renesas: r8a779a0-sysc: Add r8a779a0 support 2020-09-16 08:57:31 +02:00
r8a774a1-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a774b1-sysc.c soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
r8a774c0-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a774e1-sysc.c soc: renesas: rcar-sysc: Add r8a774e1 support 2020-07-13 10:34:41 +02:00
r8a779a0-sysc.c soc: renesas: r8a779a0-sysc: Add r8a779a0 support 2020-09-16 08:57:31 +02:00
r8a7742-sysc.c soc: renesas: rcar-sysc: Add R8A7742 support 2020-04-30 10:01:39 +02:00
r8a7743-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7745-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7779-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7790-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7791-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7792-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7794-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7795-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7796-sysc.c soc: renesas: rcar-sysc: Add R8A77961 support 2019-11-01 14:25:53 +01:00
r8a77470-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77965-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77970-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77980-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77990-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77995-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r9a06g032-smp.c ARM: shmobile: Add the R9A06G032 SMP enabler driver 2018-07-20 13:44:04 +02:00
rcar-rst.c soc: renesas: rcar-rst: Add support for R-Car V3U 2020-09-10 17:01:38 +02:00
rcar-sysc.c soc: renesas: rcar-sysc: Mark device node OF_POPULATED after init 2021-01-29 09:10:25 +01:00
rcar-sysc.h soc: renesas: rcar-sysc: Add r8a774e1 support 2020-07-13 10:34:41 +02:00
renesas-soc.c soc: renesas: Identify R-Car V3U 2020-09-10 17:01:38 +02:00
rmobile-sysc.c soc: renesas: rmobile-sysc: Mark fwnode when PM domain is added 2021-03-08 10:25:00 +01:00