]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remov...
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 15 Aug 2023 13:15:58 +0000 (14:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:11:12 +0000 (16:11 +0200)
commit6ed06b94f68363f4bc53608623059170d3689f4e
tree1abb3421fbd2e4ac6d71ef0ba9efb14b133f1a70
parent3fb1b959af17a723491fb8776562274d229c9bfb
pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}

[ Upstream commit 8fcc1c40b747069644db6102c1d84c942c9d4d86 ]

The pinctrl group and function creation/remove calls expect
caller to take care of locking. Add lock around these functions.

Fixes: b59d0e782706 ("pinctrl: Add RZ/A2 pin and gpio controller")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230815131558.33787-4-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/renesas/pinctrl-rza2.c