Re: [PATCH v2 RESEND] spi: spi-mpc512x-psc: add support for gpio chip selects

2013-04-09 Thread Anatolij Gustschin
On Tue, 9 Apr 2013 17:53:22 +0100 Mark Brown wrote: > On Mon, Apr 01, 2013 at 05:29:21PM +0200, Anatolij Gustschin wrote: > > Currently the driver only uses one internal chip select. > > Add support for gpio chip selects configured by cs-gpios > > DT binding. > > App

[PATCH] spi: spi-mpc512x-psc: let transmiter/receiver enabled when in xfer loop

2013-04-01 Thread Anatolij Gustschin
There is no need to disable transmitter/receiver after each loop iteration and re-enable it for next loop iteration. Enable the transmitter/receiver before xfer loop starts and disable it when the whole transfer is done. Signed-off-by: Anatolij Gustschin --- drivers/spi/spi-mpc512x-psc.c | 10

[PATCH v2 RESEND] spi: spi-mpc512x-psc: add support for gpio chip selects

2013-04-01 Thread Anatolij Gustschin
Currently the driver only uses one internal chip select. Add support for gpio chip selects configured by cs-gpios DT binding. Signed-off-by: Anatolij Gustschin --- v2 resend: - no changes, resend to Mark v2: - do not parse GPIO chip selects manually drivers/spi/spi-mpc512x-psc.c | 31

Re: [PATCH] spi: mpc512x-psc: optionally keep PSC SS asserted across xfer segmensts

2013-04-01 Thread Anatolij Gustschin
On Mon, 1 Apr 2013 14:30:17 +0100 Mark Brown wrote: > On Wed, Mar 13, 2013 at 02:57:43PM +0100, Anatolij Gustschin wrote: > > Some SPI slave devices require asserted chip select signal across > > multiple transfer segments of an SPI message. Currently the driver > > Th

[PATCH] spi: mpc512x-psc: optionally keep PSC SS asserted across xfer segmensts

2013-03-13 Thread Anatolij Gustschin
s sent in a previous transfer segment because the transaction could be considered aborted (SS was de-asserted before reading the response). Reported-by: Gerhard Sittig Signed-off-by: Anatolij Gustschin --- drivers/spi/spi-mpc512x-psc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH v2] spi: spi-mpc512x-psc: add support for gpio chip selects

2013-03-11 Thread Anatolij Gustschin
Currently the driver only uses one internal chip select. Add support for gpio chip selects configured by cs-gpios DT binding. Signed-off-by: Anatolij Gustschin --- v2: - do not parse GPIO chip selects manually drivers/spi/spi-mpc512x-psc.c | 31 +-- 1 files

Re: [PATCH 2/2] spi: spi-mpc512x-psc: add support for gpio chip selects

2013-03-11 Thread Anatolij Gustschin
On Tue, 05 Feb 2013 14:18:46 + Grant Likely wrote: > On Mon, 14 Jan 2013 21:27:01 +0100, Anatolij Gustschin wrote: > > Currently the driver only uses one internal chip select. Add support > > for gpio chip selects configured by gpio specifiers in the device tree. > &g

[PATCH 2/2] spi: spi-mpc512x-psc: add support for gpio chip selects

2013-01-14 Thread Anatolij Gustschin
Currently the driver only uses one internal chip select. Add support for gpio chip selects configured by gpio specifiers in the device tree. Signed-off-by: Anatolij Gustschin --- drivers/spi/spi-mpc512x-psc.c | 80 ++--- 1 files changed, 75 insertions(+), 5

[PATCH 1/2] spi: spi-mpc512x-psc: init mode bits supported by the driver

2013-01-14 Thread Anatolij Gustschin
The driver should setup mode bits it supports, otherwise adding an SPI device might fail even if the driver supports the requested SPI mode. Signed-off-by: Anatolij Gustschin --- drivers/spi/spi-mpc512x-psc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/spi

[PATCH v2] spi: spi-mpc512x-psc: don't use obsolet cell-index property

2013-01-10 Thread Anatolij Gustschin
Remove deprecated cell-index property and use spi alias to obtain the SPI PSC number used for SPI bus id. Signed-off-by: Anatolij Gustschin --- v2: - use of_alias_get_id() to get spi bus number drivers/spi/spi-mpc512x-psc.c | 16 +--- 1 files changed, 5 insertions(+), 11

[PATCH v2] spi: spi-mpc512x-psc: don't use obsolet cell-index property

2013-01-10 Thread Anatolij Gustschin
Remove deprecated cell-index property and use spi alias to obtain the SPI PSC number used for SPI bus id. Signed-off-by: Anatolij Gustschin --- v2: - use of_alias_get_id() to get spi bus number drivers/spi/spi-mpc512x-psc.c | 16 +--- 1 files changed, 5 insertions(+), 11

Re: [PATCH] spi: spi-mpc512x-psc: don't use obsolet cell-index property

2013-01-10 Thread Anatolij Gustschin
Hi Grant, On Fri, 21 Dec 2012 19:29:14 + Grant Likely wrote: > On Fri, 21 Dec 2012 14:48:38 +, Grant Likely > wrote: > > On Fri, Dec 21, 2012 at 2:43 PM, Anatolij Gustschin wrote: > > > Use unique PSCx register base offset to obtain the > > > SPI

[PATCH] spi: spi-mpc512x-psc: don't use obsolet cell-index property

2012-12-21 Thread Anatolij Gustschin
Use unique PSCx register base offset to obtain the SPI PSC number used for SPI bus id. Signed-off-by: Anatolij Gustschin --- drivers/spi/spi-mpc512x-psc.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi

[PATCH] spi: bitbang: initialize bits_per_word as specified by spi message

2011-06-01 Thread Anatolij Gustschin
't specify needed bits_per_word for ongoing transfer. Signed-off-by: Anatolij Gustschin --- drivers/spi/spi_bitbang.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi_bitbang.c b/drivers/spi/spi_bitbang.c index 14a63f6..bb38c83 100644 --- a/drivers/sp

[spi-devel-general] [PATCH v2] of/spi: call of_register_spi_devices() from spi core code

2010-07-27 Thread Anatolij Gustschin
Move of_register_spi_devices() call from drivers to spi_register_master(). Also change the function to use the struct device_node pointer from master spi device instead of passing it as function argument. Signed-off-by: Anatolij Gustschin Cc: David Brownell Cc: Grant Likely Cc: devicetree-disc

[spi-devel-general] [PATCH] of/spi: call of_register_spi_devices() from spi core code

2010-07-27 Thread Anatolij Gustschin
still call of_register_spi_devices() directly. Maybe these drivers should be reworked later. Signed-off-by: Anatolij Gustschin Cc: David Brownell Cc: Grant Likely Cc: devicetree-disc...@lists.ozlabs.org --- drivers/of/of_spi.c |7 +++ drivers/spi/mpc52xx_psc_spi.c |9

[spi-devel-general] [PATCH] spi/mpc5121: register spi child devices of spi node

2010-07-26 Thread Anatolij Gustschin
Signed-off-by: Anatolij Gustschin --- drivers/spi/mpc512x_psc_spi.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c index c8d69fc..39e5faf 100644 --- a/drivers/spi/mpc512x_psc_spi.c +++ b/drivers/spi

[spi-devel-general] [PATCH] spi/mpc5121: change annotations for probe and remove functions

2010-07-05 Thread Anatolij Gustschin
Change annotations from __init/__exit to __devinit/__devexit to get rid of section mismatch warning. Signed-off-by: Anatolij Gustschin --- drivers/spi/mpc512x_psc_spi.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/spi/mpc512x_psc_spi.c b

[spi-devel-general] [PATCH] spi: mpc512x_psc_spi.c: Fix build failures

2010-05-31 Thread Anatolij Gustschin
Fixes build errors caused by the: - OF device_node pointer being moved into struct device - removal of the match_table field from struct of_platform_driver Signed-off-by: Anatolij Gustschin Cc: Grant Likely --- drivers/spi/mpc512x_psc_spi.c | 12 ++-- 1 files changed, 6 insertions

[spi-devel-general] [PATCH 2/2] spi: Add SPI master driver for MPC5121 PSC

2010-04-30 Thread Anatolij Gustschin
Signed-off-by: John Rigby Signed-off-by: Anatolij Gustschin --- arch/powerpc/include/asm/mpc52xx_psc.h |1 + drivers/spi/Kconfig|7 + drivers/spi/Makefile |1 + drivers/spi/mpc512x_psc_spi.c | 576 4

[spi-devel-general] [PATCH 1/2] powerpc/mpc5121: move PSC FIFO memory init to platform code

2010-04-30 Thread Anatolij Gustschin
now done by this patch. Signed-off-by: Anatolij Gustschin --- arch/powerpc/platforms/512x/mpc512x_shared.c | 78 ++ drivers/serial/mpc52xx_uart.c| 69 --- 2 files changed, 78 insertions(+), 69 deletions(-) diff --git a/arch/powerpc

[spi-devel-general] [PATCH 0/2] Add SPI driver for MPC5121 PSC SPI

2010-04-30 Thread Anatolij Gustschin
Anatolij Gustschin (2): powerpc/mpc5121: move PSC FIFO memory init to platform code spi: Add SPI master driver for MPC5121 PSC arch/powerpc/include/asm/mpc52xx_psc.h |1 + arch/powerpc/platforms/512x/mpc512x_shared.c | 78 drivers/serial/mpc52xx_uart.c| 69