Thread (7 messages) flat view 7 messages, 3 authors, 2018-01-23

[1/4] dmaengine: qcom: bam_dma: make bam clk optional

From: Srinivas Kandagatla <hidden>
Date: 2018-01-23 09:20:36
Also in: linux-arm-msm, linux-devicetree, lkml

On 23/01/18 09:19, Vinod Koul wrote:
On Mon, Jan 22, 2018 at 09:55:01AM +0000, Srinivas Kandagatla wrote:
quoted
quoted
quoted
@@ -1180,13 +1180,14 @@ static int bam_dma_probe(struct platform_device *pdev)
  						"qcom,controlled-remotely");
  	bdev->bamclk = devm_clk_get(bdev->dev, "bam_clk");
but you still do clk_get unconditionally?
Only reason to do this way is to not break existing users in the mainline.

remotely controlled BAM is already supported in upstream driver, there are
users of this who pass clk from device tree, If I make this conditional then
subsequent reads to the BAM registers for those instances might crash the
system.
But these instances are remote controlled, so if we stop representing them
in Linux, why would we read them?
Plan is that we would transition those users once we get these 
bindings/changes in. Currently I don't have access to any of those 
devices so I made the changes safe, such that it does not break devices 
on mainline.

--srini
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help