[PATCH v3 2/3] mmc: sdhci: enable tuning for DDR50

2015-10-04 Thread Barry Song
From: Weijun Yang <york.y...@csr.com> CMD19 tuning is also available for DDR50 mode. Signed-off-by: Weijun Yang <york.y...@csr.com> Signed-off-by: Barry Song <baohua.s...@csr.com> --- drivers/mmc/host/sdhci.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff -

[PATCH v3 3/3] mmc: sirf: fix the capbility to support DDR50

2015-10-04 Thread Barry Song
From: Weijun Yang <york.y...@csr.com> According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang <york.y...@csr.com> Signed-off-by: Barry Song <baohua.s...@csr.com> --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 delet

[PATCH v3 1/3] mmc: core: enable CMD19 tuning for DDR50 mode

2015-10-04 Thread Barry Song
ilable for DDR50 mode. Signed-off-by: Weijun Yang <york.y...@csr.com> Signed-off-by: Barry Song <baohua.s...@csr.com> --- drivers/mmc/core/sd.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 4e736

[PATCH v2 2/2] mmc: sirf: fix the capbility to support DDR50

2015-09-27 Thread Barry Song
From: Weijun Yang <york.y...@csr.com> According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang <york.y...@csr.com> Signed-off-by: Barry Song <baohua.s...@csr.com> --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 delet

[PATCH v2 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-09-27 Thread Barry Song
ilable for DDR50 mode. Signed-off-by: Weijun Yang <york.y...@csr.com> Signed-off-by: Barry Song <baohua.s...@csr.com> --- drivers/mmc/core/sd.c| 19 +-- drivers/mmc/host/sdhci.c | 1 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/sd.c

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-09-18 Thread Barry Song
2015-09-17 20:27 GMT+08:00 Ulf Hansson <ulf.hans...@linaro.org>: > On 15 September 2015 at 09:13, Barry Song <21cn...@gmail.com> wrote: >> 2015-08-25 20:05 GMT+08:00 Ulf Hansson <ulf.hans...@linaro.org>: >>> On 20 August 2015 at 02:16, Barry Song <21cn...@gma

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-09-15 Thread Barry Song
2015-08-25 20:05 GMT+08:00 Ulf Hansson <ulf.hans...@linaro.org>: > On 20 August 2015 at 02:16, Barry Song <21cn...@gmail.com> wrote: >> 2015-08-18 1:11 GMT+08:00 Ulf Hansson <ulf.hans...@linaro.org>: >>> On 11 August 2015 at 10:41, Barry Song <21cn...@g

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-08-19 Thread Barry Song
2015-08-18 1:11 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 11 August 2015 at 10:41, Barry Song 21cn...@gmail.com wrote: From: Weijun Yang york.y...@csr.com As SD Specifications Part1 Physical Layer Specification Version 3.01 says, CMD19 tuning is available for unlocked cards in transfer

[PATCH] mmc: sirf: corrent quirk according to real chips

2015-08-12 Thread Barry Song
From: Barry Song baohua.s...@csr.com the current quirk set is for an old FPGA, and this patch corrects quirks according to real SoC. Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 2/2] mmc: sirf: fix the capbility to support DDR50

2015-08-11 Thread Barry Song
From: Weijun Yang york.y...@csr.com According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang york.y...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-08-11 Thread Barry Song
for DDR50 mode. Signed-off-by: Weijun Yang york.y...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/core/sd.c| 1 + drivers/mmc/host/sdhci.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 4e7366a..a1ed24d 100644

[PATCH 1/2] mmc: sdhci-sirf: fix the tuning count in platform_execute_tuning

2015-04-27 Thread Barry Song
From: Weijun Yang weijun.y...@csr.com hardware has 16bit to record the tuning count, so fix it to 16384. at the same time, tuned_phases[SIRF_TUNING_COUNT] is useless as the array is never used, so move it to a variant. Signed-off-by: Weijun Yang weijun.y...@csr.com Signed-off-by: Barry Song

