[V2 PATCH 5/5] mmc: sdhci: add SW CMDQ support for SDHCI host

2015-04-03 Thread Chuanxiao Dong
Add the CMDQ support to SDHCI host interface Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 162 +- drivers/mmc/host/sdhci.h |2 + 2 files changed, 148 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers

[V2 PATCH 3/5] mmc: queue: change mqrq_cur and mqrq_pre to mq qdepth

2015-04-03 Thread Chuanxiao Dong
Use qdepth for mmc request fetching. Currently the request fetching mechanism indicate the qdepth is only 2. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 43 ++ drivers/mmc/card/queue.c | 209 +++--- drivers/mmc/card/queue.h

[V2 PATCH 4/5] mmc: core: add support for CMDQ feature in MMC Core

2015-04-03 Thread Chuanxiao Dong
random read performance. With ondemand CPU governor used in GMIN, it can improve the read performance a lot. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 501 -- drivers/mmc/card/queue.c | 23 ++- drivers/mmc/card/queue.h |3

[V2 PATCH 0/5] mmc: Soft Command queue implementation for eMMC5.1 device

2015-04-03 Thread Chuanxiao Dong
-+D Without CMDQWith CMDQ Random read 5074.91 7916.06 Random write1354.69 1444.52 Changes in V2: 1. not to send CMD13 during CMD46/47 is executing. 2. added a timer in case the data never complete for CMD46/47 Chuanxiao Dong (5): mmc: replace sbc to

[V2 PATCH 2/5] mmc: host: add runtime PM for host class dev

2015-04-03 Thread Chuanxiao Dong
pm together. We implement runtime pm to mmc host class device, so that when the card device doesn't want to be ignored by the low level host runtime pm, card device driver can talk to class device, so class device can talk to his parent. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/h

[V2 PATCH 1/5] mmc: replace sbc to precmd and add postcmd

2015-04-03 Thread Chuanxiao Dong
right now we use sbc to present CMD23. If we want sbc to present other cmds, then it is not suitable. So change the name to precmd which means a cmd that needs to be sent before a cmd. So it can sent any command without misunderstanding Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c

[PATCH 5/5] mmc: sdhci: add SW CMDQ support for CHT SDHCI host

2015-03-17 Thread Chuanxiao Dong
Add the CMDQ support to SDHCI host interface and CHT SDHCI host interface Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 121 -- drivers/mmc/host/sdhci.h |1 + 2 files changed, 108 insertions(+), 14 deletions(-) diff --git a

[PATCH 4/5] mmc: core: add support for CMDQ feature in MMC Core stack

2015-03-17 Thread Chuanxiao Dong
random read performance. With ondemand CPU governor used in GMIN, it can improve the read performance a lot. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 478 -- drivers/mmc/card/queue.c | 23 ++- drivers/mmc/card/queue.h |3

[PATCH 3/5] mmc: queue: change mqrq_cur and mqrq_pre to mq qdepth

2015-03-17 Thread Chuanxiao Dong
Use qdepth for mmc request fetching. Currently the request fetching mechanism indicate the qdepth is only 2. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 43 ++ drivers/mmc/card/queue.c | 198 ++ drivers/mmc/card/queue.h

[PATCH 1/5] mmc: replace sbc to precmd and add postcmd

2015-03-17 Thread Chuanxiao Dong
right now we use sbc to present CMD23. If we want sbc to present other cmds, then it is not suitable. So change the name to precmd which means a cmd that needs to be sent before a cmd. So it can sent any command without misunderstanding Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c

[PATCH 2/5] mmc: host: add runtime PM for host class dev

2015-03-17 Thread Chuanxiao Dong
pm together. We implement runtime pm to mmc host class device, so that when the card device doesn't want to be ignored by the low level host runtime pm, card device driver can talk to class device, so class device can talk to his parent. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/h

[PATCH 0/5] mmc: Soft Command queue implementation for eMMC5.1 device

