RE: [PATCH v3 3/6] drivers: clk-qoriq: increase array size of cmux_to_group
> -Original Message- > From: Stephen Boyd > Sent: Tuesday, October 2, 2018 3:34 AM > To: Vabhav Sharma ; a...@arndb.de; > catalin.mari...@arm.com; devicet...@vger.kernel.org; > gre...@linuxfoundation.org; kstew...@linuxfoundation.org; linux-arm- > ker...@lists.infradead.org; linux-...@vger.kernel.org; linux-kernel- > ow...@vger.kernel.org; linux-ker...@vger.kernel.org; linux- > p...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; mark.rutl...@arm.com; > mturque...@baylibre.com; o...@buserror.net; r...@rjwysocki.net; > robh...@kernel.org; sudeep.ho...@arm.com; viresh.ku...@linaro.org; > will.dea...@arm.com; yamada.masah...@socionext.com > Cc: li...@armlinux.org.uk; Varun Sethi ; Udit Kumar > ; Yogesh Narayan Gaur > ; Vabhav Sharma > Subject: Re: [PATCH v3 3/6] drivers: clk-qoriq: increase array size of > cmux_to_group > > Subject should be "clk: qoriq: increase array size ..." Ok
Re: [PATCH v3 3/6] drivers: clk-qoriq: increase array size of cmux_to_group
Subject should be "clk: qoriq: increase array size ..."
[PATCH v3 3/6] drivers: clk-qoriq: increase array size of cmux_to_group
From: Yogesh Gaur Increase size of cmux_to_group array, to accomdate entry of -1 termination. Added -1, terminated, entry for 4080_cmux_grpX. Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma --- drivers/clk/clk-qoriq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 3a1812f..e152bfb 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -79,7 +79,7 @@ struct clockgen_chipinfo { const struct clockgen_muxinfo *cmux_groups[2]; const struct clockgen_muxinfo *hwaccel[NUM_HWACCEL]; void (*init_periph)(struct clockgen *cg); - int cmux_to_group[NUM_CMUX]; /* -1 terminates if fewer than NUM_CMUX */ + int cmux_to_group[NUM_CMUX+1]; /* array should be -1 terminated */ u32 pll_mask; /* 1 << n bit set if PLL n is valid */ u32 flags; /* CG_xxx */ }; @@ -601,7 +601,7 @@ static const struct clockgen_chipinfo chipinfo[] = { _cmux_grp1, _cmux_grp2 }, .cmux_to_group = { - 0, 0, 0, 0, 1, 1, 1, 1 + 0, 0, 0, 0, 1, 1, 1, 1, -1 }, .pll_mask = 0x1f, }, -- 2.7.4