Re: [PATCH v2 3/6] pinctrl: sh-pfc: r8a7790: Add separate functions for SDHI 1.8V operation

2015-06-30 Thread Laurent Pinchart
On Tuesday 30 June 2015 08:05:34 Linus Walleij wrote: On Mon, Jun 15, 2015 at 4:02 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: On a side note, I have a patch to support the standard groups, functions and pins properties instead of the Renesas-specific versions, I'll try

Re: [PATCH v4 0/8] UHS-I support for sh_mobile_sdhi

2015-06-30 Thread Kuninori Morimoto
Hi Ben Thank you for your hard work This series adds support for UHS-I in sh_mobile_sdhi, partly implemented in tmio_mmc. This does not yet include tuning for SDR-104, but SDR-50 now works on the R8A7790 Lager board and another development board. The pfc block needs to be reconfigured

RE: [PATCH v2] mmc: enable Enhance Strobe for HS400.

2015-06-30 Thread Sun, Yi Y
Hi, Sorry for late and thanks a lot for your test and suggestions! I have completed the business travel and will check them in detail. BRs, Sun Yi -Original Message- From: Venkat Gopalakrishnan [mailto:venk...@codeaurora.org] Sent: Saturday, June 13, 2015 6:48 AM To: Sun, Yi Y Cc:

SDHCI: mdelay() in hot path in esdhc_pltfm_set_clock looses CAN (!) frames

2015-06-30 Thread Holger Schurig
Hi, I noticed in a kernel 4.0.7 that I loose CAN packets when an incoming rsync transfer changes my eMMC or SD-Card image. I used CONFIG_FRACE to find why this is the case, and came to this trace: # tracer: preemptoff # # preemptoff latency trace v1.1.5 on 4.0.7 #

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

2015-06-30 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- This is needed to get our regulators into hpm, to give enough power to our sdhci cards to run at higher clockrates - e.g. hs200. Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++ drivers/mmc/core/core.c

mmc driver read/write detect problem with Baytrail tablet

2015-06-30 Thread Paul Mansfield
Hello, I am trying to get a baytrail-t based convertible tablet working with linux, using kernel 4.1 built for 32 bit Debian Jessie. I've made good progress, making my Toshiba Click Mini work sufficiently well to be useable with a USB wifi adaptor (the driver for the integrated SDIO wifi makes it

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

2015-06-30 Thread Venkatraman S
On Tue, Jun 30, 2015 at 10:13 AM, Paul Mansfield p...@mansfield.co.uk wrote: Hello, I am trying to get a baytrail-t based convertible tablet working with linux, using kernel 4.1 built for 32 bit Debian Jessie. I've made good progress, making my Toshiba Click Mini work sufficiently well to

[PATCH v4 0/8] UHS-I support for sh_mobile_sdhi

2015-06-30 Thread Ben Hutchings
This series adds support for UHS-I in sh_mobile_sdhi, partly implemented in tmio_mmc. This does not yet include tuning for SDR-104, but SDR-50 now works on the R8A7790 Lager board and another development board. The pfc block needs to be reconfigured from 3.3V to 1.8V signalling on the pins wired

[PATCH v4 4/8] mmc: tmio, sh_mobile_sdhi: Add support for variable input clock frequency

2015-06-30 Thread Ben Hutchings
Currently tmio_mmc assumes that the input clock frequency is fixed and only its own clock divider can be changed. This is not true in the case of sh_mobile_sdhi; we can use the clock API to change it. In tmio_mmc: - Delegate setting of f_min from tmio to the clk_enable operation (if

[PATCH v4 7/8] ARM: shmobile: r8a7790: Set maximum frequencies for SDHI clocks

2015-06-30 Thread Ben Hutchings
Taken from the datasheet. Signed-off-by: Ben Hutchings ben.hutchi...@codethink.co.uk --- arch/arm/boot/dts/r8a7790.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 4bb2f4c17321..618b38938b24 100644 ---

[PATCH v4 8/8] ARM: shmobile: lager: Enable UHS-I SDR-50

2015-06-30 Thread Ben Hutchings
Add the 1v8 pinctrl state and sd-uhs-sdr50 property to SDHI{0,2}. Signed-off-by: Ben Hutchings ben.hutchi...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts

[PATCH v4 5/8] mmc: tmio: Add UHS-I mode support

2015-06-30 Thread Ben Hutchings
Based on work by Shinobu Uehara and Ben Dooks. This adds the voltage switch operation needed for all UHS-I modes, but not the tuning needed for SDR-104 which will come later. The card_busy implementation is a bit of a guess, but works for me on an R8A7790 chip. Signed-off-by: Ben Hutchings

[PATCH v4 6/8] mmc: sh_mobile_sdhi: Add UHS-I mode support

2015-06-30 Thread Ben Hutchings
Implement voltage switch, supporting modes up to SDR-50. Based on work by Shinobu Uehara, Rob Taylor, William Towle and Ian Molton. Signed-off-by: Ben Hutchings ben.hutchi...@codethink.co.uk --- drivers/mmc/host/sh_mobile_sdhi.c | 60 +++ 1 file changed, 60

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

2015-06-30 Thread Ben Hutchings
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 associated pins. Signed-off-by: Ben Hutchings ben.hutchi...@codethink.co.uk ---

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

2015-06-30 Thread Ben Hutchings
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 UHS modes. Add a flag for pins that have configurable I/O voltage and SoC operations to get and

[PATCH v4 3/8] mmc: tmio, sh_mobile_sdhi: Pass tmio_mmc_host ptr to clk_{enable,disable} ops

2015-06-30 Thread Ben Hutchings
Change the clk_enable operation to take a pointer to the struct tmio_mmc_host and have it set f_max. For consistency, also change the clk_disable operation to take a pointer to struct tmio_mmc_host. Signed-off-by: Ben Hutchings ben.hutchi...@codethink.co.uk --- drivers/mmc/host/sh_mobile_sdhi.c

Re: [PATCH v2 3/6] pinctrl: sh-pfc: r8a7790: Add separate functions for SDHI 1.8V operation

2015-06-30 Thread Linus Walleij
On Mon, Jun 15, 2015 at 4:02 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: On a side note, I have a patch to support the standard groups, functions and pins properties instead of the Renesas-specific versions, I'll try to revive it. Yes please :) Makes things a little less