OSDN Git Service

soc: renesas: r8a77990-sysc: Fix initialization order of 3DG-{A,B}
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 5 Dec 2018 15:39:42 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:52:29 +0000 (08:52 +0100)
commit24e9c85c6ea0c37015f39250ac07955000521ef4
tree35b06bf180630bb0386eadb4058f0ae9bb22c5fa
parentf033651fba25689f1bfa87bed8140add1b5adeab
soc: renesas: r8a77990-sysc: Fix initialization order of 3DG-{A,B}

[ Upstream commit b0d7fbf8b174168c580bb310964c3c809e5569a9 ]

The workaround for the wrong hierarchy of the 3DG-{A,B} power
domains on R-Car E3 ES1.0 corrected the parent domains.
However, the 3DG-{A,B} power domains were still initialized and powered
in the wrong order, causing 3DG operation to fail.

Fix this by changing the order in the table at runtime, when running on
an affected SoC.

Fixes: 086b399965a7ee7e ("soc: renesas: r8a77990-sysc: Add workaround for 3DG-{A,B}")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/renesas/r8a77990-sysc.c