Re: [RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
On Wed, Jul 1, 2015 at 5:57 PM, Jaehoon Chung wrote: > Hi, > > Is sdhost based on SDHCI controller? > Why don't use sdhci.c? Is there any reason? > > Best Regards, > Jaehoon Chung > Because of base64 code problem of his email server, I'm reporting his reply instead. >From Billows Wu ---

Re: [PATCH] mmc: sdhci: msm: Boost controller core clock

2015-07-01 Thread Stephen Boyd
On 06/26/2015 04:16 AM, Ivan T. Ivanov wrote: > Ensure SDCC is working with maximum clock otherwise card > detection could be extremely slow, up to 7 seconds. > > Signed-off-by: Ivan T. Ivanov > --- With the typo fixed. Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of

Re: mmc driver read/write detect problem with Baytrail tablet

2015-07-01 Thread Paul Mansfield
On 1 July 2015 at 14:24, Alan Cooper wrote: > There is a WRITE PROTECT signal from the card socket to the host > controller that may not be connected. You can try booting the kernel > with "sdhci.debug_quirks=0x1". This tells the driver that the WP > signal is inverted. thanks. won't that cau

Re: mmc driver read/write detect problem with Baytrail tablet

2015-07-01 Thread Paul Mansfield
On 1 July 2015 at 14:24, Alan Cooper wrote: > There is a WRITE PROTECT signal from the card socket to the host > controller that may not be connected. You can try booting the kernel > with "sdhci.debug_quirks=0x1". This tells the driver that the WP > signal is inverted. thanks. won't that cau

Re: mmc driver read/write detect problem with Baytrail tablet

2015-07-01 Thread Paul Mansfield
On 30 June 2015 at 17:06, Venkatraman S wrote: >> Is there some way to override the mmc driver read-only/write-protect >> function to force the driver to allow writing? >> > Are the reads working properly ? > Can you enable MMC_DEBUG in the kernel config to collect more information ? reading work

Re: mmc driver read/write detect problem with Baytrail tablet

2015-07-01 Thread Paul Mansfield
On 30 June 2015 at 17:06, Venkatraman S wrote: >> Is there some way to override the mmc driver read-only/write-protect >> function to force the driver to allow writing? >> > Are the reads working properly ? > Can you enable MMC_DEBUG in the kernel config to collect more information ? reading work

Re: [Regression: mmc: sdhci-esdhc-imx: add runtime pm support]

2015-07-01 Thread Paul Mansfield
On 1 July 2015 at 14:13, Bastien Nocera wrote: > Hey Dong, > >> Some SDIO cards may not be able to work well without clock. > > I've been needing to use this particular patch on a BayTrail tablet with a > Realtek 8723BS SDIO Wi-Fi chip to get Wi-Fi to be stable. This is using I've got a Toshiba

Re: [Regression: mmc: sdhci-esdhc-imx: add runtime pm support]

2015-07-01 Thread Paul Mansfield
On 1 July 2015 at 14:13, Bastien Nocera wrote: > Hey Dong, > >> Some SDIO cards may not be able to work well without clock. > > I've been needing to use this particular patch on a BayTrail tablet with a > Realtek 8723BS SDIO Wi-Fi chip to get Wi-Fi to be stable. This is using I've got a Toshiba

Re: [RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Rob Herring
On Wed, Jul 1, 2015 at 2:23 AM, Chunyan Zhang wrote: > From: Billows Wu > > The Spreadtrum MMC host driver is used to support EMMC, SD, and > SDIO types of memory cards. > > Signed-off-by: Billows Wu > Reviewed-by: Orson Zhai > Signed-off-by: Chunyan Zhang > --- > drivers/mmc/host/sprd_sdhost

Re: [Regression: mmc: sdhci-esdhc-imx: add runtime pm support]

2015-07-01 Thread Bastien Nocera
Hey Dong, > Some SDIO cards may not be able to work well without clock. I've been needing to use this particular patch on a BayTrail tablet with a Realtek 8723BS SDIO Wi-Fi chip to get Wi-Fi to be stable. This is using the most recent upstream Linus kernels as well. Is there any reason this parti

Re: [PATCH] mmc: core: Set load on vmmc and vqmmc

2015-07-01 Thread Mark Brown
On Tue, Jun 30, 2015 at 09:38:45PM -0700, Bjorn Andersson wrote: > +- vmmc-load: requested load for the vmmc regulator, in mA > +- vqmmc-load: requested load for the vqmmc regulator, in mA Isn't this something that should have default values from the spec? The binding also ought to say what a "r

Re: [PATCH] mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used

2015-07-01 Thread Vineet Gupta
On Wednesday 01 July 2015 03:32 PM, Alexey Brodkin wrote: > Hi Jaehoon, Seungwon, Ulf, > > On Thu, 2015-06-25 at 11:25 +0300, Alexey Brodkin wrote: >> > As per DW MobileStorage databook "each descriptor can transfer up to >> > 4kB >> > of data in chained mode", moreover buffer size that is put in

Re: [PATCH] mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used

2015-07-01 Thread Jaehoon Chung
Hi, Alexey. Sorry for reviewing late. i missed this patch. I will check your patch and reply at mailing. Thanks a lot for noticing this. Best Regards, Jaehoon Chung On 07/01/2015 07:02 PM, Alexey Brodkin wrote: > Hi Jaehoon, Seungwon, Ulf, > > On Thu, 2015-06-25 at 11:25 +0300, Alexey Brodkin w

Re: [PATCH] mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used

2015-07-01 Thread Alexey Brodkin
Hi Jaehoon, Seungwon, Ulf, On Thu, 2015-06-25 at 11:25 +0300, Alexey Brodkin wrote: > As per DW MobileStorage databook "each descriptor can transfer up to > 4kB > of data in chained mode", moreover buffer size that is put in "des1" > is > limited to 13 bits, i.e. for example on attempt to > IDMA

Re: [RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Jaehoon Chung
Hi, Is sdhost based on SDHCI controller? Why don't use sdhci.c? Is there any reason? Best Regards, Jaehoon Chung On 07/01/2015 04:12 PM, Chunyan Zhang wrote: > From: Billows Wu > > The Spreadtrum MMC host driver is used to support EMMC, SD, and > SDIO types of memory cards. > > Signed-off-by

Re: [PATCH v4 2/8] pinctrl: sh-pfc: r8a7790: Implement voltage switching for SDHI

2015-07-01 Thread Laurent Pinchart
Hi Ben, Thank you for the patch. On Tuesday 30 June 2015 17:54:09 Ben Hutchings wrote: > All the SHDIs can operate with either 3.3V or 1.8V signals, depending > on negotiation with the card. > > Implement the {get,set}_io_voltage operations and set the related > capability flag for the associate

[RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
From: Billows Wu The Spreadtrum MMC host driver is used to support EMMC, SD, and SDIO types of memory cards. Signed-off-by: Billows Wu Reviewed-by: Orson Zhai Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sprd_sdhost.c | 1270 drivers/mmc/host/spr

Re: [PATCH v4 1/8] pinctrl: sh-pfc: Implement pinconf power-source param for voltage switching

2015-07-01 Thread Laurent Pinchart
Hi Ben, Thank you for the patch. On Tuesday 30 June 2015 17:53:59 Ben Hutchings wrote: > The pfc in the R8A7790 (and probably others in the R-Car gen 2 family) > supports switching SDHI signals between 3.3V and 1.8V nominal voltage, > and the SD driver should do that when switching to and from UH

[RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
From: Billows Wu The Spreadtrum MMC host driver is used to support EMMC, SD, and SDIO types of memory cards. Signed-off-by: Billows Wu Reviewed-by: Orson Zhai Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sprd_sdhost.c | 1270 drivers/mmc/host/spr