]> git.baikalelectronics.ru Git - uboot.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)
commit42f5ce2074efc7d7ae6fe15872e0f489c1fd97f9
treed5caa7f80be4456044ef7d332d92aba89695ed5b
parent03be9a2f0ff59af4f251824a78c1f481cc231213
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: 97c9d810b50 ("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