Re: [PATCH v5 1/6] mfd: rtsx: add func to split u32 into register

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > On 20 January 2015 at 15:47, Lee Jones wrote: > > On Tue, 23 Dec 2014, micky_ch...@realsil.com.cn wrote: > > > >> From: Micky Ching > >> > >> Add helper function to write u32 to registers, if we want to put u32 > >> value to 4 continuous register, this c

RE: [RFC 0/2] mmc: UHS-II implementation

2015-01-20 Thread Sun, Yi Y
Hi, all, This patch has been submitted for several weeks. I hope to get suggestions from community to solve potential issues as early as possible. Any comment would be very appreciated. Thanks, Sun Yi -Original Message- From: Sun, Yi Y Sent: Saturday, December 27, 2014 5:28 PM To: lin

Re: [PATCH v4 2/2] ARM: dts: Add HS400 support for exynos5420 and exynos5800

2015-01-20 Thread Jaehoon Chung
Hi, If you want to enable the hs400 mode, need to add "mmc-hs400-1_8v" or "mmc-hs400-1_2v". But this patch didn't add them. do you have any other plan? On 01/14/2015 07:30 PM, Alim Akhtar wrote: > From: Seungwon Jeon > > HS400 timing values are added for SMDK5420, exynos5420-peach-pit > and ex

Re: [PATCH v4 1/2] mmc: dw_mmc: exynos: Support eMMC's HS400 mode

2015-01-20 Thread Jaehoon Chung
Hi, This patch can be separated. When i tested on my board, it's not working fine. I think it depends on my timing, so i will check after change the timing. On 01/14/2015 07:30 PM, Alim Akhtar wrote: > From: Seungwon Jeon > > Implements HS400 mode support for exynos host driver. > This also inc

Re: [PATCH v5 1/6] mfd: rtsx: add func to split u32 into register

2015-01-20 Thread Ulf Hansson
On 20 January 2015 at 15:47, Lee Jones wrote: > On Tue, 23 Dec 2014, micky_ch...@realsil.com.cn wrote: > >> From: Micky Ching >> >> Add helper function to write u32 to registers, if we want to put u32 >> value to 4 continuous register, this can help us reduce tedious work. >> >> Signed-off-by: Mi

[PATCH v2] mmc: OCTEON: Add host driver for OCTEON MMC controller

2015-01-20 Thread Aleksey Makarov
The OCTEON MMC controller is currently found on cn61XX and cnf71XX devices. Device parameters are configured from device tree data. eMMC, MMC and SD devices are supported. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim Signed-off-by: Aaron Williams Signed-off-by: Chandrakala Chavv

Re: [PATCH 1/4] clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate

2015-01-20 Thread Mike Turquette
Quoting Peter Griffin (2015-01-20 07:32:41) > Debugging eMMC on upstream kernels it has been noticed that when the > targetpack configures MMC0 clock to 200Mhz (required to switch to > HS200) then everything works OK. However if the kernel sets the > clock rate using clk_set_rate, then the eMMC car

[PATCH] mmc: block: fix format string warning

2015-01-20 Thread Asaf Vertz
Fixed the following warning (reported by cppcheck): [drivers/mmc/card/block.c:2149]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. Signed-off-by: Asaf Vertz --- drivers/mmc/card/block.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) d

[PATCH 3/4] mmc: sdhci-st: Update ST SDHCI binding documentation.

2015-01-20 Thread Peter Griffin
This patch updates the binding information to reflect the extra dt options which are now supported by the sdhci-st.c driver which enable support for stih407 family silicon. Stih410 SoC and later support UHS modes for eMMC, so the driver now makes use of these common bindings. Examples are provided

[PATCH 4/4] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.

2015-01-20 Thread Peter Griffin
The nodes have been split to allow as much commonality as possible. The stih407 has a silicon bug with eMMC UHS modes (with top regs) and as such doesn't have any of the uhs dt properties. Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-family.dtsi | 30 ++

[PATCH 1/4] clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate

2015-01-20 Thread Peter Griffin
Debugging eMMC on upstream kernels it has been noticed that when the targetpack configures MMC0 clock to 200Mhz (required to switch to HS200) then everything works OK. However if the kernel sets the clock rate using clk_set_rate, then the eMMC card initialisation fails with timeouts. Lower clock sp

[PATCH 0/4] Add sd/emmc support for stih407 family silicon

2015-01-20 Thread Peter Griffin
Hi, This series adds sd/emmc support to the sdhci-st.c driver for stih407 family silicon. The changes mainly involve congiguring some extra glue registers which configure the controller. This series also adds support for UHS modes for eMMC. To allow UHS HS200/SD104 modes to function correctly, du