[PATCH 2/2] mmc: sdhci-sirf: fake version and capbility registers

2015-04-27 Thread Barry Song
From: Weijun Yang weijun.y...@csr.com chips have some issues for version and capbility registers, here we fake them. Signed-off-by: Weijun Yang weijun.y...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-sirf.c | 35

Re: [PATCH] mmc: sirf: update sdhci_sirf_execute_tuning procedure

2015-03-04 Thread Barry Song
ping Ulf 2015-02-15 23:43 GMT+08:00 Barry Song 21cn...@gmail.com: From: weijun yang york.y...@csr.com For the original tuning code, delay value is set to SD Bus Clock Delay Register (SD_CLK_DELAY_SETTING) as (val | (Val 7) | (val 16)), which means CLK_DELAY_IN1, CLK_DELAY_IN2

[PATCH] mmc: sirf: update sdhci_sirf_execute_tuning procedure

2015-02-15 Thread Barry Song
...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index f6f82ec..4331409 100644 --- a/drivers/mmc/host/sdhci-sirf.c +++ b

[RFC] MMC: CMD52 During Data Transfer support

2015-02-08 Thread Barry Song
hi Chris, Ulf, According to https://www.sdcard.org/downloads/pls/simplified_specs/archive/partE1_200.pdf (section CMD52 During Data Transfer ), A card may accept CMD52 during data transfer if it supports Direct Commands (see SDC, Table 6-3). For both SD and SPI modes, if an error occurs during

[PATCH v2] mmc: sdhci-sirf: add sirf tuning function (cmd 19)

2014-12-04 Thread Barry Song
-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index dd29d47..e458d18 100644 --- a/drivers/mmc/host/sdhci-sirf.c +++ b

[PATCH v2] mmc: core: add core-level function for sending tuning commands

2014-11-25 Thread Barry Song
platform_execute_tuning() callbacks. Signed-off-by: Minda Chen minda.c...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/core/mmc_ops.c | 70 ++ include/linux/mmc/core.h | 1 + 2 files changed, 71 insertions(+) diff --git a/drivers/mmc/core

Re: [PATCH] mmc: core: add core-level function for sending tuning commands

2014-11-24 Thread Barry Song
2014-11-24 19:44 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 21 November 2014 at 15:46, Barry Song 21cn...@gmail.com wrote: From: Minda Chen minda.c...@csr.com According to the SD card spec, Add a manual tuning command function for SDR104/HS200 by sending command 19 or command 21 to read

[PATCH] mmc: core: add core-level function for sending tuning commands

2014-11-21 Thread Barry Song
platform_execute_tuning() callbacks. Signed-off-by: Minda Chen minda.c...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/core/mmc_ops.c | 65 ++ include/linux/mmc/core.h | 1 + 2 files changed, 66 insertions(+) diff --git a/drivers/mmc/core

Re: [PATCH] mmc: sdhci-sirf: add sirf tuning function (cmd 19)

2014-11-20 Thread Barry Song
These piece of code, which sends the tuning command don't belong in the host driver. Instead I would like this to be handled from a helper function from the mmc core. I realize that there already a few existing host drivers that implemented similar code and I don't like it. We should convert

Re: [PATCH] mmc: sdhci-sirf: add sirf tuning function (cmd 19)

2014-11-17 Thread Barry Song
2014-11-12 17:35 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 11 November 2014 16:47, Barry Song 21cn...@gmail.com wrote: From: Minda Chen minda.c...@csr.com Add manual tuning function in CSR atlas7 SoC. It is mainly used for the UHS-I SD card working SDR50 SDR104 mode. The tuning

[PATCH] mmc: sdhci-sirf: add sirf tuning function (cmd 19)

2014-11-11 Thread Barry Song
-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 105 +- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index dd29d47..c71cf4e 100644 --- a/drivers/mmc/host

