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

2015-10-04 Thread Barry Song
From: Weijun Yang CMD19 tuning is also available for DDR50 mode. Signed-off-by: Weijun Yang Signed-off-by: Barry Song --- drivers/mmc/host/sdhci.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 64b7fdb

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

2015-10-04 Thread Barry Song
From: Weijun Yang According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang Signed-off-by: Barry Song --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci

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

2015-10-04 Thread Barry Song
-off-by: Weijun Yang Signed-off-by: Barry Song --- 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 4e7366a..eaf8cb3 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c

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

2015-09-27 Thread Barry Song
From: Weijun Yang According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang Signed-off-by: Barry Song --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci

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

2015-09-27 Thread Barry Song
-off-by: Weijun Yang Signed-off-by: Barry Song --- 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 b/drivers/mmc/core/sd.c index 4e7366a..eaf8cb3 100644 --- a/drivers/mmc/core

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 : > On 15 September 2015 at 09:13, Barry Song <21cn...@gmail.com> wrote: >> 2015-08-25 20:05 GMT+08:00 Ulf Hansson : >>> On 20 August 2015 at 02:16, Barry Song <21cn...@gmail.com> wrote: >>>> 2015-08-18 1:11 GMT+08:0

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 : > On 20 August 2015 at 02:16, Barry Song <21cn...@gmail.com> wrote: >> 2015-08-18 1:11 GMT+08:00 Ulf Hansson : >>> On 11 August 2015 at 10:41, Barry Song <21cn...@gmail.com> wrote: >>>> From: Weijun Yang >>&

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 : > On 11 August 2015 at 10:41, Barry Song <21cn...@gmail.com> wrote: >> From: Weijun Yang >> >> As SD Specifications Part1 Physical Layer Specification Version >> 3.01 says, CMD19 tuning is available for unlocked cards in tr

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

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

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

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

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

2015-08-11 Thread Barry Song
-off-by: Weijun Yang Signed-off-by: Barry Song --- 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 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c

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

2015-04-27 Thread Barry Song
From: Weijun Yang chips have some issues for version and capbility registers, here we fake them. Signed-off-by: Weijun Yang Signed-off-by: Barry Song --- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-sirf.c | 35 +++ 2 files changed, 36

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

2015-04-27 Thread Barry Song
From: Weijun Yang 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 Signed-off-by: Barry Song --- drivers/mmc/host/sdhci-sirf.c | 9

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 > > 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

[PATCH] mmc: sirf: update sdhci_sirf_execute_tuning procedure

2015-02-15 Thread Barry Song
pecification documents CS-304575-DR-3H, this issue is clarified, the delay[13:0] in SD_CLK_DELAY_SETTING is simplied to the concatenation of {CLK_DELAY_IN2, CLK_DELAY_IN1}. Besides, for CMD19 tuning, no need to set CLK_DELAY_OUT([22,16] of SD_CLK_DELAY_SETTING). Signed-off-by: weijun yang Signed-o

[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 dat

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

2014-12-04 Thread Barry Song
bytes data. If the data is same with the tuning data. The delay value is valid. Execute this commmand 128 times. And calculate the longest window of the valid values. The value in the middle of this window is the best value. Signed-off-by: Minda Chen Signed-off-by: Barry Song --- drivers/mmc/host

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

2014-11-25 Thread Barry Song
() callbacks. Signed-off-by: Minda Chen Signed-off-by: Barry Song --- drivers/mmc/core/mmc_ops.c | 70 ++ include/linux/mmc/core.h | 1 + 2 files changed, 71 insertions(+) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 7911e05

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 : > On 21 November 2014 at 15:46, Barry Song <21cn...@gmail.com> wrote: >> From: Minda Chen >> >> According to the SD card spec, Add a manual tuning command function >> for SDR104/HS200 by sending command 19 or command 21 to

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

2014-11-21 Thread Barry Song
() callbacks. Signed-off-by: Minda Chen Signed-off-by: Barry Song --- drivers/mmc/core/mmc_ops.c | 65 ++ include/linux/mmc/core.h | 1 + 2 files changed, 66 insertions(+) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 7911e05

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.

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 : > On 11 November 2014 16:47, Barry Song <21cn...@gmail.com> wrote: >> From: Minda Chen >> >> Add manual tuning function in CSR atlas7 SoC. It is mainly used >> for the UHS-I SD card working SDR50 SDR104 mode. >> &g

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

2014-11-11 Thread Barry Song
bytes data. If the data is same with the tuning data. The delay value is valid. Execute this commmand 128 times. And calculate the longest window of the valid values. The value in the middle of this window is the best value. Signed-off-by: Minda Chen Signed-off-by: Barry Song --- drivers/mmc/host

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

2014-08-25 Thread Barry Song
in mmc controllers and improve performance for mmc0 a lot. Signed-off-by: Minda Chen Signed-off-by: Barry Song Reviewed-by: Romain Izard --- -v3:fix the HW version check according to Romain's feedback drivers/mmc/host/sdhci-sirf.c | 24 +++- 1 file changed, 23 inser

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

2014-08-21 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]

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