[PATCH 2/4] sdhci-st: Add support for stih407 family silicon.

2015-01-20 Thread Peter Griffin
This patch adds support for the extra registers found on stih407 family silicon which has the flashSS subsystem. This mainly consists of some extra glue registers which are used to correctly configure the controller hardware. This patch also adds support for UHS modes for eMMC. To allow UHS HS200

Re: [PATCH v5 1/6] mfd: rtsx: add func to split u32 into register

2015-01-20 Thread Lee Jones
On Tue, 23 Dec 2014, micky_ch...@realsil.com.cn wrote: > From: Micky Ching > > Add helper function to write u32 to registers, if we want to put u32 > value to 4 continuous register, this can help us reduce tedious work. > > Signed-off-by: Micky Ching > Acked-by: Lee Jones > --- > include/lin

Re: [PATCH] mmc: OCTEON: Add host driver for OCTEON MMC controller

2015-01-20 Thread Mark Rutland
On Mon, Jan 19, 2015 at 07:01:51PM +, David Daney wrote: > On 01/19/2015 06:28 AM, Mark Rutland wrote: > > Hi, > > > > On Mon, Jan 19, 2015 at 01:46:36PM +, Aleksey Makarov wrote: > >> The OCTEON MMC controller is currently found on cn61XX and cnf71XX > >> devices. Device parameters are co

Re: [PATCH 01/17] mmc: tmio: add tmio_mmc_host_alloc/free()

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:57, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current tmio_mmc driver is using tmio_mmc_data for driver/platform > > specific data/callback, and it is needed for tmio_mmc_host_probe() >

Re: [PATCH 03/17] mmc: tmio: tmio_mmc_host has .write16_hook

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:57, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .write16_hook is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Morimo

Re: [PATCH 02/17] mmc: tmio: tmio_mmc_host has .dma

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:57, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .dma is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Morimoto > > -

Re: [PATCH 05/17] mmc: tmio: tmio_mmc_host has .clk_disable

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:58, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .clk_disable is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Morimot

Re: [PATCH 04/17] mmc: tmio: tmio_mmc_host has .clk_enable

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:57, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .clk_enable is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Morimoto

Re: [PATCH 06/17] mmc: tmio: tmio_mmc_host has .multi_io_quirk

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:58, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .multi_io_quirk is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Mori

Re: [PATCH 07/17] mmc: tmio: tmio_mmc_host has .bus_shift

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:58, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .bus_shift is implemented under tmio_mmc_data. > > It goes to tmio_mmc_host by this patch. > > > > Signed-off-by: Kuninori Morimoto

Re: [PATCH 08/17] mmc: tmio: tmio_mmc_data has .alignment_shift

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:58, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .alignment_shift is implemented under tmio_mmc_dma. > > It goes to tmio_mmc_data by this patch. > > > > Signed-off-by: Kuninori Mori

Re: [PATCH 09/17] mmc: tmio: tmio_mmc_data has .dma_rx_offset

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 05:58, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > Current .dma_rx_offset is implemented under tmio_mmc_dma. > > It goes to tmio_mmc_data by this patch. > > > > Signed-off-by: Kuninori Morimo

Re: [PATCH 17/17] mmc: tmio: remove TMIO_MMC_HAVE_CTL_DMA_REG flag

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Ulf Hansson wrote: > + MFD maintainer > > On 13 January 2015 at 06:00, Kuninori Morimoto > wrote: > > From: Kuninori Morimoto > > > > tmio_mmc_host has .enable_dma callback now. > > We don't need TMIO_MMC_HAVE_CTL_DMA_REG anymore. > > Let's remove it > > > > Signed-off-by:

Re: [PATCH] mmc: tmio: add missing EXPORT_SYMBOL for tmio_mmc_host_alloc/free

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 14 January 2015 at 09:30, Ulf Hansson wrote: > On 14 January 2015 at 03:21, Kuninori Morimoto > wrote: >> From: Kuninori Morimoto >> >> tmio_mmc_host_alloc/free were added on tmio_mmc_pio.c, >> but, it is missing EXPORT_SYMBOL for it. >> Compile will be failed without this p

Re: [PATCH 17/17] mmc: tmio: remove TMIO_MMC_HAVE_CTL_DMA_REG flag

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 06:00, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > tmio_mmc_host has .enable_dma callback now. > We don't need TMIO_MMC_HAVE_CTL_DMA_REG anymore. > Let's remove it > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |

