[PATCH v2] mmc: tmio: enable odd number size access

2014-09-09 Thread Kuninori Morimoto
From: Kuninori Morimoto Current tmio is using sd_ctrl_read16/write16_rep() for data transfer. It works if transfer size was even number, but, last 1 byte will be ignored if transfer size was odd number. This patch adds new tmio_mmc_transfer_data() and solve this issue. Tested-by: Shinobu Uehara

Re: [GIT PULL 1/2] SOCFPGA updates for 3.18

2014-09-09 Thread Pavel Machek
On Tue 2014-09-09 17:02:34, Arnd Bergmann wrote: > On Tuesday 09 September 2014 16:17:56 Pavel Machek wrote: > > > Jaehoon Chung (1): > > > ARM: dts: socfpga: unuse the slot-node and deprecate the > > > supports-highspeed for dw-mmc > > > > > > > This patch is a bad idea. It removes suppor

Re: [PATCH] fix mmc hang during boot on socfpga

2014-09-09 Thread Pavel Machek
On Tue 2014-09-09 10:32:14, Olof Johansson wrote: > On Tue, Sep 9, 2014 at 5:19 AM, Pavel Machek wrote: > > > > Without this patch, boot hangs when trying to mount root filesystem on > > socfpga platform in about 50% cases. > > I think this should have a better description than this -- this is to

Re: [PATCH] fix mmc hang during boot on socfpga

2014-09-09 Thread Marek Vasut
On Tuesday, September 09, 2014 at 07:32:14 PM, Olof Johansson wrote: > On Tue, Sep 9, 2014 at 5:19 AM, Pavel Machek wrote: > > Without this patch, boot hangs when trying to mount root filesystem on > > socfpga platform in about 50% cases. > > I think this should have a better description than thi

Re: [PATCH] fix mmc hang during boot on socfpga

2014-09-09 Thread Olof Johansson
On Tue, Sep 9, 2014 at 5:19 AM, Pavel Machek wrote: > > Without this patch, boot hangs when trying to mount root filesystem on > socfpga platform in about 50% cases. I think this should have a better description than this -- this is too vague. Did it use to always work, is this a new failure? You

Re: [GIT PULL 1/2] SOCFPGA updates for 3.18

2014-09-09 Thread Arnd Bergmann
On Tuesday 09 September 2014 16:17:56 Pavel Machek wrote: > > Jaehoon Chung (1): > > ARM: dts: socfpga: unuse the slot-node and deprecate the > > supports-highspeed for dw-mmc > > > > This patch is a bad idea. It removes support for two mmc cards on a > single controller -- configuration h

[PATCH] mmc: core: make hw_reset power cycle SD-cards

2014-09-09 Thread Johan Rudholm
SD-cards cannot be reset, but they can be power cycled. Power cycling a buggy SD-card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/core/core.c b/

Re: [PATCH 3/4 v2] mmc: host: switch OF parser to use gpio descriptors

2014-09-09 Thread Ulf Hansson
On 9 September 2014 09:05, Linus Walleij wrote: > On Wed, Aug 27, 2014 at 1:00 PM, Linus Walleij > wrote: > >> This switches the central MMC OF parser to use gpio descriptors >> instead of grabbing GPIOs explicitly from the device tree. >> This strips out an unecessary use of the integer-based G

[PATCH] mmc: Add delay between CMD6 and CMD13 for Sandisk eMMC cards

2014-09-09 Thread Jean-Michel Hautbois
Tested on a i.MX6 board, with Sandisk SDIN5D1-2G. Without this patch, I/O errors occur. This eMMC seems to have a different Manufacturer ID as it reads 0x45 and not 0x2 as specified in datasheet. Signed-off-by: Jean-Michel Hautbois --- drivers/mmc/core/mmc_ops.c | 9 + 1 file changed, 9

Re: [PATCH 0/6 v4] mmc: remove MMC_CAP2_NO_MULTI_READ flags

2014-09-09 Thread Ulf Hansson
On 9 September 2014 08:43, Kuninori Morimoto wrote: > > Hi Ulf, Chris, and Simon > > These are v4 patches of removing MMC_CAP2_NO_MULTI_READ from mmc. > > Simon > 4) and 5) are for sh-arm patches. > Can you check these, and give it your Acked-by ? > > Kuninori Morimoto (6): > 1) mmc: use .mu

[PATCH] fix mmc hang during boot on socfpga

2014-09-09 Thread Pavel Machek
Without this patch, boot hangs when trying to mount root filesystem on socfpga platform in about 50% cases. Signed-off-by: Pavel Machek diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 8f216ed..739ba78 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.

Re: [PATCH] mmc: mmci_qcom_dml: fix is never less than zero warning.

2014-09-09 Thread Ulf Hansson
On 9 September 2014 10:34, Srinivas Kandagatla wrote: > This patch fixes a typo which resulted in 'is never less > than zero warning' reported by static checker. > > drivers/mmc/host/mmci_qcom_dml.c:131 dml_hw_init() > warn: unsigned 'producer_id' is never less than zero. > > drive

[PATCH v4 6/9] mmc: sdio: Convert to dev_pm_domain_attach|detach()

