mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Prashant Gaikwad <pgaikwad@nvidia.com>
To: <swarren@nvidia.com>, <linux-tegra@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <linux-kernel@vger.kernel.org>, <olof@lixom.net>,
	Prashant Gaikwad <pgaikwad@nvidia.com>,
	<grant.likely@secretlab.ca>,
	<spi-devel-general@lists.sourceforge.net>
Subject: [PATCH 6/9] spi/tegra: add clk_prepare/clk_unprepare
Date: Fri, 1 Jun 2012 14:42:45 +0530	[thread overview]
Message-ID: <1338541968-7961-7-git-send-email-pgaikwad@nvidia.com> (raw)
In-Reply-To: <1338541968-7961-1-git-send-email-pgaikwad@nvidia.com>

Use clk_prepare/clk_unprepare as required by the generic clk framework.

This patch should go through Tegra tree since other patches to port Tegra
to generic clock framework are dependent on it. Posting here to get ack from
the maintainers.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
---
 drivers/spi/spi-tegra.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c
index ae6d78a..7f99ff3 100644
--- a/drivers/spi/spi-tegra.c
+++ b/drivers/spi/spi-tegra.c
@@ -261,7 +261,7 @@ static void spi_tegra_start_transfer(struct spi_device *spi,
 		clk_set_rate(tspi->clk, speed);
 
 	if (tspi->cur_speed == 0)
-		clk_enable(tspi->clk);
+		clk_prepare_enable(tspi->clk);
 
 	tspi->cur_speed = speed;
 
@@ -373,7 +373,7 @@ static void tegra_spi_rx_dma_complete(struct tegra_dma_req *req)
 			spi = m->state;
 			spi_tegra_start_message(spi, m);
 		} else {
-			clk_disable(tspi->clk);
+			clk_disable_unprepare(tspi->clk);
 			tspi->cur_speed = 0;
 		}
 	}
-- 
1.7.4.1


  parent reply	other threads:[~2012-06-01  9:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01  9:12 [PATCH 0/9] Add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-01  9:12 ` [PATCH 1/9] ARM: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-01 12:22   ` Sergei Shtylyov
2012-06-01  9:12 ` [PATCH 2/9] i2c: tegra: Add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-01  9:12 ` [PATCH 3/9] mmc: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-01  9:12 ` [PATCH 4/9] USB: ehci-tegra: " Prashant Gaikwad
2012-06-01  9:12 ` [PATCH 5/9] Input: tegra-kbc - " Prashant Gaikwad
2012-06-01  9:12 ` Prashant Gaikwad [this message]
2012-06-01  9:12 ` [PATCH 7/9] staging: nvec: " Prashant Gaikwad
2012-06-01 17:31   ` Marc Dietrich
2012-06-01  9:12 ` [PATCH 8/9] ASoC: tegra: " Prashant Gaikwad
2012-06-01  9:12 ` [PATCH 9/9] crypto: " Prashant Gaikwad
2012-06-01 14:48 ` [PATCH 0/9] Add clk_prepare/clk_unprepare Mark Brown

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=1338541968-7961-7-git-send-email-pgaikwad@nvidia.com \
    --to=pgaikwad@nvidia.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=spi-devel-general@lists.sourceforge.net \
    --cc=swarren@nvidia.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

all inboxes | Powered by JetHome®