2014-08-21 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 overwriti

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 : > ["Followup-To:" header set to gmane.linux.kernel.mmc.] > On 2014-08-19, Barry Song <21cn...@gmail.com> wrote: >> From: Minda Chen >> >> 8bit-width enable bit of CSR MMC hosts is 3, while stardard hosts use >>

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

2014-08-19 Thread Barry Song
From: Minda Chen 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 Signed-off-by: Barry Song --- -v2: check for host

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

2014-08-19 Thread Barry Song
From: Minda Chen 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 Signed-off-by: Barry Song --- drivers/mmc/host/sdhci

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

2014-08-18 Thread Barry Song
From: Minda Chen 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 Signed-off-by: Barry Song --- drivers/mmc/core/sd.c | 7 +++ 1 file

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

2014-02-12 Thread Barry Song
From: Barry Song Signed-off-by: Barry Song --- 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 --- a/drivers/mmc/host/sdhci-sirf.c +++ b/drivers

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

2013-12-23 Thread Barry Song
From: Barry Song 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 Cc: Bin Shi --- drivers/mm

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

2013-12-23 Thread Barry Song
From: Bin Shi 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 Signed-off-by: Barry Song --- drivers/mmc/host/sdhci-sirf.c | 13 + 1 files changed, 13 insertions(+), 0 deletions

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

2013-12-23 Thread Barry Song
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 Signed-off-by: Barry Song --- drivers/mmc/host/sdhci.c | 98

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

2013-10-27 Thread Barry Song
problem. Signed-off-by: Bin Shi Signed-off-by: Binghua Duan Signed-off-by: Barry Song --- arch/arm/mach-prima2/Kconfig | 1 + drivers/mmc/host/sdhci-sirf.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/mach-prima2/Kconfig b/arch/arm/mach-prima2/Kconfig index

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

2013-08-09 Thread Barry Song
2013/8/9 Zhang Haijun : > On 08/09/2013 02:39 PM, Barry Song wrote: >> >> 2013/8/9 Haijun Zhang : >>> >>> When command with busy flags send and also data busy end interrupt >>> will be generate, the command will be finished when data transfer >>&

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

2013-08-08 Thread Barry Song
2013/8/9 Haijun Zhang : > 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 should wait longer to d

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 : > 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 (personally at LCE13) > Signed-off-by: Wolfram Sang > --- > drivers/mmc/host/mvsdi

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

2013-07-01 Thread Barry Song
From: Bin Shi 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 Signed-off-by: Barry Song --- arch/arm/boot/dts/atlas6.dtsi | 1 + arch/arm/boot/

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

2013-06-03 Thread Barry Song
rface. > > This changes the sirf 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 > Cc: Christian Daudt >

[PATCH v2] 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. Acked-by: Linus Walleij Signed-off-by: Barry Song --- -v2

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

2013-05-13 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 Signed-off-by: Barry Song --- drivers/mmc/host

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