2015-03-17 Thread Chuanxiao Dong
tches. Please have a review. Chuanxiao Dong (5): mmc: replace sbc to precmd and add postcmd mmc: host: add runtime PM for host class dev mmc: queue: change mqrq_cur and mqrq_pre to mq qdepth mmc: core: add support for CMDQ feature in MMC Core stack mmc: sdhci: add SW CMDQ support for SDHCI

[RFC PATCH 5/5] mmc: sdhci: add SW CMDQ support for CHT SDHCI host

2014-12-19 Thread Chuanxiao Dong
Add the CMDQ support to SDHCI host interface and CHT SDHCI host interface Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 121 +++-- include/linux/mmc/sdhci.h |1 + 2 files changed, 108 insertions(+), 14 deletions(-) diff --git a

[RFC PATCH 4/5] mmc: core: add support for CMDQ feature in MMC Core stack

2014-12-19 Thread Chuanxiao Dong
the random read performance. With ondemand CPU governor used in GMIN, it can improve the read performance a lot. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 476 -- drivers/mmc/card/queue.c | 23 ++- drivers/mmc/card/queue.h |3

[RFC PATCH 3/5] mmc: queue: change mqrq_cur and mqrq_pre to mq qdepth

2014-12-19 Thread Chuanxiao Dong
Use qdepth for mmc request fetching. Currently the request fetching mechanism indicate the qdepth is only 2. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 45 +++ drivers/mmc/card/queue.c | 198 +- drivers/mmc/card/queue.h

[RFC PATCH 1/5] mmc: replace sbc to precmd and add postcmd

2014-12-19 Thread Chuanxiao Dong
right now we use sbc to present CMD23. If we want sbc to present other cmds, then it is not suitable. So change the name to precmd which means a cmd that needs to be sent before a cmd. So it can sent any command without misunderstanding Signed-off-by: Chuanxiao Dong --- drivers/mmc/card

[RFC PATCH 2/5] mmc: host: add runtime PM for host class dev

2014-12-19 Thread Chuanxiao Dong
pm together. We implement runtime pm to mmc host class device, so that when the card device doesn't want to be ignored by the low level host runtime pm, card device driver can talk to class device, so class device can talk to his parent. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/h

[RFC PATCH 0/5]mmc: Soft Command queue implementation for eMMC5.1 device

2014-12-19 Thread Chuanxiao Dong
om read SW CMDQ:5544.6 Normal Read:3993.05 So I want to send this serial patches as RFC patch for reviewing Chuanxiao Dong (5): mmc: replace sbc to precmd and add postcmd mmc: host: add runtime PM for host class dev mmc: queue: change mqrq_cur and mqrq_pre to mq qdepth mmc: co

[PATCH V2] mmc: sdhci: check 1.2v IO capability for SDHC host

2014-08-18 Thread Chuanxiao Dong
HS200. Signed-off-by: Chuanxiao Dong --- Changelog V2: rebase this patch, and use IS_ERR to check vqmmc. drivers/mmc/host/sdhci.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 4cc2ff9..a23738c 100644 --- a/dr

[PATCH v3] mmc: core: try 1.8v signling in ddr mode if host and device

2014-08-14 Thread Chuanxiao Dong
both support 1.2v IO) use 1.2v IO; else if (host and device can both support 1.8v IO) use 1.8v IO; so if host and device can only support 3.3v IO, this is the last choice. Signed-off-by: Chuanxiao Dong Signed-off-by: Yunpeng Gao --- Changelog V2: - For (e)MMC device switching

[PATCH] mmc: sdhci: check 1.2v IO capability for SDHC host

2014-08-14 Thread Chuanxiao Dong
HS200. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index c026ec8..6b701e1 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2

[PATCH V2] mmc: core: try 1.8v signaling in ddr mode if host and device

