[PATCH v3 2/7] mmc: core: Add mmc_regulator_set_vqmmc()

2015-10-12 Thread Heiko Stuebner
posely don't print errors in mmc_regulator_set_vqmmc(). There are cases where the MMC core will try several different voltages and we don't want to pollute the logs. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drive

[PATCH v3 7/7] ARM: dts: rockchip: add tuning related settings to veyron devices

2015-10-12 Thread Heiko Stuebner
This allows the tuning code to run and use higher speeds on capable cards. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 7 ++- arch/arm/boot/dts/rk3288-veyron.dtsi | 6 ++ 2 files changed, 12 insertions(+), 1 deletion(-)

[PATCH v3 4/7] mmc: dw_mmc-rockchip: dt-binding: Add tuning related things

2015-10-12 Thread Heiko Stuebner
es set by the hardware are good enough. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> Acked-by: Jaehoon Chung <jh80.ch...@samsung.com> --- Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.txt | 13 + 1 file changed

[PATCH v3 6/7] ARM: dts: rockchip: Add drive/sample clocks for rk3288 dw_mmc devices

2015-10-12 Thread Heiko Stuebner
From: Alexandru M Stan <ams...@chromium.org> The drive/sample clocks can be phase shifted. The drive clock could be used in a future patch to adjust hold times. The sample clock is used for tuning. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko

[PATCH v3 1/7] mmc: core: move ocr-bit to voltage translation into separate function

2015-10-12 Thread Heiko Stuebner
We will shortly need the calculation of an ocr-bit to the actual voltage in a second place too, so move it from mmc_regulator_set_ocr to a common function mmc_ocrbitnum_to_vdd to make that possible. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/mmc/core/core.

[PATCH v3 0/7] mmc: dw_mmc-rockchip: allow tuning using the clk-phase api

2015-10-12 Thread Heiko Stuebner
ing with the clock phase framework ARM: dts: rockchip: Add drive/sample clocks for rk3288 dw_mmc devices Douglas Anderson (2): mmc: core: Add mmc_regulator_set_vqmmc() mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch Heiko Stuebner (2): mmc: core: move ocr-

[PATCH v3 5/7] mmc: dw_mmc-rockchip: MMC tuning with the clock phase framework

2015-10-12 Thread Heiko Stuebner
ut has no sample_clk defined we'll return EIO with an error message. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> Acked-by: Jaehoon Chung <jh80.ch...@samsung.com> --- drivers/mmc/host/dw_mmc-rockchip.c | 162

[PATCH v3 3/7] mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch

2015-10-12 Thread Heiko Stuebner
signal voltage is 3.3V. This ensures max compatibility. 2. We get rid of a few more warnings when probing unsupported voltages. 3. We get rid of some non-dw_mmc specific code in dw_mmc. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <he...@s

Re: [PATCH v2 0/8] mmc: dw_mmc-rockchip: allow tuning using the clk-phase api

2015-10-09 Thread Heiko Stuebner
Am Freitag, 9. Oktober 2015, 13:11:21 schrieb Doug Anderson: > Hi, > > On Fri, Oct 9, 2015 at 10:19 AM, Doug Anderson wrote: > > Hi, > > > > On Fri, Oct 9, 2015 at 1:10 AM, Ulf Hansson wrote: > >> Dough, Heiko, > >> > >> This patchset seems to

[PATCH v2 2/8] clk: rockchip: Make calculations use rounding

2015-09-30 Thread Heiko Stuebner
00420c]=0x46c actual_degrees=86 After this: set_phase(86) delay_nums=27 reg[0xf000420c]=0x46c actual_degrees=86 set_phase(89) delay_nums=28 reg[0xf000420c]=0x470 actual_degrees=90 Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de>

[PATCH v2 5/8] mmc: dw_mmc-rockchip: dt-binding: Add tuning related things

2015-09-30 Thread Heiko Stuebner
es set by the hardware are good enough. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devic

[PATCH v2 3/8] mmc: core: Add mmc_regulator_set_vqmmc()

2015-09-30 Thread Heiko Stuebner
posely don't print errors in mmc_regulator_set_vqmmc(). There are cases where the MMC core will try several different voltages and we don't want to pollute the logs. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drive

[PATCH v2 1/8] clk: rockchip: Allow more precision for some mmc clock phases

2015-09-30 Thread Heiko Stuebner
recise variance-values of 44-77 instead of 40-80. Fold in the actual removal of the monotonic requirement and adapt patch message accordingly. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/clk/rockchip/clk-mmc-phase.c | 45 1 file changed,

[PATCH v2 8/8] ARM: dts: rockchip: add tuning related settings to veyron devices

2015-09-30 Thread Heiko Stuebner
This allows the tuning code to run and use higher speeds on capable cards. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 7 ++- arch/arm/boot/dts/rk3288-veyron.dtsi | 6 ++ 2 files changed, 12 insertions(+), 1 deletion(-)

[PATCH v2 7/8] ARM: dts: rockchip: Add drive/sample clocks for rk3288 dw_mmc devices

2015-09-30 Thread Heiko Stuebner
From: Alexandru M Stan <ams...@chromium.org> The drive/sample clocks can be phase shifted. The drive clock could be used in a future patch to adjust hold times. The sample clock is used for tuning. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko

[PATCH v2 6/8] mmc: dw_mmc-rockchip: MMC tuning with the clock phase framework

2015-09-30 Thread Heiko Stuebner
ut has no sample_clk defined we'll return EIO with an error message. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/mmc/host/dw_mmc-rockchip.c | 162 + 1 file changed, 162 inserti

[PATCH v2 0/8] mmc: dw_mmc-rockchip: allow tuning using the clk-phase api

2015-09-30 Thread Heiko Stuebner
in start_signal_voltage_switch Heiko Stuebner (1): ARM: dts: rockchip: add tuning related settings to veyron devices .../devicetree/bindings/mmc/rockchip-dw-mshc.txt | 13 ++ arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 7 +- arch/arm/boot/dts/rk3288-veyron.dtsi | 6 + arch/arm/boot/dts

[PATCH v2 4/8] mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch

2015-09-30 Thread Heiko Stuebner
signal voltage is 3.3V. This ensures max compatibility. 2. We get rid of a few more warnings when probing unsupported voltages. 3. We get rid of some non-dw_mmc specific code in dw_mmc. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <

Re: [PATCH 5/8] mmc: dw_mmc: dt-binding: Add tuning related things

2015-09-02 Thread Heiko Stuebner
Hi Jaehoon, Am Mittwoch, 2. September 2015, 14:01:52 schrieb Jaehoon Chung: > Hi, Heiko. > > On 09/01/2015 03:24 AM, Heiko Stuebner wrote: > > From: Alexandru M Stan <ams...@chromium.org> > > > > Add ciu_drv, ciu_sample clocks and default-sample-phase. This will

[PATCH 0/8] mmc: dw_mmc: allow tuning using the clk-phase api

2015-08-31 Thread Heiko Stuebner
in start_signal_voltage_switch Heiko Stuebner (1): ARM: dts: rockchip: add tuning related settings to veyron devices .../devicetree/bindings/mmc/synopsys-dw-mshc.txt | 14 +- arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 7 +- arch/arm/boot/dts/rk3288-veyron.dtsi | 6 + arch/arm

[PATCH 7/8] ARM: dts: rockchip: Add drive/sample clocks for rk3288 dw_mmc devices

2015-08-31 Thread Heiko Stuebner
From: Alexandru M Stan <ams...@chromium.org> The drive/sample clocks can be phase shifted. The drive clock could be used in a future patch to adjust hold times. The sample clock is used for tuning. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko

[PATCH 1/8] clk: rockchip: Allow more precision for some mmc clock phases

2015-08-31 Thread Heiko Stuebner
recise variance-values of 44-77 instead of 40-80. Fold in the actual removal of the monotonic requirement and adapt patch message accordingly. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/clk/rockchip/clk-mmc-phase.c | 45 1 file changed,

[PATCH 6/8] mmc: dw_mmc: Generic MMC tuning with the clock phase framework

2015-08-31 Thread Heiko Stuebner
ut has no sample_clk defined we'll return EIO with an error message. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Convert to mmc_send_tuning() Fold in from the ChromeOS-tree: - mmc: dw_mmc: Change tuning to only 16 phases - mmc: dw_mmc: Test more phases Signed-off-by: Heiko

[PATCH 4/8] mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch

2015-08-31 Thread Heiko Stuebner
signal voltage is 3.3V. This ensures max compatibility. 2. We get rid of a few more warnings when probing unsupported voltages. 3. We get rid of some non-dw_mmc specific code in dw_mmc. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <

[PATCH 2/8] clk: rockchip: Make calculations use rounding

2015-08-31 Thread Heiko Stuebner
00420c]=0x46c actual_degrees=86 After this: set_phase(86) delay_nums=27 reg[0xf000420c]=0x46c actual_degrees=86 set_phase(89) delay_nums=28 reg[0xf000420c]=0x470 actual_degrees=90 Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de>

[PATCH 8/8] ARM: dts: rockchip: add tuning related settings to veyron devices

2015-08-31 Thread Heiko Stuebner
This allows the tuning code to run and use higher speeds on capable cards. Signed-off-by: Heiko Stuebner <he...@sntech.de> --- arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 7 ++- arch/arm/boot/dts/rk3288-veyron.dtsi | 6 ++ 2 files changed, 12 insertions(+), 1 deletion(-)

[PATCH 5/8] mmc: dw_mmc: dt-binding: Add tuning related things

2015-08-31 Thread Heiko Stuebner
es set by the hardware are good enough. Signed-off-by: Alexandru M Stan <ams...@chromium.org> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Docume

[PATCH 3/8] mmc: core: Add mmc_regulator_set_vqmmc()

2015-08-31 Thread Heiko Stuebner
nstead of picking the lowest one in the range. * We very purposely don't print errors in mmc_regulator_set_vqmmc(). There are cases where the MMC core will try several different voltages and we don't want to pollute the logs. Signed-off-by: Douglas Anderson <diand...@chromium.org> Signed-o

Re: [PATCH] mmc: dw_mmc: fix pio mode when internal dmac is enabled

2015-08-17 Thread Heiko Stuebner
Am Montag, 17. August 2015, 12:34:09 schrieb Ulf Hansson: [...] - mmc-max_seg_size = mmc-max_req_size; -#endif /* CONFIG_MMC_DW_IDMAC */ + if (host-use_dma) { + mmc-max_segs = host-ring_size; I expect this may cause a compiler error

Re: [PATCH v4 1/4] mmc: dw_mmc: Don't try to enable the CD until we're sure we're not deferring

2015-03-13 Thread Heiko Stuebner
Hi, Am Freitag, 13. März 2015, 20:32:43 schrieb Jaehoon Chung: Hi Doug, Will apply. Thanks! just to make sure, you'll take patches 1-3 and I'll take the dts change from patch 4, right? Thanks Heiko -- To unsubscribe from this list: send the line unsubscribe linux-mmc in the body of a