msm: clock-9615: Revert to disabling dynamic gating for dma_bam_p_clk
Some bootloaders are still in use which enable dynamic hardware clock
gating for this clock. Re-apply the Linux workaround to forcefully
disable it since it is not supported.
Change-Id: I44909d6cd1913a9a8efe8f96013fa686e8931929
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-9615.c b/arch/arm/mach-msm/clock-9615.c
index ac68d7a..0bdacec 100644
--- a/arch/arm/mach-msm/clock-9615.c
+++ b/arch/arm/mach-msm/clock-9615.c
@@ -1834,6 +1834,14 @@
regval = readl_relaxed(PMEM_ACLK_CTL_REG);
regval &= ~BIT(6);
writel_relaxed(regval, PMEM_ACLK_CTL_REG);
+
+ /*
+ * Disable hardware clock gating for dma_bam_p_clk, which does
+ * not have working support for the feature.
+ */
+ regval = readl_relaxed(DMA_BAM_HCLK_CTL);
+ regval &= ~BIT(6);
+ writel_relaxed(regval, DMA_BAM_HCLK_CTL);
}
/* Local clock driver initialization. */