2014-08-14 Thread Chuanxiao Dong
both support 1.2v IO) use 1.2v IO; else if (host and device can both support 1.8v IO) use 1.8v IO; so if host and device can only support 3.3v IO, this is the last choice. Signed-off-by: Chuanxiao Dong Signed-off-by: Yunpeng Gao --- Changelog V2: - For (e)MMC device switching to

[PATCH] mmc: core: use 1.8v signling in ddr mode for some special host

2014-07-31 Thread Chuanxiao Dong
1.8v. Signed-off-by: Chuanxiao Dong Signed-off-by: Yunpeng Gao --- drivers/mmc/core/mmc.c | 19 +++ include/linux/mmc/host.h |1 + 2 files changed, 20 insertions(+) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 793c6f7..13a5b24 100644 --- a/drivers

[PATCH] mmc: sdhci: fix the wrong type of curr

2014-07-31 Thread Chuanxiao Dong
curr should use signed type since it will contain the returned value which is possible to be a negative value. Using u32 will make the returned value to be true even there is a negative result. Change to use int instead of u32 Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c |2

[PATCH] mmc: sdhci-pci: remove PCI PM functions in suspend/resume callback

2014-07-15 Thread Chuanxiao Dong
e PCI subsystem, without the driver's participation. Thus remove these PCI functions. For the device which has wake up capability, use device_init_wakeup to init the wake up capability so that PCI core will help to enable the wakeup for it. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci-pc

[PATCH]mmc: core: check PM_SLEEP for mmc_bus_suspend/resume callbacks

2012-04-23 Thread Chuanxiao Dong
If PM_SLEEP is not enabled, mmc.c will give warnning since mmc_bus_suspend/ mmc_bus_resume functions are defined but not used. This patch can fix this warnning. Found-by: Andrew Lunn Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/bus.c |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH]mmc: core: not to --qty when calculate timeout for SECURE_ERASE

2012-04-12 Thread Chuanxiao Dong
hing and return an error. That is to say it is not necessary for SECURE_ERASE to --qty since it will never cross an erase group. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/core/core.c b/dri

[PATCH V4]mmc: remove MMC bus legacy suspend/resume method

2012-04-11 Thread Chuanxiao Dong
MMC bus is using legacy suspend/resume method, which is not compatible if runtime pm callbacks are used. In this scenario, MMC bus suspend/resume callbacks cannot be called when system entering S3. So change to use the new defined dev_pm_ops for system sleeping mode Signed-off-by: Chuanxiao Dong

[PATCH V3]mmc: remove MMC bus legacy suspend/resume method

2012-04-10 Thread Chuanxiao Dong
MMC bus is using legacy suspend/resume method, which is not compatible if runtime pm callbacks are used. In this scenario, MMC bus suspend/resume callbacks cannot be called when system entering S3. So change to use the new defined dev_pm_ops for system sleeping mode Signed-off-by: Chuanxiao Dong

[PATCH V2]mmc: remove MMC bus legacy suspend/resume method

2012-04-05 Thread Chuanxiao Dong
MMC bus is using legacy suspend/resume method, which is not compatible if runtime pm callbacks are used. In this scenario, MMC bus suspend/resume callbacks cannot be called when system entering S3. So change to use the new defined dev_pm_ops for system sleeping mode Signed-off-by: Chuanxiao Dong

[Patch v1]mmc:core: correct mmc_erase_timeout calculation

2012-03-28 Thread Chuanxiao Dong
: Erase timeout = 300ms * ERASE_TIMEOUT_MULT b. if ERASE_GROUP_DEF is false: Erase timeout = write block delay Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c | 42 +- 1 files changed, 29 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH]mmc: remove MMC bus legacy suspend/resume method

2011-07-10 Thread Chuanxiao Dong
be suspended/resumed. This patch will remove the legacy suspend/resume method and change to use the new method totally. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c |2 +- drivers/mmc/core/bus.c | 24 +++- include/linux/mmc/card.h |2 +- 3 files

[RFC]mmc: fix dead lock issue when system entering S3

