[v2 PATCH 11/14] spi/atmel_spi: correct 16 bits transfer with DMA

2012-12-04 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v4] spi: Add Lattice ECP3 FPGA configuration via SPI

2012-12-04 Thread Ming Lei
On Fri, Nov 30, 2012 at 10:58 PM, Stefan Roese s...@denx.de wrote: This patch adds support for bitstream configuration (programming / loading) of the Lattice ECP3 FPGA's via the SPI bus. Here an example on my custom MPC5200 based board: $ echo 1 /sys/class/firmware/spi0.0/loading $ cat

Re: [RFC] spi: spi-fsl-spi: Making spi-fsl-spi partly platform-agnostic and adding a new mode for a new core

2012-12-04 Thread Joakim Tjernlund
Andreas Larsson andr...@gaisler.com wrote on 2012/12/04 08:58:50: On 2012-11-22 10:26, Andreas Larsson wrote: I am looking into writing a driver for a core running on sparc that is mostly but not entirely compatible with the cpu mode of spi-fsl-spi. I am thinking of what could be the

Re: [RFC] spi: spi-fsl-spi: Making spi-fsl-spi partly platform-agnostic and adding a new mode for a new core

2012-12-04 Thread Andreas Larsson
On 2012-12-04 10:11, Joakim Tjernlund wrote: Andreas Larsson andr...@gaisler.com wrote on 2012/12/04 08:58:50: Any comments on this? A fair amount of rearranging and ifdefing would be needed to make the spi-fsl-spi driver workable outside an fsl and powerpc environment so I rather get some

[PATCH 0/2] sparc: Enable OF functionality for sparc for i2c and spi

2012-12-04 Thread Andreas Larsson
This series removes the dependency on !SPARC for OF_I2C and removes the depencency of !defined(CONFIG_SPARC) for the function of_register_spi_devices. I find no reason for these to be unavailable for sparc. I am not sure if these should go through the sparc tree or the corresponding subsystem

[PATCH 2/2] spi: sparc: Allow of_register_spi_devices for sparc

2012-12-04 Thread Andreas Larsson
Signed-off-by: Andreas Larsson andr...@gaisler.com --- drivers/spi/spi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c4f7d71..d8339fe 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -812,7 +812,7 @@

[PATCH 1/2] of_i2c: sparc: Allow OF_I2C for sparc

2012-12-04 Thread Andreas Larsson
Signed-off-by: Andreas Larsson andr...@gaisler.com --- drivers/of/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index dfba3e6..d37bfcf 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -53,7 +53,7 @@ config

Re: [PATCH 0/2] sparc: Enable OF functionality for sparc for i2c and spi

2012-12-04 Thread Andreas Larsson
On 2012-12-04 15:44, Grant Likely wrote: On Tue, Dec 4, 2012 at 2:09 PM, Andreas Larsson andr...@gaisler.com wrote: This series removes the dependency on !SPARC for OF_I2C and removes the depencency of !defined(CONFIG_SPARC) for the function of_register_spi_devices. I find no reason for these

Re: [PATCH RESEND] spi: erase pointer to drvdata on removal

2012-12-04 Thread Grant Likely
On Mon, Dec 3, 2012 at 8:28 PM, Vivien Didelot vivien.dide...@savoirfairelinux.com wrote: Without this patch, a SPI device may keep its drvdata whereas it was unbound from its driver. This may result in accessing an invalid pointer. As for i2c-core, let the SPI core handle the removal of the

Re: [PATCH 0/2] sparc: Enable OF functionality for sparc for i2c and spi

2012-12-04 Thread Grant Likely
On Tue, Dec 4, 2012 at 2:09 PM, Andreas Larsson andr...@gaisler.com wrote: This series removes the dependency on !SPARC for OF_I2C and removes the depencency of !defined(CONFIG_SPARC) for the function of_register_spi_devices. I find no reason for these to be unavailable for sparc. I am not

Re: [PATCH RESEND] spi: erase pointer to drvdata on removal

2012-12-04 Thread Vivien Didelot
Hi Grant, On Tue, 2012-12-04 at 14:56 +, Grant Likely wrote: Instead of clearing the pointer only in the spi code, perhaps the checks should be in really_probe() and __device_release_driver() so it covers all bus types. Also, don't clear the pointer. Just use dev_err() to report on the

Re: [PATCH RESEND] ARM/SPI: New driver for SPI master controller for CLPS711X-target

2012-12-04 Thread Alexander Shiyan
On Mon, 12 Nov 2012 21:43:34 + Arnd Bergmann a...@arndb.de wrote: On Wednesday 07 November 2012, Alexander Shiyan wrote: This patch add new driver for CLPS711X SPI master controller. Due to platform limitations driver supports only 8 bit transfer mode. Chip select control is handled

Re: [PATCH 0/2] sparc: Enable OF functionality for sparc for i2c and spi

2012-12-04 Thread David Miller
From: Grant Likely grant.lik...@secretlab.ca Date: Tue, 4 Dec 2012 14:44:57 + On Tue, Dec 4, 2012 at 2:09 PM, Andreas Larsson andr...@gaisler.com wrote: This series removes the dependency on !SPARC for OF_I2C and removes the depencency of !defined(CONFIG_SPARC) for the function

Re: [PATCH 0/2] sparc: Enable OF functionality for sparc for i2c and spi

2012-12-04 Thread Grant Likely
On Tue, Dec 4, 2012 at 9:10 PM, David Miller da...@davemloft.net wrote: From: Grant Likely grant.lik...@secretlab.ca Date: Tue, 4 Dec 2012 14:44:57 + On Tue, Dec 4, 2012 at 2:09 PM, Andreas Larsson andr...@gaisler.com wrote: This series removes the dependency on !SPARC for OF_I2C and