]> git.baikalelectronics.ru Git - kernel.git/commit
clk: renesas: r9a06g032: Repair grave increment error
authorMarek Vasut <marex@denx.de>
Fri, 28 Oct 2022 11:38:34 +0000 (13:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:01 +0000 (11:41 +0100)
commita53781c8e26493dc885cc3435d72e295913b7f5b
tree5fc0c7f50ec6c9baf4b33a019d02eb6c82491f8f
parent8d863e1b855c05b3ddb21ad9569841374b47d307
clk: renesas: r9a06g032: Repair grave increment error

[ Upstream commit 02693e11611e082e3c4d8653e8af028e43d31164 ]

If condition (clkspec.np != pd->dev.of_node) is true, then the driver
ends up in an endless loop, forever, locking up the machine.

Fixes: 743a98c4ecb7 ("clk: renesas: r9a06g032: Add clock domain support")
Reviewed-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Gareth Williams <gareth.williams.jx@renesas.com>
Link: https://lore.kernel.org/r/20221028113834.7496-1-marex@denx.de
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/renesas/r9a06g032-clocks.c