Re: [PATCH 09/17] mmc: tmio: tmio_mmc_data has .dma_rx_offset

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:58, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .dma_rx_offset is implemented under tmio_mmc_dma. > It goes to tmio_mmc_data by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |2 +- > d

Re: [PATCH 03/17] mmc: tmio: tmio_mmc_host has .write16_hook

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:57, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .write16_hook is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |2 +- > d

Re: [PATCH 07/17] mmc: tmio: tmio_mmc_host has .bus_shift

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:58, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .bus_shift is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |5 ++--- > d

Re: [PATCH 08/17] mmc: tmio: tmio_mmc_data has .alignment_shift

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:58, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .alignment_shift is implemented under tmio_mmc_dma. > It goes to tmio_mmc_data by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |4 ++--

Re: [PATCH 06/17] mmc: tmio: tmio_mmc_host has .multi_io_quirk

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:58, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .multi_io_quirk is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |2 +- >

Re: [PATCH 05/17] mmc: tmio: tmio_mmc_host has .clk_disable

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:58, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .clk_disable is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |2 +- > dr

Re: [PATCH 04/17] mmc: tmio: tmio_mmc_host has .clk_enable

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:57, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .clk_enable is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |2 +- > dri

Re: [PATCH 01/17] mmc: tmio: add tmio_mmc_host_alloc/free()

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:57, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current tmio_mmc driver is using tmio_mmc_data for driver/platform > specific data/callback, and it is needed for tmio_mmc_host_probe() > function. Because of this style, include/linux/mfd/tmio.h

Re: [PATCH 02/17] mmc: tmio: tmio_mmc_host has .dma

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:57, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current .dma is implemented under tmio_mmc_data. > It goes to tmio_mmc_host by this patch. > > Signed-off-by: Kuninori Morimoto > --- > drivers/mmc/host/sh_mobile_sdhi.c |4 ++-- > drivers/

Re: [PATCH 0/17 v2] tmio: mmc: header cleanup / sh_mobile_cleanup

2015-01-20 Thread Ulf Hansson
+ MFD maintainer On 13 January 2015 at 05:56, Kuninori Morimoto wrote: > > Hi Ulf > > These are v2 of tmio mmc / sh_mobile_sdhi cleanup patches. > v1 patch and in its discuss, we need 3 type of patch-set > 1. header cleanup > 2. sh_mobile_sdhi DMA > 3. DMAEngine cleanup > > These are including

Re: [PATCH v5 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-20 Thread Vincent Yang
2015-01-20 16:43 GMT+08:00 Ulf Hansson : > On 20 January 2015 at 09:05, Vincent Yang > wrote: >> This patch adds new host controller driver for >> Fujitsu SDHCI controller f_sdh30. >> >> Signed-off-by: Vincent Yang >> Signed-off-by: Andy Green >> Signed-off-by: Tetsuya Takinishi > > Thanks! I h

Re: [PATCH v5 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-20 Thread Ulf Hansson
On 20 January 2015 at 09:05, Vincent Yang wrote: > This patch adds new host controller driver for > Fujitsu SDHCI controller f_sdh30. > > Signed-off-by: Vincent Yang > Signed-off-by: Andy Green > Signed-off-by: Tetsuya Takinishi Thanks! I have applied this patchset for next, with the below min

[PATCH v5 4/4] mmc: sdhci: host: add new f_sdh30

2015-01-20 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang Signed-off-by: Andy Green Signed-off-by: Tetsuya Takinishi --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 30 +++ drivers/mmc/host/Kconfig | 11 +

[PATCH v5 3/4] mmc: sdhci: add a quirk for single block transactions

2015-01-20 Thread Vincent Yang
This patch defines a quirk to disable the block count for single block transactions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 7 inser

[PATCH v5 2/4] mmc: sdhci: add a quirk for tuning work around

2015-01-20 Thread Vincent Yang
This patch defines a quirk for tuning work around for some sdhci host controller. It sets both SDHCI_CTRL_EXEC_TUNING and SDHCI_CTRL_TUNED_CLK for tuning. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c |

[PATCH v5 1/4] mmc: sdhci: add a voltage switch callback function

2015-01-20 Thread Vincent Yang
This patch adds a callback function to do controller-specific actions when switching voltages. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 1 + 2 files changed, 5 in

[PATCH v5 0/4] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2015-01-20 Thread Vincent Yang
Hello, Fujitsu have an sdhci IP which is implemented in a SoC we're adding to mainline, the most recent series for that was sent here: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/317580.html We welcome any comment and advice about how to make any improvements or bette