Commit c670254f authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: davinci-mcasp: Discourage use of fck_parent for clock reparenting

The in-driver clock reparenting had been added when we did not had other
means to cleanly set the parent for the fck. Now we can use
assigned-clocks/assigned-clock-parents in DT binding. Print warning when
the fck_parent is present for McASP and recommend the switch to the proper
way to handle the clock selection.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92e963f5
...@@ -1517,6 +1517,8 @@ static int mcasp_reparent_fck(struct platform_device *pdev) ...@@ -1517,6 +1517,8 @@ static int mcasp_reparent_fck(struct platform_device *pdev)
if (!parent_name) if (!parent_name)
return 0; return 0;
dev_warn(&pdev->dev, "Update the bindings to use assigned-clocks!\n");
gfclk = clk_get(&pdev->dev, "fck"); gfclk = clk_get(&pdev->dev, "fck");
if (IS_ERR(gfclk)) { if (IS_ERR(gfclk)) {
dev_err(&pdev->dev, "failed to get fck\n"); dev_err(&pdev->dev, "failed to get fck\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment