Re: [PATCH] mmc: sdhci: host: fix odd_ptr_err.cocci warnings

2015-01-21 Thread Vincent Yang
gt; >> Semantic patch information: >> There can be false positives in the patch case, where it is the call >> IS_ERR that is wrong. >> >> Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci > > Cool script. :-) > >> >> CC: Vincent Yang >>

Re: [PATCH v5 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-20 Thread Vincent Yang
2015-01-20 16:43 GMT+08:00 Ulf Hansson : > On 20 January 2015 at 09:05, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Vincent Yang >> Signed-off-by: Andy Green >> Signe

[PATCH v5 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-20 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang Signed-off-by: Andy Green Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 30 +++ drivers/mmc/host/Kconfig | 11

[PATCH v5 3/4] mmc: sdhci: add a quirk for single block transactions

2015-01-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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH v5 2/4] mmc: sdhci: add a quirk for tuning work around

2015-01-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 --- drivers/mmc/host/sdhci.c

[PATCH v5 1/4] mmc: sdhci: add a voltage switch callback function

2015-01-20 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5

[PATCH v5 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2015-01-20 Thread Vincent Yang
quot;fujitsu,mb86s70-sdhci-3.0". Thanks. Vincent Yang (4): mmc: sdhci: add a voltage switch callback function mmc: sdhci: add a quirk for tuning work around mmc: sdhci: add a quirk for single block transactions mmc: sdhci: host: add new f_sdh30 .../devicetree/bindings/mmc/sdhci-fuji

Re: [PATCH v4 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-19 Thread Vincent Yang
2015-01-19 20:34 GMT+08:00 Ulf Hansson : > On 19 January 2015 at 11:48, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Vincent Yang >> Signed-off-by: Andy Green

[PATCH v4 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-19 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang Signed-off-by: Andy Green Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 30 +++ drivers/mmc/host/Kconfig | 8

[PATCH v4 3/4] mmc: sdhci: add a quirk for single block transactions

2015-01-19 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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH v4 2/4] mmc: sdhci: add a quirk for tuning work around

2015-01-19 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 --- drivers/mmc/host/sdhci.c

[PATCH v4 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2015-01-19 Thread Vincent Yang
anges since v1: * Thanks to Uffe, removed ARCH_MB86S7X dependency and separated mmc patches to this patchset. * Node name changed from "fujitsu,mb86s70-sdh30" to "fujitsu,mb86s70-sdhci-3.0". Thanks. Vincent Yang (4): mmc: sdhci: add a voltage switch callback function mmc: sdhc

[PATCH v4 1/4] mmc: sdhci: add a voltage switch callback function

2015-01-19 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5

Re: [PATCH v3 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-16 Thread Vincent Yang
2015-01-16 16:36 GMT+08:00 Ulf Hansson : > [...] > + pm_runtime_set_active(&pdev->dev); + pm_runtime_enable(&pdev->dev); + ret = pm_runtime_get_sync(&pdev->dev); + if (ret < 0) + dev_err(dev, "Failed to pm_runtime_get_sync: %d\n", ret);

Re: [PATCH v3 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-15 Thread Vincent Yang
2015-01-13 20:19 GMT+08:00 Ulf Hansson : > On 9 January 2015 at 12:41, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Andy Green >> Signed-off-by: Vincent Yang

[PATCH v3 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-09 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Andy Green Signed-off-by: Vincent Yang Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 30 ++ drivers/mmc/host/Kconfig | 8

[PATCH v3 3/4] mmc: sdhci: add a quirk for single block transactions

2015-01-09 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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH v3 2/4] mmc: sdhci: add a quirk for tuning work around

2015-01-09 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 --- drivers/mmc/host/sdhci.c

[PATCH v3 1/4] mmc: sdhci: add a voltage switch callback function

2015-01-09 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5

[PATCH v3 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2015-01-09 Thread Vincent Yang
su,mb86s70-sdhci-3.0". Thanks. Vincent Yang (4): mmc: sdhci: add a voltage switch callback function mmc: sdhci: add a quirk for tuning work around mmc: sdhci: add a quirk for single block transactions mmc: sdhci: host: add new f_sdh30 .../devicetree/bindings/mmc/sdhci-fujitsu.txt |

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

2015-01-05 Thread Vincent Yang
2014-12-30 21:53 GMT+08:00 Ulf Hansson : > On 15 December 2014 at 08:30, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Andy Green >> Signed-off-by: Vincent Yang

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

2014-12-14 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Andy Green Signed-off-by: Vincent Yang Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 35 +++ drivers/mmc/host/Kconfig | 8

[PATCH v2 3/4] mmc: sdhci: add a quirk for single block transactions

2014-12-14 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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH v2 2/4] mmc: sdhci: add a quirk for tuning work around

2014-12-14 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 --- drivers/mmc/host/sdhci.c

[PATCH v2 1/4] mmc: sdhci: add a voltage switch callback function

2014-12-14 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5

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

2014-12-14 Thread Vincent Yang
ts or better align them with upstream. Changes since v1: * Thanks to Uffe, removed ARCH_MB86S7X dependency and separated mmc patches to this patchset. * Node name changed from "fujitsu,mb86s70-sdh30" to "fujitsu,mb86s70-sdhci-3.0". Thanks. Vincent Yang (4): mmc: sdhci: add

Re: [PATCH 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2014-11-25 Thread Vincent Yang
2014-11-25 21:18 GMT+08:00 Jassi Brar : > On 25 November 2014 at 18:28, Ulf Hansson wrote: >> On 24 November 2014 at 13:29, Jassi Brar wrote: >>> On 24 November 2014 at 17:24, Ulf Hansson wrote: >>>> On 24 November 2014 at 11:45, Vincent Yang >>>> w

Re: [PATCH 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2014-11-24 Thread Vincent Yang
2014-11-24 17:54 GMT+08:00 Ulf Hansson : > On 21 November 2014 at 01:51, Vincent Yang > wrote: >> Hello, >> >> Fujitsu have an sdhci IP which is implemented in a SoC we're >> adding to mainline, the most recent series for that was sent >> here: >>

Re: [PATCH 6/9] mmc: sdhci: host: add new f_sdh30

2014-11-20 Thread Vincent Yang
2014-11-21 2:18 GMT+08:00 Rob Herring : > On Thu, Nov 20, 2014 at 10:59 AM, Vincent Yang > wrote: >> 2014-11-20 23:22 GMT+08:00 Rob Herring : >>> On Thu, Nov 20, 2014 at 6:38 AM, Vincent Yang >>> wrote: >>>> This patch adds new host controller driver

[PATCH 4/4] mmc: core: hold SD Clock before CMD11 during Signal

2014-11-20 Thread Vincent Yang
platforms and works correctly. Signed-off-by: Vincent Yang --- drivers/mmc/core/core.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index f26a5f1..8b9e2cfd 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core

[PATCH 3/4] mmc: sdhci: add a quirk for single block transactions

2014-11-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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH 2/4] mmc: sdhci: add a quirk for tuning work around

2014-11-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 --- drivers/mmc/host/sdhci.c

[PATCH 1/4] mmc: sdhci: add a voltage switch callback function

2014-11-20 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5

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

2014-11-20 Thread Vincent Yang
8-rc5 integration tree. We welcome any comment and advice about how to make any improvements or better align them with upstream. Thanks. Vincent Yang (4): mmc: sdhci: add a voltage switch callback function mmc: sdhci: add a quirk for tuning work around mmc: sdhci: add a quirk for single

Re: [PATCH 6/9] mmc: sdhci: host: add new f_sdh30

2014-11-20 Thread Vincent Yang
2014-11-20 23:22 GMT+08:00 Rob Herring : > On Thu, Nov 20, 2014 at 6:38 AM, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Andy Green >> Signed-off-by: Vincent Yang

[PATCH 6/9] mmc: sdhci: host: add new f_sdh30

2014-11-20 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Andy Green Signed-off-by: Vincent Yang Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 35 +++ drivers/mmc/host/Kconfig | 9

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

2014-07-12 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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[PATCH 4/4] mmc: core: hold SD Clock before CMD11 during Signal

2014-07-12 Thread Vincent Yang
platforms and works correctly. Signed-off-by: Vincent Yang --- 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

[PATCH 2/4] mmc: sdhci: add quirk for tuning work around

2014-07-12 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 --- drivers/mmc/host/sdhci.c

[PATCH 1/4] mmc: sdhci: add quirk for voltage switch callback

2014-07-12 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 --- drivers/mmc/host/sdhci.c | 5 + drivers/mmc/host/sdhci.h | 1 + include

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

2014-07-12 Thread Vincent Yang
welcome any comment and advice about how to make any improvements or better align them with upstream. Thanks a lot! Best regards, Vincent Yang Vincent Yang (4): mmc: sdhci: add quirk for voltage switch callback mmc: sdhci: add quirk for tuning work around mmc: sdhci: add quirk for single block

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 : > On Fri, Jun 27, 2014 at 04:32:21AM +0100, Vincent Yang wrote: >> 2014-06-26 19:03 GMT+08:00 Mark Rutland : >> > On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: >> >> This patch adds new host controller

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 : > > > On 27 juni 2014 04:23:42 CEST, Vincent Yang > wrote: >>2014-06-26 17:42 GMT+08:00 Ulf Hansson : >>> >>> >>> On 26 juni 2014 08:23:32 CEST, Vincent Yang >> wrote: >>>>This patch adds manu

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 : > 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 >> --- >> .../devicetree/bi

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 : > > > On 26 juni 2014 08:23:32 CEST, Vincent Yang > 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 3.10. It

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

2014-06-25 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 --- drivers/mmc/host/sdhci.c

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

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

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

2014-06-25 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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

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

2014-06-25 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 --- drivers/mmc/host/sdhci.c | 5 + drivers/mmc/host/sdhci.h | 1 + include

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

2014-06-25 Thread Vincent Yang
his 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 --- drivers/mmc/core/core.c |

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

2014-06-25 Thread Vincent Yang
. Signed-off-by: Vincent Yang --- 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 @@ -1428,6 +1428,8 @@ int

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

2014-06-25 Thread Vincent Yang
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 q

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

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 : > On Friday 20 June 2014 17:35:26 Vincent Yang wrote: >> +Required properties: >> +- compatible: "fujitsu,f_sdh30" >

[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 --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 25 ++ drivers/mmc/host/Kconfig | 7 + drivers/mmc/host/Makefile | 1

[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 --- drivers/mmc/host/sdhci.c | 5 + drivers/mmc/host/sdhci.h | 1 + include

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

2014-06-20 Thread Vincent Yang
his 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 --- drivers/mmc/core/core.c |

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

2014-06-20 Thread Vincent Yang
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 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 --- 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 @@ -1428,6 +1428,8 @@ int

[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 --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7

[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 --- drivers/mmc/host/sdhci.c

[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 --- drivers/mmc/host/sdhci.c | 3 +++ include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 5 insertions(+) diff

[PATCH] mmc: core: Prevent unexpected SD Clock gating during Signal Voltage Switch Procedure

2014-01-28 Thread Vincent Yang
When switching the signal voltage from 3.3V to 1.8V, there should be only one SD Clock gating and un-gating operation. Between them the SD host controller should switch signal level to 1.8V. However, sometimes there is an additional gating and un-gating operation immediately after CMD11. This opera