Commit 765f55b2 authored by Jonathan Marek's avatar Jonathan Marek Committed by Luca Weiss

HACK: delay rpm init

Delay RPM init. This is a hack that somehow fixes some problems.
Hopefully the need for this patches goes away once the IOMMU is
working.
Signed-off-by: Jonathan Marek's avatarJonathan Marek <[email protected]>
Signed-off-by: Brian Masney's avatarBrian Masney <[email protected]>
parent b2451634
......@@ -15,6 +15,7 @@
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/soc/qcom/smd-rpm.h>
#include <linux/delay.h>
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/mfd/qcom-rpm.h>
......@@ -770,6 +771,9 @@ static int rpm_smd_clk_probe(struct platform_device *pdev)
rcc->clks = rpm_smd_clks;
rcc->num_clks = num_clks;
/* delay rpm init, somehow this fixes some problems */
usleep_range(100000, 110000);
for (i = 0; i < num_clks; i++) {
if (!rpm_smd_clks[i])
continue;
......
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