]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: davinci: da850: fix infinite loop in clk_set_rate()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 7 Dec 2016 15:22:15 +0000 (16:22 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 2 Jan 2017 09:07:18 +0000 (14:37 +0530)
commit5d45b011c14a791ef23555a59ff7a3e6d213530f
tree370e161cb1df1c0d896839a4243dc68a611cfaa0
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
ARM: davinci: da850: fix infinite loop in clk_set_rate()

The aemif clock is added twice to the lookup table in da850.c. This
breaks the children list of pll0_sysclk3 as we're using the same list
links in struct clk. When calling clk_set_rate(), we get stuck in
propagate_rate().

Create a separate clock for nand, inheriting the rate of the aemif
clock and retrieve it in the davinci_nand module.

Cc: <stable@vger.kernel.org> # 4.9.x
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/da850.c