Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: actions: Terminate clk_div_table with sentinel element

In order that the end of a clk_div_table can be detected, it must be
terminated with a sentinel element (.div = 0).

In owl-s900.s, the { 0, 8 } element was probably meant to be just that,
so this patch changes { 0, 8 } to { 0, 0 }.

Fixes: d47317ca4ade1 ("clk: actions: Add S700 SoC clock support")
Fixes: d85d20053e195 ("clk: actions: Add S900 SoC clock support")
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/20220218000922.134857-2-j.neuschaefer@gmx.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jonathan Neuschäfer and committed by
Stephen Boyd
d8a441e5 e783362e

+2 -1
+1
drivers/clk/actions/owl-s700.c
··· 162 162 163 163 static struct clk_div_table rmii_div_table[] = { 164 164 {0, 4}, {1, 10}, 165 + {0, 0} 165 166 }; 166 167 167 168 /* divider clocks */
+1 -1
drivers/clk/actions/owl-s900.c
··· 140 140 141 141 static struct clk_div_table usb3_mac_div_table[] = { 142 142 { 1, 2 }, { 2, 3 }, { 3, 4 }, 143 - { 0, 8 }, 143 + { 0, 0 } 144 144 }; 145 145 146 146 static struct clk_div_table i2s_div_table[] = {