Re: shdma: (or tmio_mmc?) inconsistent lock state detected on ag5evm

2011-07-28 Thread takasi-y
Thank you for your reply. Thanks for the report! It is interesting. From your backtrace it looks like the spin_lock_bh() in sh_dmae_alloc_chan_resources() gets interrupted by an interrupt on the same channel! I do not understand this, because, normally no interrupts on DMAC channels occur

[PATCH v2 0/1] ARM: mxc: fix card interrupt losing issue on freescale eSDHC

2011-07-28 Thread Tony Lin
the patch provides a workaround for eSDHC to avoid missing the card interrupt changes since V1 * fix some comments typo * V2 patch is based on Chris Ball's tree, mmc-next branch Tony Lin (1): ARM: mxc: fix card interrupt losing issue on freescale eSDHC drivers/mmc/host/sdhci-esdhc-imx.c |

[PATCH v2 1/1] ARM: mxc: fix card interrupt losing issue on freescale eSDHC

2011-07-28 Thread Tony Lin
apply workaround for imx eSDHC controller to avoid missing the card interrupt so that SDIO function is workable Signed-off-by: Tony Lin tony@freescale.com --- drivers/mmc/host/sdhci-esdhc-imx.c | 44 +++ 1 files changed, 34 insertions(+), 10 deletions(-)

Re: [PATCH 1/1] mmc: Fixed bug in IDMAC_SET_BUFFER1_SIZE Macro in dw_mmc.c

2011-07-28 Thread James Hogan
On 07/28/2011 12:03 PM, Shashidhar Hiremath wrote: The mask used inside this macro was assuming Buffer_Size1's[BS1's] width to be 14 bits, it is actually of 13 bits, Modified masks used in IDMAC_SET_BUFFER1_SIZE such that they use only 13 bits instead of current 14. Signed-off-by:

[RFC PATCH 0/9] Add pdc feature to atmel-mci

2011-07-28 Thread ludovic . desroches
The purpose of these patches is to merge at91_mci and atmel atmel-mci drivers. The first one is used only for old atmel mci core and provides the PDC feature. The second one works with the old core but doesn't provide the PDC feature so the goal is to implement this feature in order to remove

[RFC PATCH 5/9] mmc: atmel-mci: change atmci_start_command to atmci_send_command

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Change atmci_start_command function name to atmci_send_command which is more appropriate to no think we are sending a start command. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci.c |6 +++--- 1

[RFC PATCH 7/9] mmc: atmel-mci: use ATMEL_PDC_SCND_BUF_OFF instead of a literal value

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index

[RFC PATCH 6/9] atmel_pdc: add ATMEL_PDC_SCND_BUF_OFF

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Add define for the offset value between first and second buffer registers. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- include/linux/atmel_pdc.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[RFC PATCH 8/9] mmc: atmel-mci: correct sg buffer size evaluation

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Assuming that a sg buffer size is a page size is false so use sg_dma_len. A 4096 bytes can be required with two 2048-bytes sg buffer. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci.c |7 +++