[PATCH v3] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

2014-08-25 Thread Barry Song
of 8bit transfer in mmc controllers and improve performance for mmc0 a lot. Signed-off-by: Minda Chen minda.c...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com Reviewed-by: Romain Izard romain.izard@gmail.com --- -v3:fix the HW version check according to Romain's feedback drivers/mmc

RE: [PATCH v2] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

2014-08-22 Thread Barry Song
-Original Message- From: Barry Song [mailto:21cn...@gmail.com] Sent: Thursday, August 21, 2014 6:09 PM To: Romain Izard Cc: linux-mmc@vger.kernel.org; Minda Chen; DL-SHA-WorkGroupLinux Subject: Re: [PATCH v2] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

RE: [PATCH] mmc: core: sd: check card write-protect lock while resuming

2014-08-22 Thread Barry Song
-Original Message- From: Ulf Hansson [mailto:ulf.hans...@linaro.org] Sent: Monday, August 18, 2014 7:58 PM To: Barry Song Cc: Chris Ball; linux-mmc; linux-arm-ker...@lists.infradead.org; DL-SHA- WorkGroupLinux; Minda Chen; Barry Song Subject: Re: [PATCH] mmc: core: sd: check card

Re: [PATCH v2] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

2014-08-21 Thread Barry Song
2014-08-20 22:25 GMT+08:00 Romain Izard romain.izard@gmail.com: [Followup-To: header set to gmane.linux.kernel.mmc.] On 2014-08-19, Barry Song 21cn...@gmail.com wrote: From: Minda Chen minda.c...@csr.com 8bit-width enable bit of CSR MMC hosts is 3, while stardard hosts use bit 5

[PATCH v2] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

2014-08-19 Thread Barry Song
From: Minda Chen minda.c...@csr.com 8bit-width enable bit of CSR MMC hosts is 3, while stardard hosts use bit 5. this patch fixes the functionality of 8bit transfer in CSR mmc controllers and improve performance for mmc0 a lot. Signed-off-by: Minda Chen minda.c...@csr.com Signed-off-by: Barry

[PATCH] mmc: core: sd: check card write-protect lock while resuming

2014-08-18 Thread Barry Song
From: Minda Chen minda.c...@csr.com After suspending, unplug the sdcard, and set sd WP lock, insert it again, then resume the system. resume codes do not check the the sdcard write-proctect lock. now check it. Signed-off-by: Minda Chen minda.c...@csr.com Signed-off-by: Barry Song baohua.s

[PATCH 03/13] mmc: sdhci-sirf: update copyright year to 2014

2014-02-12 Thread Barry Song
From: Barry Song baohua.s...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index 696122c..c6d399c 100644

[PATCH 2/2] mmc: sirf: enable combined dma buffer

2013-12-23 Thread Barry Song
From: Bin Shi bin@csr.com To take advantage of combined dma buffer, enable SDHCI_QUIRK2_SG_LIST_COMBINED_DMA_BUFFER to lift read/write performance. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Barry Song barry.s...@csr.com --- drivers/mmc/host/sdhci-sirf.c | 13 + 1

[PATCH 1/2] mmc: sdhci: combined dma buffer support for sdma

2013-12-23 Thread Barry Song
with normal dma mapping. Also this will involve one more memory copy, but good IO performance is got: On CSR SiRFprimaII, reading 8192KB will speed up from 17444KB/s to 18687KB/s, 7% lift. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Barry Song barry.s...@csr.com --- drivers/mmc/host

[PATCH] mmc: sdhci: use time_after to replace mdelay-loop for timeout

2013-12-23 Thread Barry Song
From: Barry Song barry.s...@csr.com 1ms busy-loop might be wasted when the condition if(sdhci_readl(host, SDHCI_PRESENT_STATE) mask) becomes false just after the if(). here we use time_after which will have no redundant busy-wait loop. Signed-off-by: Barry Song barry.s...@csr.com Cc: Bin Shi

