]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: g12a: mark fclk_div2 as critical
authorStefan Agner <stefan@agner.ch>
Fri, 28 Aug 2020 15:52:05 +0000 (17:52 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Sat, 29 Aug 2020 14:16:18 +0000 (16:16 +0200)
commit8a09912207c4efde66fd52edb44aeb67800144dd
tree164eeb93fb761294a863a957ea8d9211f2179bf5
parentfdd4525095c9629db6c2907015cb52cedefff940
clk: meson: g12a: mark fclk_div2 as critical

On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2
seems to be necessary for the system to operate correctly as well.

Typically, the clock also gets chosen by the eMMC peripheral. This
probably masked the problem so far. However, when booting from a SD
card the clock seems to get disabled which leads to a system freeze.

Let's mark this clock as critical, fixing boot from SD card on G12b
platforms.

Fixes: f321fd7c8b55 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/577e0129e8ee93972d92f13187ff4e4286182f67.1598629915.git.stefan@agner.ch
drivers/clk/meson/g12a.c