Skip to content

Commit

Permalink
ENGR00286060 arm: imx6q/dl: fix 1588 clock init fail
Browse files Browse the repository at this point in the history
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  <B38611@freescale.com>
  • Loading branch information
Fugang Duan authored and Fugang Duan committed Nov 5, 2013
1 parent ea7d2ef commit d8df31d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/mach-imx6q.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,9 @@ static void __init imx6q_init_machine(void)
if (parent == NULL)
pr_warn("failed to initialize soc device\n");

imx6q_enet_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);

imx6q_enet_init();
imx_anatop_init();
imx6_pm_init();
imx6q_csi_mux_init();
Expand Down

0 comments on commit d8df31d

Please sign in to comment.