[PATCH 11/18] MMC: OMAP: Abort stuck commands

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> When a card is removed while it is being accessed, a command can get stuck so that no timeout or end of command interrupt ever occurs. The command getting stuck is almost always CDM12, but also the other commands can get stuck. Catch a stuck command with a

[PATCH 10/18] MMC: OMAP: General cleanup for MMC multislot support

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> General code cleanup, modifications at some dev_* functions and other hacks at mmc_omap_irq() for MMC multislot support. Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMA

[PATCH 15/18] MMC: OMAP: Move failing command abortion to workqueue

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> Abort failed command from workqueue rather than from an interrupt, allowing longer delays in abortion. Signed-off-by: Jarkko Lavinen <[EMAIL PROTECTED]> --- drivers/mmc/host/omap.c | 82 --- 1 files changed, 4

[PATCH 17/18] MMC: OMAP: Start new commands from work queue instead of irq

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> Use work queues for starting new commands instead of starting them directly from irq handler. The command scheduling needs to be delayed a bit for some cards which should not be done from an interrupt. Signed-off-by: Jarkko Lavinen <[EMAIL PROTECTED]> ---

[PATCH 14/18] MMC: OMAP: Use tasklet instead of workqueue for cover switch notification

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> The cover waitqueue is occasionally scheduled twice from timer and the interrupt and oops follows. It would have been possible to fix this problem with spinlocks but using tasklet was a dropin sloution with no need for locking. This path also adds some cle

[PATCH 13/18] MMC: OMAP: Check the get_cover_state function pointer if not set

2008-01-28 Thread Carlos Aguiar
From: Kyungmin Park <[EMAIL PROTECTED]> If the get_cover_state is not set, it occurs the oops. Signed-off-by: Kyungmin Park <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> --- drivers/mmc/host/omap.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git

[PATCH 12/18] MMC: OMAP: Using setup_timer instead of init_timer

