[PATCHv2 3/3] spi: omap2-mcspi: At remove dont use the runtime_autosuspend calls

2012-08-22 Thread Shubhrajyoti D
At remove we shouldnt be using the autosuspend timeout as we are calling pm_runtime_disable immediately after. Acked-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)

[PATCHv2 2/3] spi: omap2-mcspi: Remove the macro MOD_REG_BIT

2012-08-22 Thread Shubhrajyoti D
Remove the macro MOD_REG_BIT instead make the bit field modifications directly. This deletes a branch operation in cases where the the set is predecided. While at it optimise two sequential bit clear in one step. Acked-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D

[PATCHv2 1/3] spi: omap2-mcspi: Call pm_runtime_* functions directly

2012-08-22 Thread Shubhrajyoti D
Call the pm_runtime functions directly making room for possible pm optimisations. Also the runtime functions aren't just about enabling and disabling of clocks though it does enable clocks also. Acked-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com ---

Поздравляем Вашу компанию

2012-08-22 Thread ООО БМК Трейдинг
Подарок шефу, коллегам, и конечно же, Вам! Спешим поздравить вас скорей. У Вашей фирмы – классный день! Года трудились не напрасно, Дела идут у Вас прекрасно, Стоите прочно на ногах, И в перспективе есть размах. Уже и менеджмент налажен, И конкурент не так уж страшен, Лишь стимул к росту придает

Re: [PATCH] spi/pl022: Fill master-dev.of_node to get spi devices registered via DT

2012-08-22 Thread Viresh Kumar
On 19 August 2012 03:56, Linus Walleij linus.wall...@linaro.org wrote: On Sat, Aug 18, 2012 at 4:25 AM, Viresh Kumar viresh.ku...@linaro.org wrote: spi_register_master() calls of_register_spi_devices() to register spi devices. This routine expects master-dev.of_node to be a valid pointer.

Re: [PATCH] spi/pl022: Fill master-dev.of_node to get spi devices registered via DT

2012-08-22 Thread Linus Walleij
On Wed, Aug 22, 2012 at 11:16 AM, Viresh Kumar viresh.ku...@linaro.org wrote: On 19 August 2012 03:56, Linus Walleij linus.wall...@linaro.org wrote: On Sat, Aug 18, 2012 at 4:25 AM, Viresh Kumar viresh.ku...@linaro.org Isn't this one of those things that *have* to be #ifdef CONFIG_OF? Next

RE: [PATCH 14/14] drivers/spi/spi-s3c24xx.c: fix error return code

