All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: pl300: enable the clock to PL330 dma
@ 2015-05-04  4:28 dinguyen
  2015-05-04  5:30 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 13+ messages in thread
From: dinguyen @ 2015-05-04  4:28 UTC (permalink / raw)
  To: dan.j.williams
  Cc: dinh.linux, vinod.koul, dmaengine, linux-kernel, Dinh Nguyen

From: Dinh Nguyen <dinguyen@opensource.altera.com>

Turn on the clock to the PL330 DMA if there is a clock node provided.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
 drivers/dma/pl330.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 0e1f567..82eb641 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2894,6 +2894,10 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
 
 	adev->dev.dma_parms = &pl330->dma_parms;
 
+	adev->pclk = devm_clk_get(&adev->dev, "apb_pclk");
+	if (adev->pclk)
+		clk_prepare_enable(adev->pclk);
+
 	/*
 	 * This is the limit for transfers with a buswidth of 1, larger
 	 * buswidths will have larger limits.
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-05-21 16:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04  4:28 [PATCH] dmaengine: pl300: enable the clock to PL330 dma dinguyen
2015-05-04  5:30 ` Krzysztof Kozlowski
2015-05-04 13:28   ` Dinh Nguyen
2015-05-04 13:50     ` Krzysztof Kozlowski
2015-05-04 14:06       ` Dinh Nguyen
2015-05-04 19:52         ` Dinh Nguyen
2015-05-05  3:55           ` Krzysztof Kozlowski
2015-05-05 14:56             ` Dinh Nguyen
2015-05-05 19:22               ` Dinh Nguyen
2015-05-20 20:30                 ` Dinh Nguyen
2015-05-21  0:16                   ` Krzysztof Kozlowski
2015-05-21  0:35                     ` Krzysztof Kozlowski
2015-05-21 16:12                       ` Dinh Nguyen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.