2008-01-28 Thread Carlos Aguiar
From: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Using setup_timer() instead of init_timer() on omap.c file. Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> --- drivers/mmc/host/omap.c | 14 -- 1 files changed, 4 insertions(+

[PATCH 09/18] MMC: OMAP: Power functions modified to MMC multislot support

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> Modifications at power functions to MMC multislot support. This patch also move board-specific code out of MMC OMAP driver. Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[

[PATCH 08/18] MMC: OMAP: Fix timeout calculation for MMC multislot support

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> Fix the data timeout calculation for MMC multislot support. Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Jarkko Lavinen <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTE

[PATCH 06/18] MMC: OMAP: Add back cover switch support

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> This patch adds back MMC cover switch support in a way that supports multiple slots. Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Jarkko Lavinen <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony

[PATCH 07/18] MMC: OMAP: New release dma and abort xfer functions

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> New functions to support MMC multislot: mmc_omap_release_dma() and mmc_omap_abort_xfer(). Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> --- drivers/mmc

[PATCH 00/18] MMC: OMAP: Sync MMC OMAP driver with mainline tree

2008-01-28 Thread Carlos Aguiar
Hi Pierre, Tony and folks, The patch series that follows is a synchronization of MMC OMAP driver from Linux-OMAP tree into mainline tree. Basically, it brings MMC multislot support for OMAP boards with one slot (like H2 1611, H3 1710) or two slots (like H4 2420 and N800). Others boards supported

[PATCH 18/18] MMC: OMAP: Do not busy wait for end of command for ever

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> The limit was a fixed 100k limit in the busy loop, which is not accurate. It would better to have time limit for the worst case which occurs when sending 80 cycles at 400 kHz and takes about 200 microseconds, so limit the max time spend in the busy loop for

[PATCH 16/18] MMC: OMAP: Lazy clock shutdown

2008-01-28 Thread Carlos Aguiar
From: Jarkko Lavinen <[EMAIL PROTECTED]> MMCA spec says the mmc clock should be kept running for at least 8 cycles after the last RW request. Ensure this with lazy clock disable after a request, or with an explicit delay before switching a slot. Signed-off-by: Jarkko Lavinen <[EMAIL PROTECTED]> -

[PATCH 02/18] MMC: OMAP: Remove extra divisor increase

2008-01-28 Thread Carlos Aguiar
From: Tony Lindgren <[EMAIL PROTECTED]> As noted by Kyungmin Park, the divisor calculation has an unnecessary increase. Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> --- drivers/mmc/host/omap.c |1 - 1 files changed, 0 insertions(+)

[PATCH 04/18] MMC: OMAP: Remove cover switch handling to allow adding multislot support

2008-01-28 Thread Carlos Aguiar
From: Tony Lindgren <[EMAIL PROTECTED]> This patch removes the MMC cover switch handling temporarily to make following multislot patches cleaner. MMC cover switch handling will be added back in later patches after adding basic multislot support. Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> S

[PATCH 01/18] MMC: OMAP: Include missing from previous merging

2008-01-28 Thread Carlos Aguiar
From: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> This patch adds an include missing from previous merging mainline tree into linux-omap tree. Signed-off-by: Carlos Eduardo Aguiar <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> --- drivers/mmc/host/omap.c |1 + 1 files cha

[PATCH 03/18] MMC: OMAP: Fix the BYTEBLOCK capability removal

2008-01-28 Thread Carlos Aguiar
From: Francisco Alecrim <[EMAIL PROTECTED]> According with commit 255d01af9a990fd5166f04ed0cc0b30b7b67e81e from Linux-OMAP tree, the BYTEBLOCK capability was removed by Pierre Ossman. MMC_CAP_BYTEBLOCK is not defined causing the compile error: drivers/mmc/host/omap.c: In function `mmc_omap_probe'

[PATCH 05/18] MMC: OMAP: Introduce new multislot structure and change driver to use it

2008-01-28 Thread Carlos Aguiar
From: Juha Yrjola <[EMAIL PROTECTED]> Introduce new MMC multislot structure and change driver to use it. Note that MMC clocking is now enabled in mmc_omap_select_slot() and disabled in mmc_omap_release_slot(). Signed-off-by: Juha Yrjola <[EMAIL PROTECTED]> Signed-off-by: Jarkko Lavinen <[EMAIL P

[PATCH 1/3] MMC: OMAP: Add missing ´\n´

2007-04-24 Thread Carlos Aguiar
This patch add a missing '\n' at the end of the 'cover is open' string in mmc_omap_switch_handler(). Signed-off-by: Arnaud Patard <[EMAIL PROTECTED]> Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> Index: linux-2.6.20/drivers/mmc/omap.c ==

[PATCH 2/3] MMC: OMAP: Fix omap to use MMC_POWER_ON

2007-04-24 Thread Carlos Aguiar
As discussed earlier on LKML: http://lkml.org/lkml/2006/5/4/44 Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> Index: linux-2.6.20/drivers/mmc/omap.c === --- linux-2.6.20.orig/drivers/mmc/omap.c2007-04-24 15:22:12.

[PATCH 3/3] MMC: OMAP: Clean up omap set_ios and make MMC_POWER_ON work

2007-04-24 Thread Carlos Aguiar
Move divisor calculation into a separate function and re-arrange the init order to make MMC_POWER_ON work. Signed-off-by: Tony Lindgren <[EMAIL PROTECTED]> Index: linux-2.6.20/drivers/mmc/omap.c === --- linux-2.6.20.orig/drivers/mmc

[PATCH 0/3] Aligning omap.c from Linux-OMAP to mainline kernel

2007-04-24 Thread Carlos Aguiar
Hi Pierre, Find in this series the pending patches from Linux-OMAP to mainline for drivers/mmc/omap.c The patches series was applied against Linus' tree 2.6.21-rc7-git6. Anyway, it was tested on OMAP H2 (using omap_h2_1610_defconfig available on linus' tree). BR, Carlos. -- Carlos Eduardo No