Re: [PATCH 0/4 v8] mmc: tmio, sdhi: provide multiple irq handlers

2011-08-29 Thread Simon Horman
On Sun, Aug 28, 2011 at 01:58:54PM -0400, Chris Ball wrote: > Hi Simon, > > On Wed, Aug 24 2011, Simon Horman wrote: > > The SDHI driver already supports making use of up to three interrupt > > sources. > > > > This series breaks up the existing interrupt handler into three handlers, > > one for s

Re: [PATCH] [RFC] ARM: shmobile: g4evm: Use multiple irq vectors for SDHI

2011-08-29 Thread Simon Horman
On Fri, Aug 26, 2011 at 10:06:45PM +0900, Simon Horman wrote: > On Fri, Aug 26, 2011 at 02:56:50PM +0200, Guennadi Liakhovetski wrote: > > On Fri, 26 Aug 2011, Simon Horman wrote: > > > > > On Fri, Aug 26, 2011 at 02:17:20PM +0200, Guennadi Liakhovetski wrote: > > > > On Fri, 26 Aug 2011, Simon Ho

Re: [PATCH 1/2] sdhci/tegra: Add Device Tree probing support

2011-08-29 Thread Shawn Guo
On Tue, Aug 23, 2011 at 12:15:33PM -0600, Stephen Warren wrote: > From: Grant Likely > > Add hooks to read gpio configuration out of the device tree node. > > [grant.likely: Rewrite of original patch from John Bonesio] > Signed-off-by: Grant Likely > [swarren: Fixed tegra_sdhci_get_ro() to retr

Re: [PATCH 1/1 v3] mmc: Support of SDIO irq for dw_mmc

2011-08-29 Thread Chris Ball
Hi, On Mon, Aug 29 2011, Shashidhar Hiremath wrote: > The Patch adds the support for SDIO interrupts for all slots. > It includes enabling of SDIO interrupts through dw_mci_enable_sdio_irq > and the handling of the slot specific interrupts in the Interrupt Service > Routine. Thanks, looks good, a

Re: [PATCH v2 1/1] mmc: Support of SDIO irq for dw_mmc

2011-08-29 Thread Chris Ball
Hi, On Mon, Aug 29 2011, James Hogan wrote: > On 29 August 2011 07:36, Shashidhar Hiremath > wrote: >> Hi Chris, >>  The git repo that I have cloned is >> git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git and created >> my branch against it.Now when I create a patch and apply the patch >>

[PATCH 5/5] mmc: block: add eMMC hardware reset support

2011-08-29 Thread Adrian Hunter
For cards that support hardware reset (just eMMC), try a reset and retry before returning an I/O error. However this is not done for ECC errors and is never done twice for the same operation type (READ, WRITE, DISCARD, SECURE DISCARD) until that type of operation again succeeds. Signed-off-by: Ad

[PATCH 4/5] mmc: mmc-test: add eMMC hardware reset test

2011-08-29 Thread Adrian Hunter
MMC core provides a checking function that checks if the reset has happended. Add a test to use that function. Signed-off-by: Adrian Hunter --- drivers/mmc/card/mmc_test.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/card/mmc

[PATCH 3/5] mmc: sdhci-pci: add eMMC hardware reset support

2011-08-29 Thread Adrian Hunter
Implement eMMC hardware reset for Medfield. Signed-off-by: Adrian Hunter --- drivers/mmc/host/sdhci-pci.c | 72 ++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 26c5286..

[PATCH 1/5] mmc: add eMMC hardware reset support

2011-08-29 Thread Adrian Hunter
eMMC's may have a hardware reset line. This patch provides a host controller operation to implement hardware reset and a function to reset and reinitialize the card. Also, for MMC, the reset is always performed before initialization. The host must set the new host capability MMC_CAP_HW_RESET to

[PATCH 2/5] mmc: sdhci: add eMMC hardware reset support

2011-08-29 Thread Adrian Hunter
Add an SDHCI operation for hardware reset and connect it to the host controller operation. Signed-off-by: Adrian Hunter --- drivers/mmc/host/sdhci.c |9 + drivers/mmc/host/sdhci.h |2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/dr

[PATCH 0/5] mmc: add eMMC hardware reset support

2011-08-29 Thread Adrian Hunter
Hi Here are some patches to add eMMC hardware reset support. Adrian Hunter (5): mmc: add eMMC hardware reset support mmc: sdhci: add eMMC hardware reset support mmc: sdhci-pci: add eMMC hardware reset support mmc: mmc-test: add eMMC hardware reset test mmc: block: ad

[PATCH 2/2] mmc: mmci: simplify err check in mmci_post_request

2011-08-29 Thread Per Forlin
The error condition indicates that mmci_post_request() should cleanup after the mmci_pre_request(). In this case the resources allocated by device_prep_slave_sg() are freed by calling dmaengine_terminate_all(). dma_unmap_sg() should always be performed if the host_cookie is set. Signed-off-by: Per

[PATCH 1/2] mmc: core: clarify how to use post_req in case of errors

2011-08-29 Thread Per Forlin
The err condition in post_req() is set to undo a call made to pre_req() that hasn't been started yet. The err condition is not set if an MMC request returns error. Signed-off-by: Per Forlin --- drivers/mmc/core/core.c |6 ++ include/linux/mmc/host.h |3 +++ 2 files changed, 9 insert

[PATCH 0/2] mmc: clarifications on host.post_req()

2011-08-29 Thread Per Forlin
Fixes for 3.1. This patchset doesn't fix any bugs in 3.1 but it improves the documentation in order to prevent new bugs. Per Forlin (2): mmc: core: clarify how to use post_req in case of errors mmc: mmci: simplify err check in mmci_post_request drivers/mmc/core/core.c |6 ++ drivers

[PATCH 1/1 v3] mmc: Support of SDIO irq for dw_mmc

2011-08-29 Thread Shashidhar Hiremath
The Patch adds the support for SDIO interrupts for all slots. It includes enabling of SDIO interrupts through dw_mci_enable_sdio_irq and the handling of the slot specific interrupts in the Interrupt Service Routine. Signed-off-by: Shashidhar Hiremath --- v2: * As per Suggestions by James Hogan -f