[PATCH] mmc: sdhci-sirf: enable dmabounce since SiRFprimaII MMC DMA only access up to 256MB

2013-10-27 Thread Barry Song
, there is no this problem. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Binghua Duan binghua.d...@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- arch/arm/mach-prima2/Kconfig | 1 + drivers/mmc/host/sdhci-sirf.c | 18 ++ 2 files changed, 19 insertions(+) diff --git

Re: [PATCH V2] mmc:sdhci: Wait longer for command with busy flags

2013-08-09 Thread Barry Song
2013/8/9 Haijun Zhang haijun.zh...@freescale.com: When command with busy flags send and also data busy end interrupt will be generate, the command will be finished when data transfer complete or data busy state end, Sometimes this will expend more than 10*Hz time to finish this command, so we

Re: [PATCH V2] mmc:sdhci: Wait longer for command with busy flags

2013-08-09 Thread Barry Song
2013/8/9 Zhang Haijun b42...@freescale.com: On 08/09/2013 02:39 PM, Barry Song wrote: 2013/8/9 Haijun Zhang haijun.zh...@freescale.com: When command with busy flags send and also data busy end interrupt will be generate, the command will be finished when data transfer complete or data busy

Re: [PATCH 04/12] drivers/mmc/host: don't use devm_pinctrl_get_select_default() in probe

2013-07-11 Thread Barry Song
2013/7/10 Wolfram Sang w...@the-dreams.de: Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for setting the default pins. Compile tested only. Acked-by: Linus Walleij linus.wall...@linaro.org (personally at LCE13) Signed-off-by: Wolfram

[PATCH] sdhci:sirf:drop SDHCI_QUIRK_INVERTED_WRITE_PROTECT as only sd0 has inverted_wp

2013-07-01 Thread Barry Song
From: Bin Shi bin@csr.com only sd0 has the issue that WP is inverted, so we drop the global set of SDHCI_QUIRK_INVERTED_WRITE_PROTECT and only enable the wp-inverted prop for sd0 in dts. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Barry Song baohua.s...@csr.com --- arch/arm/boot

Re: [PATCH] mmc: sirf: fix sdhci_pltfm_init sequence

2013-06-03 Thread Barry Song
driver to use the new interface, avoiding one warning, and simplifying the init sequence. Since we're here already, this also adds an error path for failed clk_prepare_enable. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Christian Daudt c...@broadcom.com Cc: Barry Song baohua.s...@csr.com

[PATCH] mmc: sdhci-sirf: let device core setup the default pin configuration

2013-05-14 Thread Barry Song
With device core now able to setup the default pin configuration, the call to devm_pinctrl_get_select_default can be removed. And the pin configuration code based on the deprecated Samsung specific gpio bindings is also removed. CC: Linus Walleij linus.wall...@linaro.org Signed-off-by: Barry Song

[PATCH v2] mmc: sdhci-sirf: let device core setup the default pin configuration

2013-05-14 Thread Barry Song
-by: Barry Song baohua.s...@csr.com --- -v2: delete #include linux/pinctrl/consumer.h drivers/mmc/host/sdhci-sirf.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index 09805af..ccf12dd 100644 --- a/drivers/mmc

[PATCH] sdhci: sirf: add mmc host sdhci-pltfm based driver for SiRF SoCs

2013-03-21 Thread Barry Song
From: Barry Song baohua.s...@csr.com this patch adds the new driver for CSR SiRF SoCs: SiRFprimaII: unicore ARM Cortex-A9 SiRFatlas6: unicore ARM Cortex-A9 SiRFmarco: dual core ARM Cortex-A9 SMP Signed-off-by: Barry Song baohua.s...@csr.com Signed-off-by: Bin Shi bin@csr.com

Re: [PATCH V4] mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used

