clk: imx: gate2: Add locking in is_enabled op
authorAbel Vesa <abel.vesa@nxp.com>
Wed, 28 Oct 2020 12:59:02 +0000 (14:59 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 2 Nov 2020 23:55:41 +0000 (07:55 +0800)
commit65188f07456d4a65b4a66069a701823878e098ff
tree44e73689406f400308f7282c20bc2ea279d9b3c2
parentbcd418a632b621510ebc731cb707d8fe3e873119
clk: imx: gate2: Add locking in is_enabled op

Protect against enabling/disabling the gate while we're
checking if it is enabled.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-gate2.c