[PATCH v2 0/5] Fix the gate2 and make it more flexible

From: Abel Vesa
Date: Wed Oct 28 2020 - 18:25:50 EST


First version here: https://lkml.org/lkml/2020/10/26/988

Changes since v1:
* split the work in multiple iterative patches

Abel Vesa (5):
clk: imx: gate2: Remove the IMX_CLK_GATE2_SINGLE_BIT special case
clk: imx: gate2: Keep the register writing in on place
clk: imx: gate2: Check if clock is enabled against cgr_val
clk: imx: gate2: Add cgr_mask for more flexible number of control bits
clk: imx: gate2: Add locking in is_enabled op

drivers/clk/imx/clk-gate2.c | 65 +++++++++++++++++++++------------------------
drivers/clk/imx/clk.h | 27 +++++++++----------
2 files changed, 43 insertions(+), 49 deletions(-)

--
2.7.4