2012-01-28 Thread Barry Song
2012/1/12 Dmitry Shmidt dimitr...@google.com On Tue, Jan 10, 2012 at 6:44 PM, Barry Song 21cn...@gmail.com wrote: 2012/1/10 Dmitry Shmidt dimitr...@google.com: Signed-off-by: Dmitry Shmidt dimitr...@google.com Hi Dmitry, after you move mmc_bus_suspend, mmc_bus_resume to dev_pm_ops

Re: [PATCH V4] mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used

2012-01-28 Thread Barry Song
2012/1/12 Dmitry Shmidt dimitr...@google.com On Tue, Jan 10, 2012 at 6:44 PM, Barry Song 21cn...@gmail.com wrote: 2012/1/10 Dmitry Shmidt dimitr...@google.com: Signed-off-by: Dmitry Shmidt dimitr...@google.com Acked-by: Barry Song baohua.s...@csr.com Hi Dmitry, after you move

Re: [PATCH V4] mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used

2012-01-10 Thread Barry Song
2012/1/10 Dmitry Shmidt dimitr...@google.com: Signed-off-by: Dmitry Shmidt dimitr...@google.com Hi Dmitry, after you move mmc_bus_suspend, mmc_bus_resume to dev_pm_ops, while doing hiberantion by swsusp, suspend/resume will not be called by the hibernation flow since it will move to call

Re: [PATCH] mmc: core: move suspend/resume to dev_pm_ops and add hibernation support

2012-01-10 Thread Barry Song
2012/1/9 Shubhrajyoti Datta omaplinuxker...@gmail.com: Hi Bin, On Mon, Jan 9, 2012 at 11:52 AM, Barry Song barry.s...@csr.com wrote: From: Bin Shi bin@csr.com This patch moves suspend/resume to dev_pm_ops and add hibernation support. It was tested on CSR SiRFprimaII cortex-a9 platform

[PATCH] mmc: core: move suspend/resume to dev_pm_ops and add hibernation support

2012-01-08 Thread Barry Song
From: Bin Shi bin@csr.com This patch moves suspend/resume to dev_pm_ops and add hibernation support. It was tested on CSR SiRFprimaII cortex-a9 platform. A sd partition is used as swsusp partition. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Barry Song barry.s...@csr.com

Re: [PATCH]mmc: sdhci: use udelay instead of mdelay for some cases

2011-10-26 Thread Barry Song
2011/10/27 Shawn.Dong shawn.dong...@gmail.com: sdhci_set_clock or sdhci_reset or sdhci_send_command may be used in critical region which is protected by spin_lock_irqsave. Thus, these functions will delay the responsing of the kernel interrupts. So in this case, using a mdelay will cause

Re: [PATCH] PM: HIBERNATION: add resume_delay kernel param as well as resume_delay

2011-10-10 Thread Barry Song
2011/10/10 Borislav Petkov b...@alien8.de: On Sun, Oct 09, 2011 at 10:44:12PM -0700, Barry Song wrote: From: Barry Song baohua.s...@csr.com patch PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file add resume_wait param. this patch adds resume_delay so

[PATCH] PM: HIBERNATION: add resume_delay kernel param as well as resume_delay

2011-10-09 Thread Barry Song
From: Barry Song baohua.s...@csr.com patch PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file add resume_wait param. this patch adds resume_delay so that resume_wait/delay has the same model with root_wait/delay. Signed-off-by: Barry Song baohua.s...@csr.com

Re: [PATCH] mmc: sdhci: shorten the interval to wait SDHCI_PRESENT_STATE set after sending cmd

2011-10-08 Thread Barry Song
2011/10/1 Andrei E. Warkentin andrey.warken...@gmail.com: Hi, 2011/9/28 Barry Song barry.s...@csr.com: From: Barry Song baohua.s...@csr.com now we wait 1ms after every loop, in the worst case, 1ms will be wasted. that both decreases sd performance and increases cpu usage. This patch

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-10-07 Thread Barry Song
2011/10/7 Pavel Machek pa...@ucw.cz: 2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-10-07 Thread Barry Song
2011/10/7 Barry Song 21cn...@gmail.com: 2011/10/7 Pavel Machek pa...@ucw.cz: 2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow

[PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc partitions then add disk. we do have wait_for_device_probe and scsi_complete_async_scans before calling swsusp_check

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
hi Valdis, 2011/9/29 valdis.kletni...@vt.edu: On Thu, 29 Sep 2011 02:29:08 PDT, Barry Song said: This patch adds resumewait kernel param just like rootwait so that we have enough time to wait mmc ready. The differene is here we wait for resume partition but rootwait waits for rootfs

[PATCH v2] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc partitions then add disk. we do have wait_for_device_probe and scsi_complete_async_scans before calling swsusp_check

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 5:47 PM, Luca Tettamanti kronos...@gmail.com wrote: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow

Re: I have three patches, could someone give your comment?

2011-05-23 Thread Barry Song
you must have mis-operations. 2011/5/20 Huang Changming-R66093 r66...@freescale.com: I have posted these patches, why I can't received them from Linux-mmc? Thanks and Best Regards Jerry Huang -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc-

Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

2011-04-27 Thread Barry Song
interrupt in hardware except that hardware gives a special design with data1. Otherwise, controllers with shared pins requested at runtime will not support sdio devices with interrupts. Philip On Apr 26, 2011, at 12:27 AM, Barry Song wrote: Hi Wolfram, 2011/4/26 Wolfram Sang w.s

Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

2011-04-27 Thread Barry Song
2011/4/28 Barry Song 21cn...@gmail.com: Hi Philip, 2011/4/26 Philip Rakity prak...@marvell.com: Barry, How are interrupts from SDIO devices handled ?   SDIO devices use one of the pins to signal a interrupt to the host when data is availabe. Good question. in fact, it is impossible

Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

2011-04-26 Thread Barry Song
Hi Wolfram, 2011/4/26 Wolfram Sang w.s...@pengutronix.de: * Where is the patch that implements the get_shared_pins() hook in  your driver? We send the common level patch ahead to get the upstream agreement so that we can maintain our bottom level sdhci codes better. We will send the

[PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

2011-04-25 Thread Barry Song
Cc: Binghua Duan binghua.d...@csr.com Cc: Andrei Warkentin andr...@motorola.com Cc: Philip Rakity prak...@marvell.com Signed-off-by: Barry Song 21cn...@gmail.com ---  drivers/mmc/host/sdhci.c |   13 +  drivers/mmc/host/sdhci.h |    2 ++  2 files changed, 15 insertions(+), 0 deletions

Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

2011-04-25 Thread Barry Song
2011/4/26 Chris Ball c...@laptop.org: Hi Barry, On Mon, Apr 25 2011, Barry Song wrote: From: Bin Shi bin@csr.com some controllers share data bus or other pins between multi-controllers and need to switch the functions of shared pins runtime. this patch requested those shared pins

Re: [PATCH] sdhci: add quirk to support shared bus controller

2011-04-24 Thread Barry Song
2011/4/21 Andrei Warkentin andr...@motorola.com: Hi, On Thu, Apr 21, 2011 at 3:51 AM, Barry Song 21cn...@gmail.com wrote: From: Bin Shi bin@csr.com some controllers share data bus or other pins between multi-controllers and need to switch the functions of shared pins runtime

[PATCH] sdhci: add quirk to support shared bus controller

2011-04-21 Thread Barry Song
Cc: Binghua Duan binghua.d...@csr.com Signed-off-by: Barry Song 21cn...@gmail.com --- drivers/mmc/host/sdhci.c | 13 + drivers/mmc/host/sdhci.h |2 ++ include/linux/mmc/sdhci.h |2 ++ 3 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b