mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <dinguyen@opensource.altera.com>
To: <dan.j.williams@intel.com>
Cc: <dinh.linux@gmail.com>, <vinod.koul@intel.com>,
	<dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Dinh Nguyen <dinguyen@opensource.altera.com>
Subject: [PATCH] dmaengine: pl300: enable the clock to PL330 dma
Date: Sun, 3 May 2015 23:28:54 -0500	[thread overview]
Message-ID: <1430713734-12175-1-git-send-email-dinguyen@opensource.altera.com> (raw)

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


             reply	other threads:[~2015-05-04  4:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04  4:28 dinguyen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1430713734-12175-1-git-send-email-dinguyen@opensource.altera.com \
    --to=dinguyen@opensource.altera.com \
    --cc=dan.j.williams@intel.com \
    --cc=dinh.linux@gmail.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome