Re: [PATCH 1/4] mmc: sdhci: add a driver for Berlin SoCs

2014-04-18 Thread Jisheng Zhang
Hi, On Thu, 17 Apr 2014 06:33:59 -0700 Antoine Ténart antoine.ten...@free-electrons.com wrote: Sebastian, On Wed, Apr 16, 2014 at 04:26:06PM +0200, Sebastian Hesselbarth wrote: On 04/16/2014 02:40 PM, Antoine Ténart wrote: Add a Driver to support the SDHCI controller of the Marvell

Re: [PATCH 1/4] mmc: sdhci: add a driver for Berlin SoCs

2014-04-18 Thread Antoine Ténart
Hi all, On Wed, Apr 16, 2014 at 02:40:08PM +0200, Antoine Ténart wrote: Add a Driver to support the SDHCI controller of the Marvell Berlin SoCs. This controller supports 3 sockets. After talking a bit with Sebastian and Jisheng I decided to have a look on the pxav3 driver. I gave it a try, it

[PATCH 1/1] mmc: sdhci-pci-o2micro Add SeaBird SeaEagle SD3 support

2014-04-18 Thread Peter Guo
Add O2Micro/BayHubTech chip 8520 subversion B1 SD3.0 support. Add O2Micro/BayHubTech chip 8620 and 8621 SD3.0 support Enable Led function of 8520 chip. Signed-off-by: peter.guo peter@bayhubtech.com --- drivers/mmc/host/sdhci-pci-o2micro.c | 59 +- 1 file

Re: [PATCH 1/1] mmc: sdhci-pci-o2micro Add SeaBird SeaEagle SD3 support