2011-05-17 Thread Chuanxiao Dong
_suspend_host() is using the same way to claim host. Need to know your suggestions. Signed-off-by: He Bo Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index

[PATCH]mmc: set timeout for SDHCI host before sending busy cmds

2011-03-09 Thread Chuanxiao Dong
calculation for them. So preferred just using 0xE. Below the patch and comment: Set the timeout control register for SDHCI host when send some commands which need busy signal. Use the maximum timeout value 0xE will be safe. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c |9 - 1

[PATCH 1/1]mmc: set timeout for SDHCI host before sending busy cmd

2011-02-24 Thread Chuanxiao Dong
Set the timeout control register for SDHCI host when it needs to send some commands which need busy signal. Use the maximum timeout value will be safe. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git

[PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Chuanxiao Dong
Since if clock gating feature is enabled, the clock frequency may be zero when host clock is gated. In such scenario, mmc_set_mmc_erase_timeout() may have a division by zero bug. So this patch used mmc_host_clk_rate() to fix this. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c

[PATCH v4 3/3]mmc: fix division by zero when cal erase timeout

2011-02-11 Thread Chuanxiao Dong
Since if clock gating feature is enabled, the clock frequency may be zero when host clock is gated. In such scenario, mmc_set_mmc_erase_timeout() may have a division by zero bug. So this patch used mmc_host_clk_rate() to fix this. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c

[PATCH v4 2/3]mmc: enable TRIM/ERASE caps for SDHCI host

2011-02-11 Thread Chuanxiao Dong
-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 655617c..fe7cbd0 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -41,7 +41,6

[PATCH v4 1/3]mmc: set max_discard_sectors value for mmc queue

2011-02-11 Thread Chuanxiao Dong
ue for mmc queue to avoid erasing too many sectors at one time. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/queue.c |3 ++- drivers/mmc/core/core.c | 20 include/linux/mmc/core.h |1 + 3 files changed, 23 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/ca

[PATCH v4 0/3]mmc: enable TRIM/ERASE caps for SDHCI host

2011-02-11 Thread Chuanxiao Dong
Hi Chris, These patches enable TRIM/ERASE capability for SDHCI host controller. patch001: mmc: set max_discard_sectors value for mmc queue Rightnow max_discard_sectors value for mmc queue is UINT_MAX which means block layer can accept unlimited sectors to erase at one time. But this ma

[PATCH v4 1/1]mmc: implemented eMMC4.4 enhanced area feature

2011-01-21 Thread Chuanxiao Dong
ERASE_GRP_DEF should also be set. Documentation/ABI/testing/sysfs-devices-mmc described the two new attributes Signed-off-by: Chuanxiao Dong --- Documentation/ABI/testing/sysfs-devices-mmc | 21 +++ drivers/mmc/core/mmc.c | 80 +++ include

[PATCH v3 1/1]mmc: implemented eMMC4.4 enhanced area feature

2011-01-20 Thread Chuanxiao Dong
ERASE_GRP_DEF should also be set. Documentation/ABI/testing/sysfs-devices-mmc described the two new attributes Signed-off-by: Chuanxiao Dong --- Documentation/ABI/testing/sysfs-devices-mmc | 19 ++ drivers/mmc/core/mmc.c | 80 +++ include

[PATCH v1 3/3]mmc: not clock gate host when host is in runtime suspended state

2011-01-14 Thread Chuanxiao Dong
Since mmc clock gating is done in a work queue which is not synchronized with host runtime power management, when driver is doing clock gating, host may has already been power gated. So before driver clock gate host, check whether host is already suspended. Signed-off-by: Chuanxiao Dong

[PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-14 Thread Chuanxiao Dong
. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c | 15 +++ drivers/mmc/core/host.c | 21 + 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 6625c05..e296c5a 100644 --- a/drivers/mmc

[PATCH v1 2/3]mmc: implemented SDHCI host controller driver runtime pm

2011-01-14 Thread Chuanxiao Dong
add runtime power managment for sdhci pci host Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci-pci.c | 104 ++ drivers/mmc/host/sdhci.c | 39 drivers/mmc/host/sdhci.h |5 ++ 3 files changed, 148 insertions(+), 0

[PATCH v1 0/3]mmc: add runtime pm for mmc host stack

2011-01-14 Thread Chuanxiao Dong
Hi all, These are the version 1 patches for enabling runtime power management for mmc host driver stack. Right now runtime pm in mmc driver stack can only care about the power of SDIO card, not the host controller. Host controller also needs runtime pm to save power. MMC host ca

[PATCH v2 1/1]mmc: implemented eMMC4.4 enhanced area feature

2011-01-13 Thread Chuanxiao Dong
ERASE_GRP_DEF should also be set. Documentation/ABI/testing/sysfs-devices-mmc described the two new attributes Signed-off-by: Chuanxiao Dong --- Documentation/ABI/testing/sysfs-devices-mmc | 19 +++ drivers/mmc/core/mmc.c | 73 +++ include

[PATCH v6 3/3]mmc: implement hwreset_emmc and reinit_emmc callbacks

2010-12-27 Thread Chuanxiao Dong
hwreset_emmc: used for host to trigger a RST_n signal as eMMC4.4 spec recommanded to reset eMMC card. It is useful when eMMC card cannot response any command. reinit_emmc: reinitialize eMMC card after HW reset occurs. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/mmc.c | 83

[PATCH v6 2/3]mmc: do HW reset if eMMC card occurs timeout error

2010-12-27 Thread Chuanxiao Dong
. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 10 + drivers/mmc/core/core.c | 48 ++ drivers/mmc/core/core.h | 26 include/linux/mmc/core.h |1 + 4 files changed, 85 insertions(+), 0 deletions

[PATCH v6 1/3]mmc: enable HW reset capability if card supports

2010-12-27 Thread Chuanxiao Dong
: Chuanxiao Dong --- drivers/mmc/core/mmc.c | 24 include/linux/mmc/card.h |1 + include/linux/mmc/mmc.h |1 + 3 files changed, 26 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 1d8409f..ebb5748 100644 --- a

[PATCH v6 0/3]mmc: implement eMMC4.4 standard HW reset feature

2010-12-27 Thread Chuanxiao Dong
Hi all, This is the version 6 of hardware reset feature implementation. When eMMC card cannot response any command, signal RST_n can help to reset eMMC card. patch1: enable HW reset capability if card supports. patch2: do hardware reset if card occurs read/write/erase timeout pat

[PATCH v5 2/4]add two callbacks in core to implement HW reset

2010-12-09 Thread Chuanxiao Dong
timeout error. If occurs,use HW reset callbacks to do reset and reinitialize hardware_reset: trigger a RST_n signal for host to reset card. This callback was just defined in header file, not implemented in this patch. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c | 45

[PATCH v5 3/4]implemented hardware_reset callback in SDHCI host

2010-12-09 Thread Chuanxiao Dong
for this callback. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 23 +++ drivers/mmc/host/sdhci.h | 12 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 508ea5a..3a0c9b4

[PATCH v5 4/4]do HW reset after each read/write/erase if need

2010-12-09 Thread Chuanxiao Dong
Driver can do a HW reset for eMMC card if read/write/erase occurs timeout error. Signed-off-by: Chuanxiao Dong --- drivers/mmc/card/block.c | 10 ++ drivers/mmc/core/core.c |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers

[PATCH v5 1/4]enable HW reset cap for supported eMMC card

2010-12-09 Thread Chuanxiao Dong
: Chuanxiao Dong --- drivers/mmc/core/mmc.c | 29 + include/linux/mmc/card.h |1 + include/linux/mmc/mmc.h |1 + 3 files changed, 31 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 76bb621..1d138b3 100644 --- a

[PATCH v5 0/4]implement eMMC4.4 standard HW reset feature

2010-12-09 Thread Chuanxiao Dong
Hi, This is the version 5 of HW reset feature implementation. HW reset can reset eMMC card when card occurs a read/write/erase timeout error. It is useful when eMMC card cannot correspond any command after occurs a timeout error. change-log: patch1:

[PATCH v2 2/2]remove the erase calculation part from core.c

2010-12-08 Thread Chuanxiao Dong
remove the erase calculation part from core.c change the mmc_set_erase_timeout rountine to directly get the erase timeout value according to arg type and erase groups count. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/core.c | 120 ++ 1 files

[PATCH v1 1/2]move erase timeout calculation part to mmc.c and sd.c

2010-12-08 Thread Chuanxiao Dong
timeout value for erase/trim command before each time sending. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/mmc.c | 50 ++ drivers/mmc/core/sd.c| 19 + include/linux/mmc/card.h |4 +++ 3 files changed, 73 insertions

[PATCH v2 1/1]mmc: export enhanced area info to user

2010-12-08 Thread Chuanxiao Dong
whether need to do this. Signed-off-by: Chuanxiao Dong --- drivers/mmc/core/mmc.c | 92 ++ include/linux/mmc/card.h |3 + include/linux/mmc/mmc.h |3 + 3 files changed, 98 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/core/mmc.c b

[PATCH v2 4/4]use HPI to interrupt BKOPS

2010-12-03 Thread Chuanxiao Dong
>From d759e4606c498c63cbeae2ed00adf6c289acac6f Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Fri, 3 Dec 2010 19:34:15 +0800 Subject: [PATCH 4/4] mmc: Add HPI operation to interrupt BKOPS Before start a new user request, driver need to wait until the BKOPS finished, or use HPI to interr

[PATCH v2 3/4]enable HPI for supported eMMC card

2010-12-03 Thread Chuanxiao Dong
>From c9a450e2eb60b3b0151e9bafc2707d0a0c3aad76 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Fri, 3 Dec 2010 19:31:59 +0800 Subject: [PATCH 3/4] mmc: Enabled HPI feature HPI feature is a new feature in eMMC4.41 standard. It will be used to interrupt background operations and low prior

[PATCH v2 1/4]enable background operations for supported eMMC card

2010-12-03 Thread Chuanxiao Dong
>From 984adc755cf2f7966a89e510a50f085e314fe347 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Mon, 22 Nov 2010 16:31:12 +0800 Subject: [PATCH 1/4] mmc: Enabled background operations feature if eMMC card supports Background operations is a new feature defined in eMMC4.41 standard. Si

[PATCH v2 2/4]start to do BKOPS when user request queue is idle

2010-12-03 Thread Chuanxiao Dong
>From bd333e2303778051fbd9a0069db479e2f7dd0229 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Fri, 3 Dec 2010 19:05:19 +0800 Subject: [PATCH 2/4] mmc: Add background operations Driver will check if need to do a BKOPS after completed each user request. If BKOPS is need, then will start BK

[PATCH v2 0/4]enable Background operations and HPI feature for eMMC4.41 card

2010-12-03 Thread Chuanxiao Dong
Hi, This is the version 2 patch to enable background operations and HPI feature for eMMC4.41 card. Both of these two features are optional. Background operations can be started when user request queue is idle. So each time user start to handle a new request, driver

[PATCH v3 3/3]add this quirk to MFLD SDHCI host

2010-12-02 Thread Chuanxiao Dong
>From 8572052d6130daaddbae7c529b02a61692ff765f Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 2 Dec 2010 18:53:39 +0800 Subject: [PATCH 3/3] Add quirk to MFLD sdhci host controller MFLD platform host controller cannot erase too many sectors at one time, this quirk will let h

[PATCH v3 2/3]set timeout control reg for such SDHCI host

2010-12-02 Thread Chuanxiao Dong
>From b1cc696f0fbb0c48f024359977624a862ece93f4 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 2 Dec 2010 15:53:37 +0800 Subject: [PATCH 2/3] set timeout control reg for SDHCI host when sending erase cmd Since if erasing needs longer time than the timeout host can wait, host w

[PATVH v3 0/3]mmc: set a suitable max_discard_sectors value for HC

2010-12-02 Thread Chuanxiao Dong
Hi, This is the version 3 patch which set a suitable max_discard_sectors value for SDHCI host controller. In this patch, a new quirk is added for such controller. max_discard_sectors is a parameter of MMC driver request queue. This value can limit how many s

[PATCH v3 1/3]add a new quirk for SDHCI host

2010-12-02 Thread Chuanxiao Dong
>From 08e9f6c1fb908172c2ebb278e7b8da359db51bac Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 2 Dec 2010 15:19:54 +0800 Subject: [PATCH 1/3] add a quirk for sdhci host which cannot erase too many sectors each time The original max_discard_sectors value which used to limit the num

[PATCH v4 3/4]implement hardware_reset callback for sdhci host

2010-12-01 Thread Chuanxiao Dong
>From 0fadd39a6c09f9040a614bb251187b03f8fadd79 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Wed, 1 Dec 2010 19:41:25 +0800 Subject: [PATCH 3/4] implement hardware_reset callback for sdhci host hardware_reset callback will be used for host to trigger RST_n signal. So a new callb

[PATCH v4 4/4]do HW reset after each reading/writing/erasing

2010-12-01 Thread Chuanxiao Dong
>From 0d704091ba1797eaba34230ac920866e68d1b21d Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Wed, 1 Dec 2010 20:24:00 +0800 Subject: [PATCH 4/4] add HW reset after each read/write/erase Driver can do a HW reset for eMMC card if read/write/erase occures timeout error. Signed-off

[PATCH v4 2/4]add two new callback to help implement HW reset

2010-12-01 Thread Chuanxiao Dong
>From af18430a90d1a7a42495e6924f1d60b0cf69e20b Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Wed, 1 Dec 2010 20:14:22 +0800 Subject: [PATCH 2/4] add two new callback to use HW reset feature HW reset will reset eMMC card. So after reset, card should also be reinitialized. Add two

[PATCH v4 1/4]enable HW reset capbility

2010-12-01 Thread Chuanxiao Dong
>From d3be0b4fe8e8a40294830dfd8d0543d1e957fd29 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Wed, 1 Dec 2010 19:14:02 +0800 Subject: [PATCH 1/4] enable HW reset caps of MMC card if card supports HW reset capbility enable bit is byte 162 in card EXT_CSD register, only version4.4 card

[PATCH v4 0/4]implement eMMC4.4 standard HW reset feature

2010-12-01 Thread Chuanxiao Dong
Hi, These are the version 4 patches to implement eMMC4.4 HW reset feature. Host controller can use this feature by trigger RST_n signal. To enable this, byte 162 of EXT_CSD register should be set. HW reset is implemented in mmc core layer and sdhci host layer, and it

[PATCH v1 4/4]use HPI to interrupt background operations

2010-11-23 Thread Chuanxiao Dong
>From 8d2cf8e4b890a3ef0c7b63da57b8b184ab64725d Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Tue, 23 Nov 2010 12:01:58 +0800 Subject: [PATCH 4/4] mmc: Add HPI operation to interrupt BKOPS Before start a new user request, driver need to wait until the BKOPS finished, or use HPI to interr

[PATCH v1 3/4]enable HPI for supported card

2010-11-23 Thread Chuanxiao Dong
>From 78d7ca58fe6ea3b850ee3682a3552e16fc9faa15 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Tue, 23 Nov 2010 12:09:57 +0800 Subject: [PATCH 3/4] mmc: Enabled HPI feature HPI feature is a new feature in eMMC4.41 standard. It will be used to interrupt background operations and low prior

[PATCH v1 2/4]Do background operations if need

2010-11-23 Thread Chuanxiao Dong
>From d29d84198f5b444e5ab7dc56bab7290f662494da Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Tue, 23 Nov 2010 10:51:16 +0800 Subject: [PATCH 2/4] mmc: Add background operations Driver will check if need to do a BKOPS after completed each user request. If BKOPS is need, then will st

[PATCH v1 1/4]enable background operations for supported card

2010-11-23 Thread Chuanxiao Dong
>From 6a8fc91e198de80774c3c40246d0eee83366effc Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Mon, 22 Nov 2010 16:31:12 +0800 Subject: [PATCH 1/4] mmc: Enabled background operations feature if eMMC card supports Background operations is a new feature defined in eMMC4.41 standard. Si

[PATCH v1 0/4]mmc: enable eMMC4.41 new feature background operations and HPI

2010-11-23 Thread Chuanxiao Dong
Hi, These patches were enabled eMMC4.41 standard new feature: background operations and HPI. Since these two features are opertional, driver only enable for those eMMC card which supports them. HPI can interrupt both background operations and low priority f

[PATCH v2 3/3]mmc: Add the new quirk to MFLD SDHCI HC

2010-11-18 Thread Chuanxiao Dong
>From 26a27fbbb8c28f7b2e9079b7e600625af5718b8c Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 16:25:03 +0800 Subject: [PATCH 3/3] mmc: Add SDHCI_QUIRK_FORCE_ERASE_SINGLE to MFLD sdhci HC This will be going to let MFLD SDHCI host controller to erase single block each t

[PATCH v2 2/3]mmc: set erase control register for SDHCI HC

2010-11-18 Thread Chuanxiao Dong
>From 6ddad5c28d1f2d57081df051b79912dde922e322 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 16:20:39 +0800 Subject: [PATCH 2/3] mmc: set erase control reg value for sdhci HC For those sdhci host controller which cannot erase the unlimited sectors, set their timeout va

[PATCH v2 1/3]mmc:Add a new quirk for SDHCI HC to erase single erase block

2010-11-18 Thread Chuanxiao Dong
>From 3e4ee72e57a667f383f34a9e3276f2431b7bb53d Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 16:06:35 +0800 Subject: [PATCH 1/3] mmc: Added a new quirk for SDHCI HC to erase single erase block Some sdhci host controller like MFLD sdhci host controller cannot er

[PATCH v2 0/3]mmc: set a suitable max_discard_sectors value for HC

2010-11-18 Thread Chuanxiao Dong
Hello Chris, These are the version 2 patches of setting a suitable max_discard_sectors value for sdhci host controller. The max_discard_sectors determines how many sectors will be passed down to host controller for erasing. The default value is UNIT_MAX

[PATCH v3 1/2]mmc:implemented HW reset in mmc core layer

2010-11-17 Thread Chuanxiao Dong
>From 49962ed89078717d539805f999503b2d29a42b05 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 10:25:44 +0800 Subject: [PATCH 1/2] mmc: implemented eMMC4.4 hardware reset feature in mmc core layer When core layer detect a data timeout error, core driver need to first re

[PATCH v3 2/2]mmc:implemented HW reset callback in sdhci layer

2010-11-17 Thread Chuanxiao Dong
>From 24a7a1fe58d4cbc49dde56adb442c97cbbaf690b Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 10:34:42 +0800 Subject: [PATCH 2/2] mmc: implemented hardware reset callback for sdhci layer The hardware reset callback in sdhci layer cannot really do a reset for eMMC card.

[PATCH v3 0/2]MMC:implement eMMC4.4 standard HW reset feature

2010-11-17 Thread Chuanxiao Dong
Hello Chris, These are the version 3 of HW reset feature implementation. Since I didnot get any response from the version 2 and version1 patches, I am not sure whether I need to change. So just did a little change in form. The 2 patches implemented