2012-08-22 Thread Kukjin Kim
Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Initialize return variable before exiting on an error path. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret != 0\)) { ...

Re: [PATCH v5 2/2] spi/pl022: Add devicetree support

2012-08-22 Thread Linus Walleij
On Tue, Aug 21, 2012 at 6:01 PM, Roland Stigge sti...@antcom.de wrote: This patch adds device tree support to the spi-pl022 driver. (...) --- linux-2.6.orig/Documentation/devicetree/bindings/spi/spi_pl022.txt +++ linux-2.6/Documentation/devicetree/bindings/spi/spi_pl022.txt @@ -6,7 +6,22 @@

[PATCH v6 1/3] spi/pl022: Add chip select handling via GPIO

2012-08-22 Thread Roland Stigge
This patch adds the ability for the driver to control the chip select directly. This enables independence from cs_control callbacks. Configurable via platform_data, to be extended as DT in the following patch. Based on the initial patch by Alexandre Pereira da Silva aletes@gmail.com

Re: [PATCH v2 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Matt Porter
On Wed, Aug 22, 2012 at 09:15:22AM +0530, Vinod Koul wrote: On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter mpor...@ti.com --- + struct

Re: [PATCH v2 1/3] dmaengine: add TI EDMA DMA engine driver

2012-08-22 Thread Matt Porter
On Wed, Aug 22, 2012 at 09:09:26AM +0530, Vinod Koul wrote: On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: Add a DMA engine driver for the TI EDMA controller. This driver is implemented as a wrapper around the existing DaVinci private DMA implementation. This approach allows for

RE: [PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code

2012-08-22 Thread H Hartley Sweeten
On Sunday, August 19, 2012 1:44 AM, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Initialize return variable before exiting on an error path. snip Signed-off-by: Julia Lawall julia.law...@lip6.fr --- drivers/spi/spi-ep93xx.c |1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH v6 1/3] spi/pl022: Add chip select handling via GPIO

2012-08-22 Thread Linus Walleij
On Wed, Aug 22, 2012 at 3:49 PM, Roland Stigge sti...@antcom.de wrote: This patch adds the ability for the driver to control the chip select directly. This enables independence from cs_control callbacks. Configurable via platform_data, to be extended as DT in the following patch. Based on

Re: [PATCH v6 3/3] DT bindings documentation: num-cs property for SPI controllers

2012-08-22 Thread Linus Walleij
On Wed, Aug 22, 2012 at 3:49 PM, Roland Stigge sti...@antcom.de wrote: Several SPI controller drivers have defined differently named properties for the number of chip selects. Now adding num-cs as a reference name for new bindings. Signed-off-by: Roland Stigge sti...@antcom.de Reviewed-by:

Re: [PATCH] SPI: MIPS: lantiq: adds spi-xway

2012-08-22 Thread John Crispin
On 22/08/12 20:59, Mark Brown wrote: + if (of_machine_is_compatible(lantiq,ase)) + master-num_chipselect = 3; + else + master-num_chipselect = 6; This is very suspicious - why is this being done based on the machine rather than based on the IP?

Re: [PATCH v6 2/3] spi/pl022: Add devicetree support

2012-08-22 Thread Linus Walleij
On Wed, Aug 22, 2012 at 3:49 PM, Roland Stigge sti...@antcom.de wrote: This patch adds device tree support to the spi-pl022 driver. Based on the initial patch by Alexandre Pereira da Silva aletes@gmail.com Signed-off-by: Roland Stigge sti...@antcom.de Acked-by: Alexandre Pereira da

Re: [PATCH v2 2/3] mmc: davinci_mmc: convert to DMA engine API

2012-08-22 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 21-08-12 20:43, Matt Porter schreef: Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter mpor...@ti.com Runtime tested on hawkboard with 3.6.0-rc2 with rootfs on SD and

Re: [PATCH] spi: Master driver for NXP SC18IS602/603

2012-08-22 Thread Guenter Roeck
On Wed, Aug 22, 2012 at 07:32:30PM +0100, Mark Brown wrote: On Sat, Aug 18, 2012 at 09:06:27AM -0700, Guenter Roeck wrote: This driver adds support for NXP SC18IS602/603 I2C to SPI bus bridge. Signed-off-by: Guenter Roeck li...@roeck-us.net Applied, thanks. One small thing: +static

[PATCH] spi/mxs: Make the SPI block clock speed configurable via DT

2012-08-22 Thread Marek Vasut
Add clock-frequency property, which allows configuring the SPI block's base speed. Signed-off-by: Marek Vasut ma...@denx.de Cc: Chris Ball c...@laptop.org Cc: Shawn Guo shawn@linaro.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com --- Documentation/devicetree/bindings/spi/mxs-spi.txt |

[PATCH] mxs/spi: Fix misuse of init_completion

2012-08-22 Thread Marek Vasut
Signed-off-by: Marek Vasut ma...@denx.de Cc: Chris Ball c...@laptop.org Cc: Shawn Guo shawn@linaro.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Fabio Estevam fabio.este...@freescale.com --- drivers/spi/spi-mxs.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

Re: [PATCH] mxs/spi: Fix misuse of init_completion

2012-08-22 Thread Chris Ball
Hi, On Wed, Aug 22 2012, Marek Vasut wrote: Signed-off-by: Marek Vasut ma...@denx.de Cc: Chris Ball c...@laptop.org Cc: Shawn Guo shawn@linaro.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Fabio Estevam fabio.este...@freescale.com --- drivers/spi/spi-mxs.c |4 +++- 1

Re: [PATCH] mxs/spi: Fix misuse of init_completion

2012-08-22 Thread Marek Vasut
Dear Chris Ball, Hi, On Wed, Aug 22 2012, Marek Vasut wrote: Signed-off-by: Marek Vasut ma...@denx.de Cc: Chris Ball c...@laptop.org Cc: Shawn Guo shawn@linaro.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Fabio Estevam fabio.este...@freescale.com ---

[PATCH] spi/sc18is602: Return -EINVAL for probe failures due to I2C function mismatch

2012-08-22 Thread Guenter Roeck
If the I2C bus master driver does not support the required functionality, the driver returns -ENODEV. This causes a silent probe failure without error message. Since the device has to be explicitly instantiated, and the user should know the correct bus, this event really reflects an error

[PATCH v3 0/3] DaVinci DMA engine conversion

2012-08-22 Thread Matt Porter
Changes since v1: - Add virt-dma support. Better error checks and simplified descriptor handling. - Fix support for multiple EDMA controllers Tested on AM18x EVM with WL12xx on MMC1 Changes since v2: - Set default Kconfig state to off - Fix

[PATCH v3 1/3] dmaengine: add TI EDMA DMA engine driver

2012-08-22 Thread Matt Porter
Add a DMA engine driver for the TI EDMA controller. This driver is implemented as a wrapper around the existing DaVinci private DMA implementation. This approach allows for incremental conversion of each peripheral driver to the DMA engine API. The EDMA driver supports slave transfers but does not

[PATCH v3 2/3] mmc: davinci_mmc: convert to DMA engine API

2012-08-22 Thread Matt Porter
Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter mpor...@ti.com --- drivers/mmc/host/davinci_mmc.c | 271 1 file changed, 82 insertions(+), 189 deletions(-) diff --git

[PATCH v3 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Matt Porter
Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter mpor...@ti.com --- drivers/spi/spi-davinci.c | 292 - 1 file changed, 130 insertions(+), 162 deletions(-) diff --git

Re: [PATCH v2 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Vinod Koul
On Wed, 2012-08-22 at 12:04 -0400, Matt Porter wrote: for querying of these types of limitations. Right now, the mmc driver implicitly knows that EDMA needs this restriction but it's something that should be queried before calling prep_slave(). that's something we need to add; exporting

RE: [PATCH] spi/s3c64xx: Drop extra calls to spi_master_get in suspend/remove functions

2012-08-22 Thread Kukjin Kim
Guenter Roeck wrote: Suspend and resume functions call spi_master_get() without matching spi_master_put(). The extra references are unnecessary and cause subsequent module unload attempts to fail. Drop the calls. Signed-off-by: Guenter Roeck li...@roeck-us.net Acked-by: Kukjin Kim