Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1199438

[PATCH 2/3] spi: ppc44x: Remove chipselect from setupxfer

From Nicolas Boichat <drinkcat@chromium.org>
Newsgroups linux.kernel
Subject [PATCH 2/3] spi: ppc44x: Remove chipselect from setupxfer
Date 2015-08-04 08:20 +0200
Message-ID <pTDJU-27d-15@gated-at.bofh.it> (permalink)
References <pTDJT-27d-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The chipselect operation is already done in spi_bitbang_transfer_one,
or in spi_bitbang_setup, so there is no need to do it in setupxfer
as well.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
---
 drivers/spi/spi-ppc4xx.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c
index 54fb984..55947f6 100644
--- a/drivers/spi/spi-ppc4xx.c
+++ b/drivers/spi/spi-ppc4xx.c
@@ -210,13 +210,6 @@ static int spi_ppc4xx_setupxfer(struct spi_device *spi, struct spi_transfer *t)
 	if (in_8(&hw->regs->cdm) != cdm)
 		out_8(&hw->regs->cdm, cdm);
 
-	spin_lock(&hw->bitbang.lock);
-	if (!hw->bitbang.busy) {
-		hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE);
-		/* Need to ndelay here? */
-	}
-	spin_unlock(&hw->bitbang.lock);
-
 	return 0;
 }
 
-- 
2.5.0.rc2.392.g76e840b

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] spi: bitbang: Replace spinlock by mutex when calling chipselect Nicolas Boichat <drinkcat@chromium.org> - 2015-08-04 08:20 +0200
  [PATCH 2/3] spi: ppc44x: Remove chipselect from setupxfer Nicolas Boichat <drinkcat@chromium.org> - 2015-08-04 08:20 +0200
  Re: [PATCH 1/3] spi: bitbang: Replace spinlock by mutex when calling  chipselect Mark Brown <broonie@kernel.org> - 2015-08-04 13:10 +0200

csiph-web