OpenCloudOS-Kernel/drivers/clk/meson
Martin Blumenstingl 72e1f23020 clk: meson: meson8b: mark fclk_div2 gate clocks as CLK_IS_CRITICAL
Until commit 05f814402d ("clk: meson: add fdiv clock gates") we
relied on the bootloader to enable the fclk_div clock gates. It turns
out that our clock tree is incomplete at least on Meson8b (tested with
an Odroid-C1, which uses an RGMII PHY) because after the mentioned
commit Ethernet is not working anymore (no RX/TX activity can be seen).
At the same time Ethernet was still working on Meson8m2 with a RMII PHY.

Testing has shown that as soon as "fclk_div2" is disabled Ethernet stops
working on Odroid-C1. Unfortunately it's currently not clear what the
Ethernet controller IP block uses the fclk_div2 clock for. Mark the
clock as CLK_IS_CRITICAL to keep it enabled (as it's already enabled by
most bootloaders by default, which is why we didn't notice it before).

Fixes: 05f814402d ("clk: meson: add fdiv clock gates")
Cc: stable@vger.kernel.org
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
2018-05-21 10:33:58 +02:00
..
Kconfig clk: meson-axg: Add AO Clock and Reset controller driver 2018-05-15 14:19:43 +02:00
Makefile clk: meson-axg: Add AO Clock and Reset controller driver 2018-05-15 14:19:43 +02:00
axg-aoclk.c clk: meson-axg: Add AO Clock and Reset controller driver 2018-05-15 14:19:43 +02:00
axg-aoclk.h clk: meson-axg: Add AO Clock and Reset controller driver 2018-05-15 14:19:43 +02:00
axg.c clk: meson: Drop unused local variable and add static 2018-03-14 15:36:31 -07:00
axg.h clk: meson: add fdiv clock gates 2018-03-13 10:09:58 +01:00
clk-audio-divider.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
clk-mpll.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
clk-pll.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
clk-regmap.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
clk-regmap.h clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
clkc.h clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
gxbb-aoclk-32k.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
gxbb-aoclk.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
gxbb-aoclk.h clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
gxbb.c clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
gxbb.h clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00
meson-aoclk.c clk: meson: aoclk: refactor common code into dedicated file 2018-05-15 14:19:42 +02:00
meson-aoclk.h clk: meson: aoclk: refactor common code into dedicated file 2018-05-15 14:19:42 +02:00
meson8b.c clk: meson: meson8b: mark fclk_div2 gate clocks as CLK_IS_CRITICAL 2018-05-21 10:33:58 +02:00
meson8b.h clk: meson: use SPDX license identifiers consistently 2018-05-18 12:08:29 +02:00