[PATCH] spi: omap2-mcspi: Fix the redifine warning

2012-11-18 Thread Shubhrajyoti D
Fix the below warning drivers/spi/spi-omap2-mcspi.c:336:34: warning: symbol 'tx' shadows an earlier one drivers/spi/spi-omap2-mcspi.c:327:12: originally declared here So delete the u8 tx as it is assigned and not used(resigned afterwards). Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan soren...@polycom.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan soren...@polycom.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-11 Thread Shubhrajyoti D
] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi/spi-omap2

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-03 Thread Shubhrajyoti D
*bar] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi/spi-omap2

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-03 Thread Shubhrajyoti D
] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi/spi-omap2

[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 shubhrajy

[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 --- drivers/spi

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

2012-08-21 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. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c

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

2012-08-21 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. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 28

[PATCH] spi: omap2-mcspi: Remove the call to platform_set_drvdata(pdev, NULL)

2012-08-16 Thread Shubhrajyoti D
Remove the call of platform_set_drvdata(pdev, NULL) as they are not needed anymore. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2

[PATCH] spi: omap2-mcspi: Fix the error handling in probe

2012-08-02 Thread Shubhrajyoti D
device_put in some of the error paths. Acked-by: Guenter Roeck li...@roeck-us.net Reported-by: Guenter Roeck li...@roeck-us.net Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH] spi: omap2-mcspi: Fix the error handling in probe

2012-08-01 Thread Shubhrajyoti D
device_put in some of the error paths. Cc: Guenter Roeck li...@roeck-us.net Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2

[PATCH] spi: omap2-mcspi: In case of dma errors fall back to pio

2012-07-25 Thread Shubhrajyoti D
-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index bc47781..f243a39 100644 --- a/drivers/spi/spi-omap2-mcspi.c

[PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit

2012-07-20 Thread Shubhrajyoti D
__init. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 37ccdb7..7d46b15 100644

[PATCH] spi: omap2-mcspi: Fix the below warning

2012-07-19 Thread Shubhrajyoti D
the warn by changing the unmap parameter. Reported-by: Russell King - ARM Linux li...@arm.linux.org.uk Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b

[PATCH RFC] spi: omap2-mcspi: Fix the dma_unmap warning

2012-07-05 Thread Shubhrajyoti D
the warn by changing the unmap parameter to the one used while doing dma_map. Reported-by: Russell King li...@arm.linux.org.uk Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH RFC] spi: Dont call prepare/unprepare transfer if not populated

2012-05-10 Thread Shubhrajyoti D
the call to prepare/unprepare if not populated. Cc: Linus Walleij linus.wall...@linaro.org Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 37c555e..30e114c

[PATCHv3 0/3] spi: omap2-mcspi: driver updates

2012-03-31 Thread Shubhrajyoti D
. This is also available through git : git://gitorious.org/linus-tree/linus-tree.git branch : spi_next Rebased to Grant's spi/next branch. Benoit Cousson (1): spi/omap: Remove bus_num usage for instance index Shubhrajyoti D (2): spi: omap2-mcspi: add support for pm_runtime autosuspend spi

[PATCHv3 2/3] spi: omap2-mcspi: add support for pm_runtime autosuspend

2012-03-31 Thread Shubhrajyoti D
(2 secs), the call to resume the device can return immediately saving some save/ restore cycles. Acked-by: Govindraj.R govindraj.r...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff

[PATCHv3 3/3] spi: omap2-mcspi: Trivial optimisation

2012-03-31 Thread Shubhrajyoti D
Trivial optimisation of tmp variable by directly writing the value to the register. Cc : Tarun Kanti DebBarma tarun.ka...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCHv3 1/3] spi/omap: Remove bus_num usage for instance index

2012-03-31 Thread Shubhrajyoti D
, but the driver does not access it anymore. Clean some bad comments format, and remove un-needed space. Signed-off-by: Benoit Cousson b-cous...@ti.com [Cleanup the OMAP2_MCSPI_MAX_CTRL macro as it is not needed anymore] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2

[PATCHv3 6/6] spi: omap2-mcspi: Trivial optimisation

2012-03-30 Thread Shubhrajyoti D
Trivial optimisation of tmp variable by directly writing the value to the register. Cc : Tarun Kanti DebBarma tarun.ka...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCHv3 5/6] spi: omap2-mcspi: add support for pm_runtime autosuspend

2012-03-30 Thread Shubhrajyoti D
(2 secs), the call to resume the device can return immediately saving some save/ restore cycles. Acked-by: Govindraj.R govindraj.r...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff

[PATCHv3 0/6] spi: omap2-mcspi: driver updates

2012-03-30 Thread Shubhrajyoti D
/linus-tree/linus-tree.git branch : spi This is targeted for v3.5. Benoit Cousson (1): spi/omap: Remove bus_num usage for instance index Felipe Balbi (2): spi: omap2-mcspi: make it behave as a module spi: omap2-mcspi: convert to module_platform_driver Shubhrajyoti D (3): spi: omap2-mcspi

[PATCHv3 1/6] spi/omap: Remove bus_num usage for instance index

2012-03-30 Thread Shubhrajyoti D
, but the driver does not access it anymore. Clean some bad comments format, and remove un-needed space. Signed-off-by: Benoit Cousson b-cous...@ti.com [Cleanup the OMAP2_MCSPI_MAX_CTRL macro as it is not needed anymore] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2

[PATCHv3 3/6] spi: omap2-mcspi: convert to module_platform_driver

2012-03-30 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will delete a few lines of code, no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions

[PATCHv3 2/6] spi: omap2-mcspi: make it behave as a module

2012-03-30 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com move probe away from __init section and use platform_driver_register() instead of platform_driver_probe(). Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |9 + 1 files

