From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Mon, 7 Jul 2014 10:54:11 +0200 Subject: [PATCH v3 2/9] clk: sunxi: Fix gate indexing for sun6i-a31-apb0-gates In-Reply-To: <1404399349-20237-3-git-send-email-wens@csie.org> References: <1404399349-20237-1-git-send-email-wens@csie.org> <1404399349-20237-3-git-send-email-wens@csie.org> Message-ID: <20140707085411.GE16262@lukather> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jul 03, 2014 at 10:55:42PM +0800, Chen-Yu Tsai wrote: > sun6i-a31-apb0-gates supports using clock-indices for holes between > individual gates. However, the driver passes the number of gates > registered in clk_data->clk_num, which of_clk_src_onecell_get uses > to recognize the range of valid indices a consumer can use. > > This patch makes the driver pass the maximum gate index + 1, so > of_clk_src_onecell_get does not complain about indices greater > than gates registered. > > This was tested on the A23 SoC, which has a similar APB0 clock, > but has holes for gates to removed IP blocks. > > Signed-off-by: Chen-Yu Tsai > Acked-by: Maxime Ripard Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: