Re: [PATCH (v2)] mmc: sdhci: fix caps2 for HS200

2013-06-23 Thread Giuseppe CAVALLARO
! Regards, Youssef. -Original Message- From: Giuseppe CAVALLARO [mailto:peppe.cavall...@st.com] Sent: jeudi 20 juin 2013 09:56 To: Shen, Jackey Cc: linux-mmc@vger.kernel.org; c...@laptop.org; Philip Rakity; Youssef TRIKI Subject: Re: [PATCH (v2)] mmc: sdhci: fix caps2 for HS200 Hello Shen On 6

Re: [PATCH (v2)] mmc: sdhci: fix caps2 for HS200

2013-06-20 Thread Giuseppe CAVALLARO
Hello Shen On 6/18/2013 4:32 AM, Shen, Jackey wrote: On Wed, Jun 12, 2013 at 2:16 PM, Giuseppe CAVALLARO peppe.cavall...@st.com wrote: Although the HC supports HS200 (eMMC) the caps2 are always zero; this means that no way to use the super speed mode (when init the card). If the HC support

[PATCH] mmc: sdhci: fix ctrl_2 on super-speed selection

2013-06-13 Thread Giuseppe CAVALLARO
This patch fixes the HC ctrl_2 programming where, in case of SDR104 and HS200, we have to write 100b in the the UHS Mode bits. We wrote 101b that is reserved from Arasan Specs. Reported-by: Youssef Triki youssef.tr...@st.com Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers

[PATCH (v2)] mmc: sdhci: fix caps2 for HS200

2013-06-12 Thread Giuseppe CAVALLARO
and HS200 are effectively the same thing the patch deletes the defines for HS200 and use SDR104. Reported-by: Youssef Triki youssef.tr...@st.com Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Cc: Philip Rakity prak...@nvidia.com --- drivers/mmc/host/sdhci.c | 14

[PATCH] mmc: sdhci: fix caps2 for HS200

2013-06-11 Thread Giuseppe CAVALLARO
-by: Youssef Triki youssef.tr...@st.com Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2ea429c..5626f5f 100644 --- a/drivers/mmc

Re: mmc-utils: Initial contribute of lsmmc

2012-06-21 Thread Giuseppe CAVALLARO
Hello Johan. On 6/21/2012 9:44 AM, Johan RUDHOLM wrote: Dear all, this is a release to the community of the source code of the utility lsmmc, created by Sebastian Rasmussen formerly at ST-Ericsson. lsmmc contains an extensive parser of the CID, CSD, SCR and EXT_CSD registers, as well as

[PATCH] mmc-utils: add the way to enable boot-partition

2012-04-19 Thread Giuseppe CAVALLARO
configuration bytes [PARTITION_CONFIG: 0x49] Reported-by: Youssef TRIKI youssef.tr...@st.com Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- mmc.c |5 mmc.h |6 + mmc_cmds.c | 62 mmc_cmds.h |1

Re: [PATCH] mmc-utils: add the way to enable boot-partition

2012-04-19 Thread Giuseppe CAVALLARO
Hi Chris On 4/19/2012 7:19 PM, Chris Ball wrote: Hi Giuseppe, On Thu, Apr 19 2012, Giuseppe CAVALLARO wrote: This adds a new option to enable the boot from eMMC by writing to the 179 ext_csd register. The example below shows as to enable the mmcblk0boot0 partition and also set/reset

[PATCH] mmc-utils: improve the parsing of the EXT_CSD registers

2012-02-20 Thread Giuseppe CAVALLARO
ago for the Kernel has been reviewed-by Sebastian Rasmussen, acked-by: Linus Walleij and reported by Youssef Tiki. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- mmc.h | 16 ++- mmc_cmds.c | 415 +--- 2 files changed

Re: ANNOUNCE: new mmc-utils repository

