Re: [RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-29 Thread Vincent Yang
2014-06-27 18:12 GMT+08:00 Mark Rutland mark.rutl...@arm.com: On Fri, Jun 27, 2014 at 04:32:21AM +0100, Vincent Yang wrote: 2014-06-26 19:03 GMT+08:00 Mark Rutland mark.rutl...@arm.com: On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: This patch adds new host controller driver

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-27 Thread Vincent Yang
2014-06-27 17:40 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 27 juni 2014 04:23:42 CEST, Vincent Yang vincent.yang.fuji...@gmail.com wrote: 2014-06-26 17:42 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 26 juni 2014 08:23:32 CEST, Vincent Yang vincent.yang.fuji...@gmail.com wrote

[RFC PATCH v2 0/6] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2014-06-26 Thread Vincent Yang
with upstream. Changes from v1: - Add sufficient description in DT binding ducument - Remove one patch mmc: sdhci: add quirk for broken 3.0V support and use voltage-ranges = in the device tree instead Thanks a lot! Best regards, Vincent Yang Vincent Yang (6): mmc: sdhci: add quirk for voltage

[RFC PATCH v2 1/6] mmc: sdhci: add quirk for voltage switch callback

2014-06-26 Thread Vincent Yang
This patch defines a quirk to do a callback when switching voltages so do controller-specific actions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 5 + drivers/mmc

[RFC PATCH v2 2/6] mmc: sdhci: add quirk for tuning work around

2014-06-26 Thread Vincent Yang
This patch defines a quirk for tuning work around for some sdhci host controller. It sets both SDHCI_CTRL_EXEC_TUNING and SDHCI_CTRL_TUNED_CLK for tuning. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com

[RFC PATCH v2 3/6] mmc: sdhci: add quirk for single block transactions

2014-06-26 Thread Vincent Yang
This patch defines a quirk to disable the block count for single block transactions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2

[RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-26 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 35 +++ drivers/mmc/host/Kconfig | 7 + drivers/mmc/host/Makefile

[RFC PATCH v2 5/6] mmc: core: hold SD Clock before CMD11 during Signal Voltage Switch Procedure

2014-06-26 Thread Vincent Yang
. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/core/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7dc0c85..764af63 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c

[RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-26 Thread Vincent Yang
, this patch just sets a flag MMC_BUSRESUME_MANUAL_RESUME when this error happened, and then host controller driver can understand it by this flag. Then host controller driver have to resume SD card manually and asynchronously. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/core

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-26 Thread Vincent Yang
2014-06-26 17:42 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 26 juni 2014 08:23:32 CEST, Vincent Yang vincent.yang.fuji...@gmail.com wrote: This patch adds manual resume for some embedded platforms with rootfs stored in SD card. It references CONFIG_MMC_BLOCK_DEFERRED_RESUME in kernel

Re: [RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-26 Thread Vincent Yang
2014-06-26 19:03 GMT+08:00 Mark Rutland mark.rutl...@arm.com: On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- .../devicetree/bindings

[RFC PATCH 0/7] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2014-06-20 Thread Vincent Yang
with upstream. Thanks a lot! Best regards, Vincent Yang Vincent Yang (7): mmc: sdhci: add quirk for broken 3.0V support mmc: sdhci: add quirk for voltage switch callback mmc: sdhci: add quirk for tuning work around mmc: sdhci: add quirk for single block transactions mmc: sdhci: host: add new

[RFC PATCH 1/7] mmc: sdhci: add quirk for broken 3.0V support

2014-06-20 Thread Vincent Yang
This patch defines a quirk for platforms unable to enable 3.0V support. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 3 +++ include/linux/mmc/sdhci.h | 2 ++ 2 files

[RFC PATCH 2/7] mmc: sdhci: add quirk for voltage switch callback

2014-06-20 Thread Vincent Yang
This patch defines a quirk to do a callback when switching voltages so do controller-specific actions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 5 + drivers/mmc

[RFC PATCH 3/7] mmc: sdhci: add quirk for tuning work around

2014-06-20 Thread Vincent Yang
This patch defines a quirk for tuning work around for some sdhci host controller. It sets both SDHCI_CTRL_EXEC_TUNING and SDHCI_CTRL_TUNED_CLK for tuning. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com

[RFC PATCH 4/7] mmc: sdhci: add quirk for single block transactions

2014-06-20 Thread Vincent Yang
This patch defines a quirk to disable the block count for single block transactions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2

[RFC PATCH 5/7] mmc: sdhci: host: add new f_sdh30

2014-06-20 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 25 ++ drivers/mmc/host/Kconfig | 7 + drivers/mmc/host/Makefile

[RFC PATCH 6/7] mmc: core: hold SD Clock before CMD11 during Signal Voltage Switch Procedure

2014-06-20 Thread Vincent Yang
. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/core/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7dc0c85..764af63 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c

[RFC PATCH 7/7] mmc: core: add manual resume capability

2014-06-20 Thread Vincent Yang
, this patch just sets a flag MMC_BUSRESUME_MANUAL_RESUME when this error happened, and then host controller driver can understand it by this flag. Then host controller driver have to resume SD card manually and asynchronously. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/core

Re: [RFC PATCH 5/7] mmc: sdhci: host: add new f_sdh30

2014-06-20 Thread Vincent Yang
Hi Arnd, Thanks a lot for your review. I will update it in next version. Best regards, Vincent Yang 2014-06-20 18:00 GMT+08:00 Arnd Bergmann a...@arndb.de: On Friday 20 June 2014 17:35:26 Vincent Yang wrote: +Required properties: +- compatible: fujitsu,f_sdh30 + +Optional properties

Re: [RFC PATCH 1/7] mmc: sdhci: add quirk for broken 3.0V support

2014-06-20 Thread Vincent Yang
Hi Anton, Thanks a lot for your review. I will update it in next version. Best regards, Vincent Yang 2014-06-21 4:26 GMT+08:00 Anton Vorontsov an...@enomsg.org: On Fri, Jun 20, 2014 at 05:35:22PM +0800, Vincent Yang wrote: This patch defines a quirk for platforms unable to enable 3.0V