[RFC PATCH 9/9] mmc: atmel-mci: fix a potential issue about pending PDC interrupts

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com This patch fixes a potential issue about PDC interrupts. For example we have a ENDRX pending interrupt and a RXBUFF pending interrupt. We have received the RXBUFF interrupt but the transfer is not finished (so we didn't have time to give a new

[RFC PATCH 2/9] mmc: atmel-mci: change atmci_readl and atmci_writel macros

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Change atmci_readl and atmci_writel macros: remove string concatenation. We can use these macros with registers which are not prefix by ATMCI_. It's the case if we want to write PDC registers which are common to several devices so they are not

[RFC PATCH 3/9] mmc: atmel-mci: indentation

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci-regs.h | 136 ++-- 1 files changed, 68 insertions(+), 68 deletions(-) diff --git a/drivers/mmc/host/atmel-mci-regs.h

[RFC PATCH 4/9] mmc: atmel-mci: add pdc support and runtime capabilities detection

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Add the pdc support for atmel-mci. It makes at91-mci driver useless because it was only used for the old atmel MCI core which has pdc but no dma support. To allow removing at91-mci, the capabilites of the MCI core is detected at runtime, then

[RFC PATCH 1/9] mmc: atmel-mci: change namespace

2011-07-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Homogenize namespace to atmci. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/mach-at91/at91sam9260_devices.c |2 +- drivers/mmc/host/atmel-mci-regs.h| 206 ++--

Re: [PATCH v2 6/6] arm: davinci: DA850: Add wl1271/wlan support

2011-07-28 Thread Ido Yariv
Hi Sekhar, On Mon, Jul 25, 2011 at 11:10:55PM +0530, Nori, Sekhar wrote: Adding a new kernel parameter requires update to Documentation/kernel-parameters.txt as well. I am Ccing a couple of folks in case they have ideas on whether there is a better way to pass this information to the

[PATCH] cb710: fix possible pci_dev leak in cb710_pci_configure()

2011-07-28 Thread Michał Mirosław
Reported-by: Julia Lawall ju...@diku.dk Signed-off-by: Michał Mirosław mirq-li...@rere.qmqm.pl --- drivers/misc/cb710/core.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/misc/cb710/core.c b/drivers/misc/cb710/core.c index efec413..68cd05b 100644 ---

Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist

2011-07-28 Thread Guennadi Liakhovetski
On Wed, 27 Jul 2011, Rafael J. Wysocki wrote: On Wednesday, July 27, 2011, Guennadi Liakhovetski wrote: (added MMC maintainer to CC:) On Tue, 26 Jul 2011, Rafael J. Wysocki wrote: From: Rafael J. Wysocki r...@sisk.pl Fix build issue caused by undefined struct scatterlist in

[PATCH REPOST v2] mmc: davinci: Add support for set_power callback

2011-07-28 Thread Ido Yariv
Some devices connected to the MMC bus are power controlled by external means. For instance, an SDIO device may be powered down/up by an external gpio line. In order to avoid toggling power from within the MMC host driver, add a set_power callback function, which will be called by set_ios upon

[PATCH v3] davinci: Add wl1271/wlan support for AM18x

2011-07-28 Thread Ido Yariv
The wl1271 daughter card for AM18x EVMs is a combo wireless connectivity add-on card, based on the LS Research TiWi module with Texas Instruments' wl1271 solution. It is a 4-wire, 1.8V, embedded SDIO WLAN device with an external IRQ line and is power-controlled by a GPIO-based fixed regulator.

Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist

2011-07-28 Thread Rafael J. Wysocki
On Thursday, July 28, 2011, Guennadi Liakhovetski wrote: On Wed, 27 Jul 2011, Rafael J. Wysocki wrote: On Wednesday, July 27, 2011, Guennadi Liakhovetski wrote: (added MMC maintainer to CC:) On Tue, 26 Jul 2011, Rafael J. Wysocki wrote: From: Rafael J. Wysocki r...@sisk.pl

Re: [PATCH v3] davinci: Add wl1271/wlan support for AM18x

2011-07-28 Thread Troy Kisky
On 7/28/2011 1:52 PM, Ido Yariv wrote: The wl1271 daughter card for AM18x EVMs is a combo wireless connectivity add-on card, based on the LS Research TiWi module with Texas Instruments' wl1271 solution. It is a 4-wire, 1.8V, embedded SDIO WLAN device with an external IRQ line and is

Re: [PATCH REPOST v2] mmc: davinci: Add support for set_power callback

2011-07-28 Thread Chris Ball
Hi, On Thu, Jul 28 2011, Ido Yariv wrote: Some devices connected to the MMC bus are power controlled by external means. For instance, an SDIO device may be powered down/up by an external gpio line. In order to avoid toggling power from within the MMC host driver, add a set_power callback

Re: [PATCH v3] davinci: Add wl1271/wlan support for AM18x

2011-07-28 Thread Ido Yariv
Hi Troy, On Thu, Jul 28, 2011 at 02:15:41PM -0700, Troy Kisky wrote: + if (power_on) { + /* Power up sequence required for wl127x devices */ + gpio_set_value(DA850_WLAN_EN, 1); + usleep_range(15000, 15000); + gpio_set_value(DA850_WLAN_EN, 0);

Re: [PATCH] sdhci: pxav3 controller needs 32 bit ADMA addressing

2011-07-28 Thread Chris Ball
Hi Philip, On Mon, Jul 11 2011, Philip Rakity wrote: enable the quirk. Best used in conjunction with patch downgrading ADMA to SDMA when transfer is not aligned. Signed-off-by: Philip Rakity prak...@marvell.com --- drivers/mmc/host/sdhci-pxav3.c |3 ++- 1 files changed, 2

Re: [PATCH] mmc: sdhci: fix retuning timer wrongly deleted in sdhci_tasklet_finish

2011-07-28 Thread Chris Ball
Hi Aaron, On Mon, Jul 11 2011, Aaron Lu wrote: Currently, the retuning timer for retuning mode 1 will be deleted in function sdhci_tasklet_finish after a mmc request done, which will make retuning timing never trigger again. This patch fixed this problem. Signed-off-by: Aaron Lu

Re: [PATCH] mmc: sdhci-s3c: add quirk about BROKEN_ADMA_ZEROLEN_DESC

2011-07-28 Thread Chris Ball
Hi Jaehoon, On Tue, Jul 12 2011, Jaehoon Chung wrote: This patch is added the quirk for Samsung SoCs. Samsung SoCs need to set QUIRK_BROKEN_ADMA_ZEROLEN_DESC. (If ADMA operation is more than 65535, maybe set by zero.) Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Signed-off-by:

Re: [PATCH] mmc: mmc_test: avoid stalled file in debugfs

2011-07-28 Thread Chris Ball
Hi Andy, On Fri, Jul 22 2011, Andy Shevchenko wrote: During card removal and inserting cycle the test file in the debugfs could be stalled until the host driver removes it. Let's keep the file in the linked list and destroy it when card is removed. Signed-off-by: Andy Shevchenko

Re: [PATCH] Detect the mmc v4.5

2011-07-28 Thread Chris Ball
Hi Kyungmin, On Tue, Jul 26 2011, Kyungmin Park wrote: From: Kyungmin Park kyungmin.p...@samsung.com As eMMC v4.5 Spec is released, prepare the eMMC v4.5 EXT_CSD_REV Extended CSD Revision 255-7 Reserved 6 Revision 1.6 (for MMC v4.5) 5 Revision 1.5 (for

Re: [PATCH] cb710: fix possible pci_dev leak in cb710_pci_configure()

2011-07-28 Thread Chris Ball
Hi Michał, On Thu, Jul 28 2011, Michał Mirosław wrote: Reported-by: Julia Lawall ju...@diku.dk Signed-off-by: Michał Mirosław mirq-li...@rere.qmqm.pl --- drivers/misc/cb710/core.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/misc/cb710/core.c

Re: [Bug 39822] SDHC cards no longer recognized on AT91 based board

2011-07-28 Thread Chris Ball
Hi, thanks for the bug report. Adding linux-mmc@ and some atmel driver folks to CC. On Thu, Jul 28 2011, bugzilla-dae...@bugzilla.kernel.org wrote: Prior to 3.0.0 the FoxG20 board (Atmel AT91SAM9G20) could boot and use both micro SD and SDHC card to contain its root file system. With the

Re: [PATCH 1/1] mmc: Fixed bug in IDMAC_SET_BUFFER1_SIZE Macro in dw_mmc.c

2011-07-28 Thread Jaehoon Chung
Hi.. this patch is right. Acked-by : Jaehoon Chung jh80.ch...@samsung.com Regards, Jaehoon Chung James Hogan wrote: On 07/28/2011 12:03 PM, Shashidhar Hiremath wrote: The mask used inside this macro was assuming Buffer_Size1's[BS1's] width to be 14 bits, it is actually of 13 bits,

Re: [Bug 39822] SDHC cards no longer recognized on AT91 based board

2011-07-28 Thread Douglas Gilbert
On 11-07-28 07:48 PM, Chris Ball wrote: Hi, thanks for the bug report. Adding linux-mmc@ and some atmel driver folks to CC. On Thu, Jul 28 2011, bugzilla-dae...@bugzilla.kernel.org wrote: Prior to 3.0.0 the FoxG20 board (Atmel AT91SAM9G20) could boot and use both micro SD and SDHC card to