[PATCH] mmc: sdhci: Setting the host-mrq to NULL before executing tuning

2013-11-04 Thread Chuansheng Liu
In function sdhci_request(), it is possible to do the tuning execution like below: sdhci_request() { spin_lock_irqsave(host-lock, flags); host-mrq = mrq; ... spin_unlock_irqrestore(host-lock, flags); === Here it is possible one pending finish_tasklet get running

[PATCH] mmc: sdio: Removing the unnecessary runtime_get/put in sdio_bus_remove()

2012-12-18 Thread Chuansheng Liu
The runtime_get_sync() is called during sdio_bus_probe(), then the device will be kept in active runtime state, so not neccessary to call runtime_get_sync/put_noidle() again in sdio_bus_remove(). Signed-off-by: liu chuansheng chuansheng@intel.com --- drivers/mmc/core/sdio_bus.c |8

[PATCH] mmc,sdio: advancing the setting of dev name in mmc_sdio_init_card()

2012-11-19 Thread Chuansheng Liu
In below call trace: mmc_rescan - mmc_rescan_try_freq() - mmc_attach_sdio() - mmc_sdio_init_card() ... pm_runtime_set_active() ... mmc_add_card() The dev name is set until in mmc_add_card(), but before that, it is possible the dev name is needed, for

[PATCH] mmc,sdio: Fix the panic due to devname NULL when calling pm_runtime_set_active()

2012-11-15 Thread Chuansheng Liu
Subject: [PATCH] mmc,sdio: Fix the panic due to devname NULL when calling pm_runtime_set_active() Meet one panic as the below: 1[ 15.067350] BUG: unable to handle kernel NULL pointer dereference at (null) 1[ 15.074455] IP: [c1496a42] strlen+0x12/0x20 4[ 15.078803] *pde = 0[