2013-03-21 Thread Barry Song
From: Barry Song 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 Signed-off-by: Bin Shi --- .../devicetree/bindings/mmc/sdhci-sirf.txt | 18

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 >> >> On Tue, Jan 10, 2012 at 6:44 PM, Barry Song <21cn...@gmail.com> wrote: >> > 2012/1/10 Dmitry Shmidt : >> >> Signed-off-by: Dmitry Shmidt Acked-by: Barry Song >> > >> > Hi Dmitry, >> >

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 > > On Tue, Jan 10, 2012 at 6:44 PM, Barry Song <21cn...@gmail.com> wrote: > > 2012/1/10 Dmitry Shmidt : > >> Signed-off-by: Dmitry Shmidt > > > > Hi Dmitry, > > after you move mmc_bus_suspend, mmc_bus_resume to dev_pm_ops, w

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 : > Hi Bin, > > On Mon, Jan 9, 2012 at 11:52 AM, Barry Song wrote: >> From: Bin Shi >> >> This patch moves suspend/resume to dev_pm_ops and add hibernation support. >> It was tested on CSR SiRFprimaII cortex-a9 platform. A sd partiti

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 : > Signed-off-by: Dmitry Shmidt 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 freeze/thaw/restore. if we don't stop blk queue

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

2012-01-08 Thread Barry Song
From: Bin Shi 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 Signed-off-by: Barry Song --- drivers/mmc/core/bus.c | 38

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

2011-10-26 Thread Barry Song
2011/10/27 Shawn.Dong : > 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 unnecessary latency. Ou

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

2011-10-09 Thread Barry Song
2011/10/10 Borislav Petkov : > On Sun, Oct 09, 2011 at 10:44:12PM -0700, Barry Song wrote: >> From: Barry Song >> >> patch "PM: HIBERNATION: add resume_wait param to support MMC-like devices >> as resume file" add resume_wait param. this patch adds resume_d

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

2011-10-09 Thread Barry Song
From: Barry Song 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 --- Documentation/kernel-para

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 : > Hi, > > 2011/9/28 Barry Song : >> From: Barry Song >> >> 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 shorten the

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 : >>> 2011/9/29 Luca Tettamanti : >>> > On Thu, Sep 29, 2011 at 11:29 AM, Barry Song wrote: >>> >> From: Barry Song >>> >> >>> >> Some devices like mmc

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 : >> 2011/9/29 Luca Tettamanti : >> > On Thu, Sep 29, 2011 at 11:29 AM, Barry Song wrote: >> >> From: Barry Song >> >> >> >> Some devices like mmc are async detected very slow. For example, >> >> drivers/mm

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 : > On Thu, Sep 29, 2011 at 5:47 PM, Luca Tettamanti wrote: >> On Thu, Sep 29, 2011 at 11:29 AM, Barry Song wrote: >>> From: Barry Song >>> >>> Some devices like mmc are async detected very slow. For example, >>> drivers/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 : > On Thu, Sep 29, 2011 at 11:29 AM, Barry Song wrote: >> From: Barry Song >> >> Some devices like mmc are async detected very slow. For example, >> drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect >> mmc partition

[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 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, but it is not enough to

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 : > 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 roo

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

2011-09-29 Thread Barry Song
From: Barry Song 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, but it is not enough to

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

2011-09-28 Thread Barry Song
From: Barry Song 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 shorten the interval to 1us, then in the worst case, only 1us is wasted. Signed-off-by: Barry Song --- drivers/mmc/host/sdhci.c

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 : > 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- >> ow...@vger.kernel.org

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 : >> >> 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. &g

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

2011-04-27 Thread Barry Song
io 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, >> &g

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 : >> > * 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 special driver p

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 : > Hi Barry, > > On Mon, Apr 25 2011, Barry Song wrote: >> From: Bin Shi >> >> some controllers share data bus or other pins between >> multi-controllers and need to switch the functions of shared pins >> runtime. >> this pa

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

2011-04-25 Thread Barry Song
Warkentin Cc: Philip Rakity 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(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index f

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

2011-04-25 Thread Barry Song
2011/4/25 Barry Song <21cn...@gmail.com>: > 2011/4/21 Andrei Warkentin : >> Hi, >> >> On Thu, Apr 21, 2011 at 3:51 AM, Barry Song <21cn...@gmail.com> wrote: >>> From: Bin Shi >>> >>> some controllers share data bus or other pins betwe

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

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

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

2011-04-21 Thread Barry Song
-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/drivers/mmc/host/sdhci.c index f31077d..7

MMC Quirks Clarification and Shared Data Pins SDHCI Host Controller Driver

2011-04-18 Thread Barry Song
Barry Song <21cn...@gmail.com> on behalf of Shi bin > > Hi, list, I’m new to here for investigating sd/mmc driver in our Cortex-A9 Single core platform board. Our sd/mmc host controller is fully compatible with standard SD specification 2.0 but one specific feature: slot 0 and slo