[PATCHv3 1/6] spi/omap: Remove bus_num usage for instance index

2012-03-30 Thread Shubhrajyoti D
, but the driver does not access it anymore. Clean some bad comments format, and remove un-needed space. Signed-off-by: Benoit Cousson b-cous...@ti.com [Cleanup the OMAP2_MCSPI_MAX_CTRL macro as it is not needed anymore] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2

[PATCHv3 4/6] spi: omap2-mcspi: use devm_* functions

2012-03-30 Thread Shubhrajyoti D
. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 24 1 files changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 66cbf22..1907ed2 100644 --- a/drivers/spi/spi-omap2

[PATCH v2 5/5] spi: omap2-mcspi: add support for pm_runtime autosuspend

2012-03-26 Thread Shubhrajyoti D
(2 secs), the call to resume the device can return immediately saving some save/ restore cycles. Acked-by: Govindraj.R govindraj.r...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff

[PATCH v2 4/5] spi: omap2-mcspi: use devm_* functions

2012-03-26 Thread Shubhrajyoti D
. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 24 1 files changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 66cbf22..1907ed2 100644 --- a/drivers/spi/spi-omap2

[PATCH v2 2/5] spi: omap2-mcspi: make it behave as a module

2012-03-26 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com move probe away from __init section and use platform_driver_register() instead of platform_driver_probe(). Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |9 + 1 files

[PATCH v2 1/5] spi/omap: Remove bus_num usage for instance index

2012-03-26 Thread Shubhrajyoti D
, but the driver does not access it anymore. Clean some bad comments format, and remove un-needed space. Signed-off-by: Benoit Cousson b-cous...@ti.com [Cleanup the OMAP2_MCSPI_MAX_CTRL macro as it is not needed anymore] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2

[PATCH 0/3] SPI updates

2012-03-20 Thread Shubhrajyoti D
: omap2-mcspi: make it behave as a module spi: omap2-mcspi: convert to module_platform_driver Shubhrajyoti D (1): spi: omap2-mcspi: use devm_* functions drivers/spi/spi-omap2-mcspi.c | 46 - 1 files changed, 9 insertions(+), 37 deletions

[PATCH 2/3] spi: omap2-mcspi: convert to module_platform_driver

2012-03-20 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will delete a few lines of code, no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions

[PATCH 3/3] spi: omap2-mcspi: use devm_* functions

2012-03-20 Thread Shubhrajyoti D
. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 24 1 files changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 7745f91

[PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci

2012-03-20 Thread Shubhrajyoti D
The driver uses NULL for dma_unmap_single instead of the struct device that the API expects. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- I do not have the board ,untested. drivers/spi/spi-davinci.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH] spi: Trivial warning fix

2012-02-27 Thread Shubhrajyoti D
and unsigned integer expressions Cc: Vitaly Wool vw...@ru.mvista.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- Untested ! include/linux/spi/spi.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 176fce9

[PATCH RFC] spi-pl022.c: Make the suspend functions depend on CONFIG_PM_SLEEP.

2012-01-10 Thread Shubhrajyoti D
The macro SET_SYSTEM_SLEEP_PM_OPS depends CONFIG_PM_SLEEP. The patch defines the suspend and resume functions for CONFIG_PM_SLEEP. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-pl022.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi

[PATCH 0/3] OMAP: SPI: Driver updates

2011-10-28 Thread Shubhrajyoti D
%40ti.comforum_name=spi-devel-general 2. Call pm_runtime_disable as it got missed out. 3. Error handling in the spi driver is corrected. Shubhrajyoti D (3): OMAP: SPI: Use a workqueue per omap2_mcspi controller OMAP: SPI: call pm_runtime_disable in error path and remove OMAP: SPI: Correct the error

[PATCH 1/3] OMAP: SPI: Use a workqueue per omap2_mcspi controller

2011-10-28 Thread Shubhrajyoti D
Currently all the spi controllers share the work queue. This patch allocates a work queue per controller. Signed-off-by: Steve Wilkins steve.wilk...@raymarine.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 19 +++ 1 files changed, 11

[PATCH 3/3] OMAP: SPI: Correct the error path

2011-10-28 Thread Shubhrajyoti D
Currently McSPI driver doesnt follow correct failure fallback steps attempting to correct the same. Also - label names changed to give meaningful names. - Setting the driver data to NULL in remove Signed-off-by: Hebbar, Gururaja gururaja.heb...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy

[PATCH 2/3] OMAP: SPI: call pm_runtime_disable in error path and remove

2011-10-28 Thread Shubhrajyoti D
adds the pm_runtime disable() at appropriate stages. Signed-off-by: Hebbar, Gururaja gururaja.heb...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b

[PATCH 0/3] OMAP: SPI: Driver updates

2011-10-28 Thread Shubhrajyoti D
%40ti.comforum_name=spi-devel-general 2. Call pm_runtime_disable as it got missed out. 3. Error handling in the spi driver is corrected. Shubhrajyoti D (3): OMAP: SPI: Use a workqueue per omap2_mcspi controller OMAP: SPI: call pm_runtime_disable in error path and remove OMAP: SPI: Correct the error

[PATCH] OMAP: SPI: Fix the trying to free nonexistent resource error

2011-10-24 Thread Shubhrajyoti D
. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 06dc9a9..471b0f3 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers

[PATCH RFC] OMAP: SPI: Use a workqueue per omap2_mcspi controller

2011-10-21 Thread Shubhrajyoti D
Currently all the spi controllers share the work queue. This patch allocates a work queue per controller. Signed-off-by: Steve Wilkins steve.wilk...@raymarine.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 19 +++ 1 files changed, 11