[PATCH RESEND] mmc: mmci: Get rid of dead code in mmci_dma_setup

2015-01-21 Thread Pramod Gurav
DMA configuration has been removed from function mmci_dma_setup but the local mask variable was not removed. This remains unused hence remove it from the function and operations on it Signed-off-by: Pramod Gurav --- drivers/mmc/host/mmci.c |5 - 1 file changed, 5 deletions(-) diff

Re: [PATCH] mmc: mmci: Get rid of unused variable and operations on it

2015-01-08 Thread Pramod Gurav
Hi Ulf, Any comment on this change? Thanks Pramod On Tuesday 16 December 2014 07:21 PM, Pramod Gurav wrote: > DMA configuration has been removed from function mmci_dma_setup but the > local mask variable was not removed. This remains unused hence remove > it from the function and oper

[PATCH] mmc: mmci: Get rid of unused variable and operations on it

2014-12-16 Thread Pramod Gurav
DMA configuration has been removed from function mmci_dma_setup but the local mask variable was not removed. This remains unused hence remove it from the function and operations on it Signed-off-by: Pramod Gurav --- drivers/mmc/host/mmci.c |5 - 1 file changed, 5 deletions(-) diff

Re: [PATCH v2] mmc: davinci: Fix and simplify probe failure path

2014-10-30 Thread Pramod Gurav
Thanks Ulf, On Thu, Oct 30, 2014 at 4:38 PM, Ulf Hansson wrote: > On 30 October 2014 08:46, Pramod Gurav wrote: >> The sequence of resource release in probe failure path in this >> driver was wrong and needed fixes to cleanly unload the driver. >> This changes does the

[PATCH v2] mmc: davinci: Fix and simplify probe failure path

2014-10-30 Thread Pramod Gurav
@vger.kernel.org Signed-off-by: Pramod Gurav --- Changes since v1: - Dropped IS_ERR check on devm_ioremap() return. - Fixed sequence on mmc_remove_host in fail as well as in remove function drivers/mmc/host/davinci_mmc.c | 91 +++- 1 file changed, 33

Re: [PATCH] mmc: sdhci-pxav3: Fix Sparse warning of duplicate set_uhs_signaling entry

2014-10-28 Thread Pramod Gurav
Hi Ulf, Is this good to go? On Mon, Sep 29, 2014 at 6:55 PM, Pramod Gurav wrote: > This fixes below sparse warning: > drivers/mmc/host/sdhci-pxav3.c:227:10: warning: Initializer entry defined > twice > drivers/mmc/host/sdhci-pxav3.c:232:10: also defined here > > by

[PATCH] mmc: sdhci-pxav3: Fix Sparse warning of duplicate set_uhs_signaling entry

2014-09-29 Thread Pramod Gurav
: Russell King Cc: Ulf Hansson Cc: Chris Ball Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/sdhci-pxav3.c | 37 - 1 file changed, 37 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c

Re: [PATCH] mmc: atmel-mci: fix mismatched section on atmci_cleanup_slot

2014-09-26 Thread Pramod Gurav
Hi Arnd, On Sat, Sep 27, 2014 at 1:04 AM, Arnd Bergmann wrote: > As of 528bc7808f4e ("mmc: atmel-mci: Release mmc resources on failure in > probe"), > the atmci_probe() function calls atmci_cleanup_slot in the failure path. > > This causes a new warning whenever the driver is built: > > WARNING:

[PATCH] mmc: davinci: Fix and simplify probe failure path

2014-09-26 Thread Pramod Gurav
@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/davinci_mmc.c | 91 +++- 1 file changed, 33 insertions(+), 58 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 5d4c5e0..160b7e8 100644 --- a

[PATCH v2 1/2] mmc: atmel-mci: Switch to using managed resource in probe

2014-09-23 Thread Pramod Gurav
: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- Changes since v1: - Dropped using devm_request_irq as suggested by Ludovic Desroches as it seems there are race conditions seen with them. - Added another patch to fix failure path in probe to call

[PATCH v2 2/2] mmc: atmel-mci: Release mmc resources on failure in probe

2014-09-23 Thread Pramod Gurav
This change takes care of releasing mmc resources on error cases in probe function which was missing. Also release timer in remove function. Cc: Ludovic Desroches Cc: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- Changes since v1: None drivers/mmc

[PATCH v2 1/2] mmc: atmel-mci: Switch to using managed resource in probe

2014-09-23 Thread Pramod Gurav
: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- Changes since v1: - Dropped using devm_request_irq as suggested by Ludovic Desroches as it seems there are race conditions seen with them. - Added another patch to fix failure path in probe to call atmci_cleanup_slot after

Re: [PATCH 1/2] mmc: atmel-mci: Switch to using managed resource in probe

2014-09-22 Thread Pramod Gurav
uest_irq and free_irq the time it takes to solve this issue > is probably better. Oh, Thanks for letting me know this. I will resend this patch keeping request_irq and free_irq in driver. > > Regards > > Ludovic > > On Sat, Sep 20, 2014 at 12:22:30PM +0530, Pramod Gurav wrote:

[PATCH] mmc: omap_hsmmc: Switch to using managed version to gpio request

2014-09-22 Thread Pramod Gurav
This change switches to managed version of gpio_request to simplify module unloading and failure cases and does away with code to release gpio resources. Cc: Balaji T K Cc: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/omap_hsmmc.c

[PATCH] mmc: usdhi6rol0: Remove unnecessary header files

2014-09-20 Thread Pramod Gurav
These headers are not required hence this change removes them from the driver. Cc: Guennadi Liakhovetski Cc: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/usdhi6rol0.c | 7 --- 1 file changed, 7 deletions(-) diff --git a

[PATCH] mmc: android-goldfish: Remove unnecessary NULL check on host

2014-09-20 Thread Pramod Gurav
This change removes unwanted NULL check around mmc private data structure in remove function as the probe would not have succeeded with this structure variable as NULL. Cc: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/android

[PATCH 2/2] mmc: atmel-mci: Release mmc resources on failure in probe

2014-09-19 Thread Pramod Gurav
This change takes care of releasing mmc resources on error cases in probe function which was missing. Also release timer in remove function. Cc: Ludovic Desroches Cc: Chris Ball Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/atmel-mci.c | 13

[PATCH 1/2] mmc: atmel-mci: Switch to using managed resource in probe

2014-09-19 Thread Pramod Gurav
Cc: linux-mmc@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/atmel-mci.c | 57 1 file changed, 20 insertions(+), 37 deletions(-) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index bb585d9..21a222c 100644

Re: [PATCH 1/5] mmc: msm_sdcc: Switch to using managed resources

2014-09-16 Thread Pramod Gurav
ion of mmci driver. > From v3.17 mmci driver added support for qualcomm specific customization to > pl180. > So msm platform should be able to use pl180 mmci driver, rather than using > msm_sdcc. > > Thanks, > srini > > > > On 16/09/14 12:15, Pramod Gurav wrote: >&g

[PATCH 4/5] mmc: msm_sdcc: Remove duplicate check around dmares

2014-09-16 Thread Pramod Gurav
ux-arm-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/msm_sdcc.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 2111c03..5025364 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_

[PATCH 5/5] mmc: msm_sdcc: Remove unwanted initializations in probe

2014-09-16 Thread Pramod Gurav
This removes unnecessary initialisations of resource pointers and does away with a lable and just returns error on fail instead. Cc: David Brown Cc: Daniel Walker Cc: Bryan Huntsman CC: Ulf Hansson CC: linux-mmc@vger.kernel.org CC: linux-arm-...@vger.kernel.org Signed-off-by: Pramod Gurav

[PATCH 2/5] mmc: msm_sdcc: Add support for platform_driver remove function

2014-09-16 Thread Pramod Gurav
This change adds remove function in platform_driver to clean unloading Cc: David Brown Cc: Daniel Walker Cc: Bryan Huntsman CC: Ulf Hansson CC: linux-mmc@vger.kernel.org CC: linux-arm-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/msm_sdcc.c | 18

[PATCH 1/5] mmc: msm_sdcc: Switch to using managed resources

2014-09-16 Thread Pramod Gurav
-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/msm_sdcc.c | 43 +-- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 9405ecd..2b8ac9c 100644 --- a/drivers/mmc

[PATCH 3/5] mmc: msm_sdcc: Replace pr_ with dev_

2014-09-16 Thread Pramod Gurav
This replaces pr_* with dev_ for message logging and also does away with printing function names in logs. Cc: David Brown Cc: Daniel Walker Cc: Bryan Huntsman CC: Ulf Hansson CC: linux-mmc@vger.kernel.org CC: linux-arm-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host

[PATCH 1/5] mmc: msm_sdcc: Switch to using managed resources

2014-09-16 Thread Pramod Gurav
-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/msm_sdcc.c | 43 +-- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 9405ecd..2b8ac9c 100644 --- a/drivers/mmc