2012-02-20 Thread Giuseppe CAVALLARO
On 2/15/2012 2:43 PM, Giuseppe CAVALLARO wrote: On 2/15/2012 2:35 PM, Chris Ball wrote: Hi, On Wed, Feb 15 2012, Giuseppe CAVALLARO wrote: Hi Chris On 2/12/2012 6:03 PM, Chris Ball wrote: Hi, I've created a repository for userspace mmc tools now: git://git.kernel.org/pub/scm/linux

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-12-15 Thread Giuseppe CAVALLARO
Hi Chris On 12/13/2011 5:35 PM, Chris Ball wrote: Hi Peppe, On Tue, Dec 06 2011, Giuseppe CAVALLARO wrote: I'm all for this patch so it gets visible in debugfs atleast, since people seem to need to know these things, so take that as an Acked-by: Linus Walleij linus.wall...@linaro.org

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-12-05 Thread Giuseppe CAVALLARO
On 11/21/2011 11:08 AM, Linus Walleij wrote: On Mon, Nov 21, 2011 at 8:39 AM, Giuseppe CAVALLARO peppe.cavall...@st.com wrote: Just to summarize: the patch works in debugfs context so the parsing doesn't break the sys rules. I agree with Chris this has to be maintained for the next mmc

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-11-20 Thread Giuseppe CAVALLARO
Hello Linus, Chris, On 11/12/2011 2:12 AM, Linus Walleij wrote: On Tue, Oct 25, 2011 at 1:43 PM, Sebastian Rasmussenseb...@gmail.com wrote: [Giuseppe] This patch enhances the debug information reported for the mmc card by parsing the extended CSD registers obviously according to all the

