]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: renesas: Pack reset identifier before look up
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 18 Mar 2023 11:30:53 +0000 (12:30 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 20 Mar 2023 01:46:44 +0000 (02:46 +0100)
commitafafaa2a8f3f0ef38fc55c5d830890adb508549f
treed5caa7f80be4456044ef7d332d92aba89695ed5b
parent318af47668aa2347ca9bbf2114cb9af1d8739aca
clk: renesas: Pack reset identifier before look up

The reset identifier must be processed via MOD_CLK_PACK() before it is
used to look up register and bit within reset_regs or reset_clear_regs
arrays, otherwise completely bogus register and bit is picked from the
arrays, one which may even be out of range.

Fixes: 326e05c5e21 ("clk: renesas: Add and enable CPG reset driver")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/clk/renesas/clk-rcar-gen3.c