2014-09-09 Thread Ulf Hansson
Previously only the ACPI PM domain was supported by the sdio bus. Let's convert to the common attach/detach functions for PM domains, which currently means we are extending the support to include the generic PM domain as well. Cc: linux-mmc@vger.kernel.org Signed-off-by: Ulf Hansson Reviewed-by:

Re: [PATCH] mmc: dw_mmc: add support for ARM64

2014-09-09 Thread Alim Akhtar
Hi Ulf, On Tue, Sep 9, 2014 at 12:21 PM, Ulf Hansson wrote: > On 29 August 2014 12:24, Alim Akhtar wrote: >> There are upcoming ARM64 SoCs with dw_mmc host controller. >> >> Signed-off-by: Alim Akhtar >> --- >> drivers/mmc/host/Kconfig |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-

Re: SD-card endurance, wear and crappiness

2014-09-09 Thread Arnd Bergmann
On Tuesday 09 September 2014 10:54:51 Johan Rudholm wrote: > 2014-09-03 16:24 GMT+02:00 Johan Rudholm : > > Hi all, > > > > as you know, NAND flash can be programmed a limited number of times > > before it reaches end of life, the number of times varies with the > > NAND technology used, among othe

Re: SD-card endurance, wear and crappiness

2014-09-09 Thread Johan Rudholm
Hi Ulf, Arnd, do you guys have any thoughts on this? Kind regards, Johan 2014-09-03 16:24 GMT+02:00 Johan Rudholm : > Hi all, > > as you know, NAND flash can be programmed a limited number of times > before it reaches end of life, the number of times varies with the > NAND technology used, among

[PATCH] mmc: mmci_qcom_dml: fix is never less than zero warning.

2014-09-09 Thread Srinivas Kandagatla
This patch fixes a typo which resulted in 'is never less than zero warning' reported by static checker. drivers/mmc/host/mmci_qcom_dml.c:131 dml_hw_init() warn: unsigned 'producer_id' is never less than zero. drivers/mmc/host/mmci_qcom_dml.c 121 /* Initialize the dml hardware

Re: [PATCH v2] ARM: dts: Add mshc aliases for rk3288

2014-09-09 Thread Heiko Stübner
Am Mittwoch, 3. September 2014, 16:05:23 schrieb Doug Anderson: > It's convenient (and less confusing to people reading logs) if the > eMMC port on rk3288 is consistenly marked with mmc0 and the sdmmc port > on rk3288 is consistently marked with mmc1. Add the appropriate > aliases. Added to my v3

Re: [PATCH 5/6 v4] ARM: shmobile: remove MMC_CAP2_NO_MULTI_READ from lager

2014-09-09 Thread Simon Horman
On Mon, Sep 08, 2014 at 11:46:32PM -0700, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > sh_mobile_sdhi cares multiblock read bug. > remove MMC_CAP2_NO_MULTI_READ flag from board code > > Signed-off-by: Kuninori Morimoto Acked-by: Simon Horman > --- > v3 -> v4 > > - no change > >

Re: [PATCH 4/6 v4] ARM: shmobile: remove MMC_CAP2_NO_MULTI_READ from koelsch

2014-09-09 Thread Simon Horman
On Mon, Sep 08, 2014 at 11:46:10PM -0700, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > sh_mobile_sdhi cares multiblock read bug. > remove MMC_CAP2_NO_MULTI_READ flag from board code > > Signed-off-by: Kuninori Morimoto Acked-by: Simon Horman > --- > v3 -> v4 > > - no change > >

Re: [PATCH 2/6 v4] mmc: use .multi_io_quirk on tmio_mmc

2014-09-09 Thread Lee Jones
On Tue, 09 Sep 2014, Kuninori Morimoto wrote: > Hi Lee > > I forgot to add you on this patch. > Can you please check this patch from "mfd" point ? > > -- > From: Kuninori Morimoto > > Now, tmio_mmc can use .multi_io_quirk callback > instead of MMC_CAP2_NO_MULTI_READ

Re: [PATCH 3/4 v2] mmc: host: switch OF parser to use gpio descriptors

2014-09-09 Thread Linus Walleij
On Wed, Aug 27, 2014 at 1:00 PM, Linus Walleij wrote: > This switches the central MMC OF parser to use gpio descriptors > instead of grabbing GPIOs explicitly from the device tree. > This strips out an unecessary use of the integer-based GPIO > API that we want to get rid of, cuts down on code as

Re: [PATCH 2/6 v4] mmc: use .multi_io_quirk on tmio_mmc

2014-09-09 Thread Kuninori Morimoto
Hi Lee I forgot to add you on this patch. Can you please check this patch from "mfd" point ? -- From: Kuninori Morimoto Now, tmio_mmc can use .multi_io_quirk callback instead of MMC_CAP2_NO_MULTI_READ flags. let's use it. Signed-off-by: Kuninori Morimoto --- v3 ->

Re: [PATCH 2/6 v4] mmc: use .multi_io_quirk on tmio_mmc

2014-09-09 Thread Ulf Hansson
On 9 September 2014 08:45, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Now, tmio_mmc can use .multi_io_quirk callback > instead of MMC_CAP2_NO_MULTI_READ flags. > let's use it. > > Signed-off-by: Kuninori Morimoto > --- > v3 -> v4 > > - remove un-needed header > > drivers/mmc/host/t