Re: [PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (V4)

2011-11-04 Thread Giuseppe CAVALLARO
On 11/3/2011 8:41 AM, Adrian Hunter wrote: On 03/11/11 08:45, Giuseppe CAVALLARO wrote: This patch is to expose the actual SDCLK frequency in /sys/kernel/debug/mmcX/ios entry. For example, if the max clk for a normal speed card is 20MHz this is reported in /sys/kernel/debug/mmcX/ios

[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (V5)

2011-11-04 Thread Giuseppe CAVALLARO
: for example, in that case, on Arasan HC, it should be 48/4=12 (MHz). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c |2 ++ drivers/mmc/host/sdhci.c |9 + include/linux/mmc/host.h |2 ++ 3 files changed, 13 insertions(+), 0 deletions(-) diff

[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (V6)

2011-11-04 Thread Giuseppe CAVALLARO
: for example, in that case, on Arasan HC, it should be 48/4=12 (MHz). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c |2 ++ drivers/mmc/host/sdhci.c | 10 ++ include/linux/mmc/host.h |2 ++ 3 files changed, 14 insertions(+), 0 deletions

[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (V4)

2011-11-03 Thread Giuseppe CAVALLARO
: for example, in that case, on Arasan HC, it should be 48/4=12 (MHz). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c |2 ++ drivers/mmc/host/sdhci.c |9 + include/linux/mmc/host.h |2 ++ 3 files changed, 13 insertions(+), 0 deletions(-) diff

Re: [PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v3)

2011-11-03 Thread Giuseppe CAVALLARO
On 11/2/2011 11:38 AM, Adrian Hunter wrote: On 27/10/11 09:16, Giuseppe CAVALLARO wrote: This patch is to expose the actual SDCLK frequency in /sys/kernel/debug/mmcX/ios entry. For example, if the max clk for a normal speed card is 20MHz this is reported in /sys/kernel/debug/mmcX/ios

Re: [PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v3)

2011-11-03 Thread Giuseppe CAVALLARO
On 10/28/2011 12:02 AM, Sebastian Rasmussen wrote: Hi! +++ b/drivers/mmc/host/sdhci.c @@ -1107,9 +1113,13 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) if ((host-max_clk / div) = clock) break;

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-10-28 Thread Giuseppe CAVALLARO
Hello Sebastian, On 10/27/2011 4:19 PM, Sebastian Rasmussen wrote: Hi! Before the patch the output from /sys/kernel/debug/mmc0/mmc0:0001/ext_csd was a big number and I had many problems parsing it in real-time. [...] In any case, the patch wants to help to directly get the ext_csd in a

[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v3)

2011-10-27 Thread Giuseppe CAVALLARO
: for example, in that case, on Arasan HC, it should be 48/4=12 (MHz). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c |2 ++ drivers/mmc/host/sdhci.c | 10 ++ include/linux/mmc/host.h |2 ++ 3 files changed, 14 insertions(+), 0 deletions

[PATCH] mmc: debugfs: parse ext_csd via debug_fs (v2)

2011-10-27 Thread Giuseppe CAVALLARO
Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c | 252 ++-- 1 files changed, 218 insertions(+), 34 deletions(-) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index 0b9a4aa..fa26cf9 100644

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-10-27 Thread Giuseppe CAVALLARO
On 10/26/2011 1:27 PM, Giuseppe CAVALLARO wrote: On 10/25/2011 1:43 PM, Sebastian Rasmussen wrote: [snip] contains a numerical customer id which leads me to believe that it would require some kind of list of number-name to make it accessible to users, something akin to the lspci database. I

Re: [PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v2)

2011-10-26 Thread Giuseppe CAVALLARO
Hello Adrian On 10/25/2011 10:40 AM, Adrian Hunter wrote: On 21/10/11 11:16, Giuseppe CAVALLARO wrote: This patch is to expose the actual SDCLK frequency in /sys/kernel/debug/mmcX/ios entry. For example, if the max clk for a normal speed card is 20MHz this is reported in /sys/kernel/debug

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-10-26 Thread Giuseppe CAVALLARO
4.41) s_cmd_set: 0x01 hpi_features: 0x00 blops_support: 0x00 ini_timeout_ap: 0x0a pwr_cl_ddr_52_360 0x00 [snip] Reported-by: Youssef Triki youssef.tr...@st.com Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c | 266

[PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-10-24 Thread Giuseppe CAVALLARO
Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c | 266 ++-- 1 files changed, 232 insertions(+), 34 deletions(-) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index 0b9a4aa..3771624 100644

[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v2)

2011-10-21 Thread Giuseppe CAVALLARO
: for example, in that case, on Arasan HC, it should be 48/4=12 (MHz). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/debugfs.c |2 ++ drivers/mmc/host/sdhci.c |7 +++ include/linux/mmc/host.h |2 ++ 3 files changed, 11 insertions(+), 0 deletions(-) diff

Re: [PATCH] sdhci: expose the SDCLK frq in sys ios

2011-10-20 Thread Giuseppe CAVALLARO
Hello Adrian On 10/20/2011 8:22 AM, Adrian Hunter wrote: On 19/10/11 16:45, Giuseppe CAVALLARO wrote: This patch is to expose the SDCLK frequency in the ios /sys entry. For example, if the max clk for a normal speed card is 20MHz this will be reported in /sys/kernel/debug/mmc0/ios instead

Re: [PATCH] sdhci: expose the SDCLK frq in sys ios

2011-10-20 Thread Giuseppe CAVALLARO
On 10/20/2011 9:38 AM, Adrian Hunter wrote: On 20/10/11 09:31, Giuseppe CAVALLARO wrote: Hello Adrian On 10/20/2011 8:22 AM, Adrian Hunter wrote: On 19/10/11 16:45, Giuseppe CAVALLARO wrote: This patch is to expose the SDCLK frequency in the ios /sys entry. For example, if the max clk

[PATCH] sdhci: expose the SDCLK frq in sys ios

2011-10-19 Thread Giuseppe CAVALLARO
Control Register). Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 0e02cc1..6bdf64f 100644 --- a/drivers/mmc/host/sdhci.c +++ b

[PATCH] mmc: add a new quirk for NONREMOVABLE_CARD useful for sdhci-pltfm

2011-05-04 Thread Giuseppe CAVALLARO
can fail. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.c |3 +++ include/linux/mmc/sdhci.h |2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9e15f41..650ea97 100644

McEx/ASSD protocols

2011-02-10 Thread Giuseppe Cavallaro
Hello. I wonder if somebody could help me to understand if both the Advanced Security SD (ASSD) protocol http://www.sdcard.org/developers/tech/ASSD/ and the M-Commerce Extension Specification 1.10 are supported in Linux. Welcome advice and comments. Many thanks in advance. Kind Regards Pippo

[PATCH (mmc-next)] mmc: improve the SDHCI wake-up support [RFC: V2]

2010-11-15 Thread Giuseppe CAVALLARO
to select which events have to wake-up the system: o wake_on_card_int o wake_on_card_ins o wake_on_card_rem Ex: $ echo 1 /sys/module/sdhci/parameters/wakeup_card_ins A new quirk has been also added to allow hosts, based on sdhci d.d., to set the device as wake-up capable. Signed-off-by: Giuseppe

[RFC] improve the SDHCI wakeup support.

2010-11-10 Thread Giuseppe CAVALLARO
Hello. The following patches, currently built against an ST Kernel 2.6.32, show how to improve the wakeup support in the SDHCI device driver. Note: I'm going to rework them, for example, against the mmc-next after performing the review process and, obviously, if you think that they can be

[RFC] improve the SDHCI wakeup support.

2010-11-10 Thread Giuseppe CAVALLARO
Hello. The following patches, currently built against an ST Kernel 2.6.32, show how to improve the wakeup support in the SDHCI device driver. Note: I'm going to rework them, for example, against the mmc-next after performing the review process and, obviously, if you think that they can be

[PATCH (1/5)] mmc: sdhci-pltfm calls the sdhci_alloc_host with pdev-dev

2010-11-10 Thread Giuseppe CAVALLARO
-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Reviewed-by: Francesco Virlinzi francesco.virli...@st.com --- drivers/mmc/host/sdhci-pltfm.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 78a8f7a

[PATCH 2/5] mmc: do not clear the host-pm_flags when suspend

2010-11-10 Thread Giuseppe CAVALLARO
HC driver will be able to use the pm_flags to undestand if the system can be woken-up by the driver. So the mmc_suspend_host hasn't to reset this field in the host structure. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/core/core.c |1 - 1 files changed, 0

[PATCH 4/5] mmc: sdhci-pci invokes the sdhci_enable_irq_wakeups with SDHCI_WAKE_ON_INT

2010-11-10 Thread Giuseppe CAVALLARO
Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci-pci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 59f3de5..8634fb1 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b

[PATCH 5/5] mmc: sdhci-pltfm can wake up.

2010-11-10 Thread Giuseppe CAVALLARO
Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci-pltfm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 4e881a5..6ea32e1 100644 --- a/drivers/mmc/host/sdhci-pltfm.c

[PATCH 3/5] mmc_sdhci: improve the wake-up support

2010-11-10 Thread Giuseppe CAVALLARO
This patch reworks the wake-up support in the sdhci driver. It is now able to wake-up the system on: Card interrupts, Card insertion and Card removal events. This has been tested on ST STB where can make sense to wake-up the box as soon as a card is inserted. Signed-off-by: Giuseppe Cavallaro

[PATCH (mmc-next) 2/3] mmc: fix a warning when compile the sdhci d.d. (V2)

2010-09-28 Thread Giuseppe CAVALLARO
This patch fixes a warning when compile the sdhci: pwr may be used uninitialized in sdhci_set_power Tested with the following compiler versions: 4.2.4 and 4.4.4 Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.c |6 ++ 1 files changed, 2 insertions

[PATCH (mmc-next) 2/3] mmc: split the sdhci.h to help platforms that uses shdci-pltfm d.d.

2010-09-23 Thread Giuseppe CAVALLARO
: drivers/mmc/host/sdhci.h also includes the linux/mmc/sdhci.h and no modifications should be needed on other sdhci-XXX drivers. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.h | 271 ++--- include/linux/mmc/sdhci.h | 269

[PATCH (mmc-next) 3/3] mmc: fix a warning when compile the sdhci d.d.

2010-09-23 Thread Giuseppe CAVALLARO
This patch fixes a warning when compile the sdhci: pwr may be used uninitialized in sdhci_set_power Also removes some include files that live in sdhci.h header file. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci.c | 11 ++- 1 files changed, 2

[PATCH] mmc: add SDHCI driver for STM platforms (V2)

2010-09-20 Thread Giuseppe CAVALLARO
This patch adds the Arasan MMC/SD/SDIO driver for the STM ST40 platforms. It is based on the SDHCI driver. It has been tested on the STx7106/STx7108/STx5289 platforms. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/Kconfig | 12 +++ drivers/mmc/host/Makefile

[PATCH] mmc: add SDHCI driver for STM platforms.

2010-07-29 Thread Giuseppe CAVALLARO
This patch adds the Arasan MMC/SD/SDIO driver for the STM ST40 platforms. It is based on the SDHCI driver. It has been tested on the STx7106/STx7108/STx5289 platforms. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/Kconfig | 12 +++ drivers/mmc/host/Makefile