2014-04-18 Thread Chris Ball
Hi Peter, On Fri, Apr 18 2014, Peter Guo wrote: @@ -215,6 +251,25 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) scratch = 0x7f; pci_write_config_byte(chip-pdev, O2_SD_LOCK_WP, scratch); + if (chip-pdev-device == PCI_DEVICE_ID_O2_FUJIN2) { +

[PATCH v6 0/6] update selection of bus speed mode for eMMC

2014-04-18 Thread Seungwon Jeon
This series contains the change for selection of bus speed mode. Previous implementation is complicated and some sequence is duplicated. And specially, HS400 mode eMMC5.0 is introduced this time. This patch-set has been tested in Exynos SoC. Note: This patch-set depends on [PATCH RESEND v3 1/7]

[PATCH v6 2/6] mmc: identify available device type to select

2014-04-18 Thread Seungwon Jeon
Device types which are supported by both host and device can be identified when EXT_CSD is read. There is no need to check host's capability anymore. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Jaehoon Chung jh80.ch...@samsung.com Acked-by: Jaehoon Chung jh80.ch...@samsung.com

[PATCH v6 3/6] mmc: step power class after final selection of bus mode

2014-04-18 Thread Seungwon Jeon
Power class is changed once only after selection of bus modes including speed and bus-width finishes finally. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Jaehoon Chung jh80.ch...@samsung.com Acked-by: Jaehoon Chung jh80.ch...@samsung.com Acked-by: Ulf Hansson

[PATCH v6 4/6] mmc: rework selection of bus speed mode

2014-04-18 Thread Seungwon Jeon
Current implementation for bus speed mode selection is too complicated. This patch is to simplify the codes and remove some duplicate parts. The following changes are including: * Adds functions for each mode selection(HS, HS-DDR, HS200 and etc) * Rearranged the mode selection sequence with

[PATCH v6 1/6] mmc: drop the speed mode of card's state

2014-04-18 Thread Seungwon Jeon
Timing mode identifier has same role and can take the place of speed mode. This change removes all related speed mode. Signed-off-by: Seungwon Jeon tgih@samsung.com Acked-by: Ulf Hansson ulf.hans...@linaro.org Tested-by: Jaehoon Chung jh80.ch...@samsung.com Acked-by: Jaehoon Chung

[PATCH v6 5/6] mmc: add support for HS400 mode of eMMC5.0

2014-04-18 Thread Seungwon Jeon
This patch adds HS400 mode support for eMMC5.0 device. HS400 mode is high speed DDR interface timing from HS200. Clock frequency is up to 200MHz and only 8-bit bus width is supported. In addition, tuning process of HS200 is required to synchronize the command response on the CMD line because CMD

[PATCH v6 6/6] mmc: core: add DT bindings for eMMC HS400 1.8/1.2V

2014-04-18 Thread Seungwon Jeon
Provide the option to configure these speed modes per host, for those host driver's that can't distinguish this in runtime. Specially, if host can support HS400, it means that host can also support HS200. Signed-off-by: Seungwon Jeon tgih@samsung.com ---

SDHCI DDR50 implies MMC DDR

2014-04-18 Thread Matthieu CASTET
Hi, shouldn't we add something like that do auto-detect MMC_CAP_1_8V_DDR on sdhci controller ? MatthieuFrom f821501dada7041521fe80a5fe92bdc8b15f055b Mon Sep 17 00:00:00 2001 From: Matthieu CASTET matthieu.cas...@parrot.com Date: Fri, 18 Apr 2014 15:49:05 +0200 Subject: [PATCH] sdhci : UHS DDR50

Re: [PATCH] mmc: rtsx: fix possible circular locking dependency

2014-04-18 Thread Peter Wu
Hi! On Wednesday 16 April 2014 09:38:44 micky_ch...@realsil.com.cn wrote: From: Micky Ching micky_ch...@realsil.com.cn To avoid dead lock, we need make sure host-lock is always acquire before pcr-lock. But in irq handler, we acquired pcr-lock in rtsx mfd driver, and sd_isr_done_transfer()

Re: [PATCH v9 resend 1/3] mmc: omap_hsmmc: Enable SDIO interrupt

2014-04-18 Thread Tony Lindgren
Hi, Sorry for the delay, just noticed this one. * Dmitry Lifshitz lifsh...@compulab.co.il [140324 02:34]: Hi, I've tested the branch omap_hsmmc_sdio_irq_devm_cleanup on custom OMAP5 based board. We have mwifiex connected to MMC3. I used two approaches: * Using dat1 line as GPIO with

Re: 3.1[34]: omap4: panda: hang on reboot?

2014-04-18 Thread Tony Lindgren
* Paolo Pisati p.pis...@gmail.com [140331 15:00]: On Thu, Mar 27, 2014 at 06:54:14PM +0100, Paolo Pisati wrote: I've been experiencing hangs on reboot on two different panda boards (es rev1 and vanilla rev a1) with v3.14-rc8 (but reproducible in 3.13 too): toolchanin: gcc version

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-18 Thread Mark Brown
On Tue, Apr 15, 2014 at 11:14:13PM +0800, Axel Lin wrote: commit 60e8c1e34d3a regulator: pbias: Convert to use regmap helper functions might also required for 3.15. The reason is this commit implements .list_voltage and the mmc core calls regulator_list_voltage() in

[PATCH] mmc: core: Try other signal levels during power up

2014-04-18 Thread Tim Kryger
The eMMC signalling voltage is determined by VCCQ which is provided to the card by the host. Signalling is not required to begin at 3.3v and, if the host and card both support a particular VCC/VCCQ combination, it can be used immediately. In contrast, SD Cards must begin with 3.3v signalling and

Re: [PATCH] mmc: sdhci: Set ocr_avail directly based on vmmc

2014-04-18 Thread Tim Kryger
On Wed, Apr 16, 2014 at 12:20 AM, Ulf Hansson ulf.hans...@linaro.org wrote: On 15 April 2014 19:09, Tim Kryger tim.kry...@linaro.org wrote: On Fri, Apr 11, 2014 at 1:15 AM, Ulf Hansson ulf.hans...@linaro.org wrote: A few times I have suggested to switch to use the mmc_regulator_get_supply()

Locking issues in mmc: rtsx: add support for pre_req and post_req (was: Re: [PATCH] mmc: rtsx: fix possible circular locking dependency)

2014-04-18 Thread Peter Wu
So, I reverted c42deffd5b53c9e583d83c7964854ede2f12410d (mmc: rtsx: add support for pre_req and post_req) on top of v3.15-rc1-49-g10ec34f and the hang issue went away. There is something that is possibly problematic. All three tasklets (cmd, data, finish) try to spinlock on host-lock.

[PATCH] mmc: avoid garbage when dt properties missing

2014-04-18 Thread James Cameron
When of_property_read_u32 does not find a property, it does not initialise the variable, yet we were using the uninitialised variable. Found and reproduced in sdhci-pxav3.c, on wider review found also in two other places in drivers/mmc/host/, did not review wider. Signed-off-by: James Cameron