[PATCH] mmc: mediatek: Add MMC_CAP_RUNTIME_RESUME support

2015-09-21 Thread Chaotian Jing
Add MMC_CAP_RUNTIME_RESUME support to save resume time Drop unnecessary SDC_ARG write Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 7153500..b2e89d3 100644

[PATCH 2/3] mmc: debugfs: implement ios show for SDR12 and SDR25

2015-09-21 Thread Shawn Lin
This patch add MMC_TIMING_UHS_SDR12 and MMC_TIMING_UHS_SDR25 for mmc_ios_show to show the ios->timing if mmc card runs under these two mode. Signed-off-by: Shawn Lin --- drivers/mmc/core/debugfs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc

Re: [PATCH 1/3] mmc: debugfs: fix memory leak for mmc_ext_csd_open

2015-09-21 Thread Shawn Lin
On 2015/9/22 9:29, trick wong wrote: In the correct path,this buf will used later.why freed? right. sorry for this noise, withdraw this patch[1/3]. 2015-09-22 9:18 GMT+08:00 Shawn Lin mailto:shawn@rock-chips.com>>: buf allocated isn't been freed before return, so we fix it. Fix

[PATCH 3/3] mmc: debugfs: implement ios show for driver type

2015-09-21 Thread Shawn Lin
This patch add ios->drv_type for mmc_ios_show to show the card's driver type. Signed-off-by: Shawn Lin --- drivers/mmc/core/debugfs.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index 31155e8..5243e5f 100644 --

[PATCH 1/3] mmc: debugfs: fix memory leak for mmc_ext_csd_open

2015-09-21 Thread Shawn Lin
buf allocated isn't been freed before return, so we fix it. Fixes: 736bb6bb01a ("mmc: Add Extended CSD register to debugfs") Signed-off-by: Shawn Lin --- drivers/mmc/core/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index

Re: [PATCH V3] mmc: block: Add new ioctl to send multi commands

2015-09-21 Thread Grant Grundler
Jon, Ulf, Can we first get the current implementation upstream and _then_ add more patches to it? On Mon, Sep 21, 2015 at 4:19 AM, Jon Hunter wrote: ... + for (i = 0; i < num_of_cmds; i++) { + err = __mmc_blk_ioctl_cmd(card, md, idata[i]); + if (er

[PATCH] mmc: pwrseq_simple: use GPIO descriptors array API

2015-09-21 Thread Javier Martinez Canillas
The simple power sequence provider sets a value for multiple GPIOs in one go so it is better to use the API already provided by the GPIO descriptor API instead of open coding the same logic. Signed-off-by: Javier Martinez Canillas --- drivers/mmc/core/pwrseq_simple.c | 45 ++---

Re: [PATCH V3] mmc: block: Add new ioctl to send multi commands

2015-09-21 Thread Jon Hunter
On 21/09/15 10:56, Jon Hunter wrote: > > On 16/09/15 18:54, Gwendal Grignou wrote: > > [snip] > >>> +static int mmc_blk_ioctl_multi_cmd(struct block_device *bdev, >>> + struct mmc_ioc_multi_cmd __user *user) >>> +{ >>> + struct mmc_blk_ioc_data **idata = N

Re: [PATCH V3] mmc: block: Add new ioctl to send multi commands

2015-09-21 Thread Jon Hunter
On 16/09/15 18:54, Gwendal Grignou wrote: [snip] >> +static int mmc_blk_ioctl_multi_cmd(struct block_device *bdev, >> + struct mmc_ioc_multi_cmd __user *user) >> +{ >> + struct mmc_blk_ioc_data **idata = NULL; >> + struct mmc_ioc_cmd __user *cmds = us

Re: [PATCH v2] mmc/sdhci-acpi: enable sdhci-acpi device to suspend/resume asynchronously

2015-09-21 Thread Andy Shevchenko
On Mon, 2015-09-21 at 14:51 +0800, Fu, Zhonghui wrote: > Now, PM core supports asynchronous suspend/resume mode for devices > during system suspend/resume, and the power state transition of one > device may be completed in separate kernel thread. PM core ensures > all power state transition timing

Re: [PATCH] MMC/SDIO: enable SDIO device to suspend/resume asynchronously

2015-09-21 Thread Adrian Hunter
On 21/09/15 11:15, Adrian Hunter wrote: > On 21/09/15 08:29, Fu, Zhonghui wrote: >> >> >> On 2015/8/24 15:07, Fu, Zhonghui wrote: >>> >>> On 2015/8/17 14:48, Adrian Hunter wrote: On 17/08/15 06:26, Fu, Zhonghui wrote: > Hi, > > Any comments are welcome. > > > Thanks, >>

Re: [PATCH] MMC/SDIO: enable SDIO device to suspend/resume asynchronously

2015-09-21 Thread Adrian Hunter
On 21/09/15 08:29, Fu, Zhonghui wrote: > > > On 2015/8/24 15:07, Fu, Zhonghui wrote: >> >> On 2015/8/17 14:48, Adrian Hunter wrote: >>> On 17/08/15 06:26, Fu, Zhonghui wrote: Hi, Any comments are welcome. Thanks, Zhonghui On 2015/7/30 15:40, Fu, Zhongh