]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
clk: renesas: r8a779a0: Fix R and OSC clocks
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 9 Nov 2020 15:26:14 +0000 (16:26 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:37:28 +0000 (16:37 +0100)
commitb1fb6338fc5bdd84b45357e5930149f6624ad95c
tree78b5aaf83f08612b9d243e188b6ad4e16fa7ae0d
parent32ddc282bfcbb86a2d17c77bf986c97f8f199ae9
clk: renesas: r8a779a0: Fix R and OSC clocks

BugLink: https://bugs.launchpad.net/bugs/1910111
[ Upstream commit 14653942de7f63e21ece32e3901f09a248598a43 ]

The R-Car V3U clock driver defines the R and OSC clocks using R-Car Gen3
clock types.  However, The R-Car V3U clock driver does not use the R-Car
Gen3 clock driver core, hence registering the R and OSC clocks fails:

    renesas-cpg-mssr e6150000.clock-controller: Failed to register core clock osc: -22
    renesas-cpg-mssr e6150000.clock-controller: Failed to register core clock r: -22

Fix this by introducing clock definition macros specific to R-Car V3U.
Note that rcar_r8a779a0_cpg_clk_register() already handled the related
clock types.  Drop the now unneeded include of rcar-gen3-cpg.h.

Fixes: 17bcc8035d2d19fc ("clk: renesas: cpg-mssr: Add support for R-Car V3U")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20201109152614.2465483-1-geert+renesas@glider.be
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/clk/renesas/r8a779a0-cpg-mssr.c