Skip to content

Commit d8df31d

Browse files
Fugang DuanFugang Duan
authored andcommitted
ENGR00286060 arm: imx6q/dl: fix 1588 clock init fail
Bug log during kernel boot: ... failed to find fsl,imx6q-iomux-gpr regmap ... The issue is imx6q_1588_init() is called before of_platform_populate(). of_platform_populate() walks the device tree and creates devices from nodes. imx6q_1588_init() call syscon_regmap_lookup_by_compatible() to get the device base on the given device node, since the device cannot created for the node, so it is failed. So, move the 1588 init function to behind of of_platform_populate(). Signed-off-by: Fugang Duan <[email protected]>
1 parent ea7d2ef commit d8df31d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/mach-imx/mach-imx6q.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,9 @@ static void __init imx6q_init_machine(void)
328328
if (parent == NULL)
329329
pr_warn("failed to initialize soc device\n");
330330

331-
imx6q_enet_init();
332-
333331
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);
334332

333+
imx6q_enet_init();
335334
imx_anatop_init();
336335
imx6_pm_init();
337336
imx6q_csi_mux_init();

0 commit comments

Comments
 (0)