[PULL REQUEST] renesas/topic/sdhi-8bit-emmc for renesas drivers

2016-09-14 Thread Wolfram Sang
Hi Geert, here is a topic branch for renesas-drivers. This branch is based on Simon's topic/sdr104-v7 branch which I needed for M3 SDHI enablement. Please pull. Kind regards, Wolfram The following changes since commit 6d1414d3fd219406b067af28bb96316626edefe4: gpio: rcar: Add r8a7796

Re: [GIT PULL] Renesas ARM Based SoC Updates for v4.9

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 7, 2016 9:41:38 AM CEST Simon Horman wrote: > Renesas ARM Based SoC Updates for v4.9 > > Clean-up: > * Only use smp_init when SMP is selected > > Enablement: > * Add debug-ll support for r8a7992 > Pulled into next/soc, thanks! Arnd

Re: [GIT PULL] Renesas ARM64 Based SoC Defconfig Updates for v4.9

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 7, 2016 9:41:26 AM CEST Simon Horman wrote: > Renesas ARM64 Based SoC Defconfig Updates for v4.9 > > * Enable HSUSB and SDHI > Pulled into next/arm64, thanks! Arnd

Re: [PATCH] pcie-rcar: MSI range allocation support

2016-09-14 Thread Bjorn Helgaas
On Thu, Sep 08, 2016 at 10:32:59PM +0300, Sergei Shtylyov wrote: > From: Grigory Kletsko > > Impelment MSI setup_irqs() method which enables allocation of several MSIs > at once. > > [Sergei Shtylyov: removed unrelated/unneeded changes, fixed too long lines,

Re: [PATCH 11/13] v4l: vsp1: Determine partition requirements for scaled images

2016-09-14 Thread Laurent Pinchart
Hi Niklas, On Wednesday 14 Sep 2016 21:27:33 Niklas Söderlund wrote: > On 2016-09-14 02:17:04 +0300, Laurent Pinchart wrote: > > From: Kieran Bingham > > > > The partition algorithm needs to determine the capabilities of each > > entity in the pipeline to identify

Re: [PATCH 02/13] v4l: vsp1: Protect against race conditions between get and set format

2016-09-14 Thread Laurent Pinchart
Hi Niklas, Thank you for the review. On Wednesday 14 Sep 2016 20:23:18 Niklas Söderlund wrote: > On 2016-09-14 02:16:55 +0300, Laurent Pinchart wrote: > > The subdev userspace API isn't serialized in the core, serialize access > > to formats and selection rectangles in the driver. > > > >

Re: [PATCH 14/13] v4l: vsp1: Fix spinlock in mixed IRQ context function

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:29:08 +0300, Laurent Pinchart wrote: > The wpf_configure() function can be called both from IRQ and non-IRQ > contexts, use spin_lock_irqsave(). > > Signed-off-by: Laurent Pinchart Acked-by: Niklas Söderlund

Re: [PATCH 11/13] v4l: vsp1: Determine partition requirements for scaled images

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:17:04 +0300, Laurent Pinchart wrote: > From: Kieran Bingham > > The partition algorithm needs to determine the capabilities of each > entity in the pipeline to identify the correct maximum partition width. > > Extend the vsp1 entity operations to

Re: [PATCH 08/13] v4l: vsp1: Pass parameter type to entity configuration operation

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:17:01 +0300, Laurent Pinchart wrote: > Replace the current boolean parameter (full / !full) with an explicit > enum. > > - VSP1_ENTITY_PARAMS_INIT for parameters to be configured at pipeline > initialization time only (V4L2 stream on or DRM atomic update) > -

Re: [PATCH 06/13] v4l: vsp1: Disable cropping on WPF sink pad

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:16:59 +0300, Laurent Pinchart wrote: > Cropping on the WPF sink pad restricts the left and top coordinates to > 0-255. The same result can be obtained by cropping on the RPF without > any such restriction, this feature isn't useful. Disable it. > > Signed-off-by: Laurent Pinchart

Re: [PATCH 05/13] v4l: vsp1: Use DFE instead of FRE for frame end

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:16:58 +0300, Laurent Pinchart wrote: > From: Kieran Bingham > > The DFE and FRE interrupts are both fired at frame completion, as each > display list processes a single frame. This won't be true anymore when > using image partitioning, switch to DFE

Re: [PATCH 03/13] v4l: vsp1: Ensure pipeline locking in resume path

2016-09-14 Thread Niklas Söderlund
On 2016-09-14 02:16:56 +0300, Laurent Pinchart wrote: > From: Kieran Bingham > > The vsp1_pipeline_ready() and vsp1_pipeline_run() functions must be > called with the pipeline lock held, fix the resume code path. > > Signed-off-by: Kieran Bingham

Re: [PATCH 02/13] v4l: vsp1: Protect against race conditions between get and set format

2016-09-14 Thread Niklas Söderlund
Hi Laurent, Thanks for your patch. On 2016-09-14 02:16:55 +0300, Laurent Pinchart wrote: > The subdev userspace API isn't serialized in the core, serialize access > to formats and selection rectangles in the driver. > > Signed-off-by: Laurent Pinchart

Re: [git pull] clk: renesas: Updates for v4.9 (take three)

2016-09-14 Thread Stephen Boyd
On 09/14, Geert Uytterhoeven wrote: > Hi Mike, Stephen, > > The following changes since commit 074969813350cda4c624a585489cc1b3550414bc: > > clk: renesas: r8a7796: Add SDIF clocks (2016-08-23 10:30:41 +0200) > > are available in the git repository at: > >

[PATCH 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC

2016-09-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts

[PATCH 2/2] arm64: dts: r8a7796: salvator: enable on board eMMC

2016-09-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 44 +- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts

[PATCH 0/2] gen3: dts: enable on-board eMMC

2016-09-14 Thread Wolfram Sang
From: Wolfram Sang Here are the DTS changes to enable the on-board eMMC memory at 8 bit bus widths on R-Car Gen3 Salvator-X boards. Note that 'non-removable' is not supported yet because of Runtime PM issues. It seems we need to overhaul Runtime PM handling for other reasons

[PATCH 3/4] mmc: rtsx_usb: use new macro for R1 without CRC

2016-09-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- drivers/mmc/host/rtsx_usb_sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 6c71fc9f76c7ec..4106295527b9d0 100644 ---

[PATCH 1/4] mmc: add define for R1 response without CRC

2016-09-14 Thread Wolfram Sang
The core uses it for polling. Give drivers a proper define to handle this case like all other response types. Signed-off-by: Wolfram Sang --- include/linux/mmc/core.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/core.h

[PATCH 2/4] mmc: rtsx_pci: use new macro for R1 without CRC

2016-09-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- drivers/mmc/host/rtsx_pci_sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index 396c9b7e4121b0..3ccaa1415f33b2 100644 ---

[PATCH 4/4] mmc: tmio: add eMMC support

2016-09-14 Thread Wolfram Sang
We need to add R1 without CRC support, refactor the bus width routine a little and extend a quirk check. Signed-off-by: Wolfram Sang --- drivers/mmc/host/tmio_mmc.h | 3 +++ drivers/mmc/host/tmio_mmc_pio.c | 29 + 2 files

[PATCH 0/4] tmio: add support for eMMC with 8 bit bus width

2016-09-14 Thread Wolfram Sang
From: Wolfram Sang This series enables SDHI instances on R-Car Gen3 to access eMMC with 8 bit bus width. I think the patch descriptions speak for themselves. I decided to not protect this new feature with a flag because it needs specifically to be enabled by setting the bus

[PATCH] arm64: dts: r8a7796 salvator-x: External SCIF3/HSCIF3 loop

2016-09-14 Thread Ulrich Hecht
Add SCIF3 and HSCIF3 as two new serial ports to the r8a7796 Salvator-X DT file. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH 1/4] clk: shmobile: r8a7796: Add HSCIF clocks

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index 2c1f597..555aff4 100644 ---

[PATCH 2/3] arm64: renesas: r8a7796: Add all SCIF nodes

2016-09-14 Thread Ulrich Hecht
Add the device nodes for all R-Car H3 SCIF serial ports, incl. clocks and clock domain. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 65 1 file changed, 65 insertions(+) diff --git

[PATCH 1/3] clk: shmobile: r8a7796: Add SCIF clocks

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index 5cabcaa..2c1f597 100644 ---

[PATCH 3/3] arm64: renesas: r8a7796: Enable SCIF DMA

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index e59ded4..d2bbf92 100644 ---

[PATCH 0/3] r8a7796 SCIF integration

2016-09-14 Thread Ulrich Hecht
Hi! This enables SCIFs 0, 1, 3, 4, and 5. Based on renesas-drivers-2016-09-13-v4.8-rc6. The last patch enables DMA for all SCIFs and depends on the "r8a7796 SYS-DMAC integration" series posted earlier. CU Uli Ulrich Hecht (3): clk: shmobile: r8a7796: Add SCIF clocks arm64: renesas:

[PATCH 4/4] arm64: renesas: r8a7796: Enable HSCIF DMA

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index df3b7df..085a6fa9b 100644 ---

[PATCH 3/4] arm64: renesas: r8a7796 dtsi: Add all HSCIF nodes

2016-09-14 Thread Ulrich Hecht
Add the device nodes for all HSCIF serial ports, incl. clocks, and clock domain. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 70 1 file changed, 70 insertions(+) diff --git

[PATCH 2/4] pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 255 +++ 1 file changed, 255 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c index 42db745..607adf7

[PATCH 5/6] arm64: renesas: r8a7796: Enable I2C DMA

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index a4d8b76..7c4d11c 100644 ---

[PATCH 3/6] pinctrl: sh-pfc: r8a7796: add I2C pin support

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 77 1 file changed, 77 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c index dc9b671..42db745

[PATCH 6/6] arm64: renesas: r8a7796: salvator-x: enable I2C

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts index

[PATCH 1/6] i2c: rcar: add support for r8a7796 (R-Car M3-W)

2016-09-14 Thread Ulrich Hecht
Same as r8a7795. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + drivers/i2c/busses/i2c-rcar.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt

[PATCH 1/3] clk: renesas: r8a7796: Add SYS-DMAC clocks

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index eb347ed..c02fe34 100644 ---

[PATCH 2/6] clk: renesas: r8a7796: Add I2C clocks

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index c02fe34..d851c42 100644 ---

[PATCH 0/6] r8a7796 I2C integration

2016-09-14 Thread Ulrich Hecht
Hi! This enables the I2C controllers on r8a7796. The only difference to r8a7795 is the clock for channels three to six (S0D6 instead of S3D2). Based on renesas-drivers-2016-09-13-v4.8-rc6. The DMA enablement depends on the "r8a7796 SYS-DMAC integration" series posted earlier. CU Uli Ulrich

[PATCH 2/3] arm64: renesas: r8a7796: add SYS-DMAC controller nodes

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 99 1 file changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index

[PATCH 0/3] r8a7796 SYS-DMAC integration

2016-09-14 Thread Ulrich Hecht
Hi! This enables the three DMA controllers. Identical to the setup on r8a7795. Based on renesas-drivers-2016-09-13-v4.8-rc6. CU Uli Ulrich Hecht (3): clk: renesas: r8a7796: Add SYS-DMAC clocks arm64: renesas: r8a7796: add SYS-DMAC controller nodes dmaengine: rcar-dmac: Document R-Car

[PATCH 3/3] dmaengine: rcar-dmac: Document R-Car M3-W bindings

2016-09-14 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt

[PULL REQUEST] VSP1 Image Partitioning algorithm

2016-09-14 Thread Kieran Bingham
Hi Geert, Please consider integrating the latest VSP1 next branch to provide the image partitioning algorithm into renesas-drivers Regards Kieran The following changes since commit c3b809834db8b1a8891c7ff873a216eac119628d: [media] pulse8-cec: fix compiler warning (2016-09-12 06:42:44

Re: [PATCH v7 0/6] UHS-I SDR-104 support for sh_mobile_sdhi

2016-09-14 Thread Wolfram Sang
On Tue, Sep 13, 2016 at 02:48:26PM +0200, Ulf Hansson wrote: > On 13 September 2016 at 12:56, Simon Horman > wrote: > > > > Hi, > > > > this series is based on work by Ai Kyuse to add UHS-I SDR-104 support for > > sh_mobile_sdhi. It builds on work by Shinobu Uehara,

Re: [GIT PULL] Renesas ARM64 Based SoC DT Updates for v4.9

2016-09-14 Thread Arnd Bergmann
On Thursday, September 8, 2016 9:43:24 AM CEST Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Renesas ARM64 based SoC DT updates for v4.9. > > This pull request is based on the sh-pfc-for-v4.9-tag2 of > Geert Uytterhoeven's renesas-driver's tree which is included in

RE: How to put an 'if' statement in a dts?

2016-09-14 Thread Chris Brandt
Hi Geert, Thank you for your reply. On 9/14/2016, Geert Uytterhoeven write: > > B) Leave one as 'status = "disabled"', and then the user just has to > > switch around the 'status' properties before boot (either modify the > > dts file or change it in u-boot with the fdt command) > > I take it

Re: How to put an 'if' statement in a dts?

2016-09-14 Thread Geert Uytterhoeven
Hi Chris, On Wed, Sep 14, 2016 at 2:35 PM, Chris Brandt wrote: > On the RZ/A1 RSK board, the one card slot can be used for SDHI or MMC (SDHI1 > and MMC share the same pins). > > For the r7s72100-rskrza1.dts, I would like to add in support for both SDHI1 > and MMC for

Re: [git pull] pinctrl: sh-pfc: Updates for v4.9 (take three)

2016-09-14 Thread Linus Walleij
On Wed, Sep 14, 2016 at 9:59 AM, Geert Uytterhoeven wrote: > Hi Linus, > > The following changes since commit 374cf6992de89fc38d4d923c89b40816d341d678: > > pinctrl: sh-pfc: r8a7796: Add SDHI pins, groups and functions (2016-08-19 > 09:37:20 +0200) > > are

How to put an 'if' statement in a dts?

2016-09-14 Thread Chris Brandt
On the RZ/A1 RSK board, the one card slot can be used for SDHI or MMC (SDHI1 and MMC share the same pins). For the r7s72100-rskrza1.dts, I would like to add in support for both SDHI1 and MMC for someone to use as reference. Of course they should only pick one. So my options are: A) Make some

[PATCH v4 0/2] ARM: cleanup PCI specific configs

2016-09-14 Thread Kishon Vijay Abraham I
This series was initially sent to add support for two PCIe ports in dra7. This included selecting PCI_DOMAINS config in SOC_DRA7XX. However from the review, PCI_DOMAINS can instead be selected from ARCH_MULTIPLATFORM. This is fixed in this series along with removing PCI_DOMAINS from other

[PATCH v4 1/2] ARM: stop *MIGHT_HAVE_PCI* config from being selected redundantly

2016-09-14 Thread Kishon Vijay Abraham I
*MIGHT_HAVE_PCI* config is already selected in ARCH_MULTIPLATFORM. Don't select it redundantly in all ARCH_MULTIPLATFORM based machines. Signed-off-by: Kishon Vijay Abraham I Acked-by: Alexandre Belloni Acked-by: Krzysztof Kozlowski

Re: [PATCH 3/4] pinctrl: sh-pfc: r8a7795: Add group for AVB MDIO and MII pins

2016-09-14 Thread Sergei Shtylyov
On 9/13/2016 5:03 PM, Niklas Söderlund wrote: Group the AVB pins into similar groups found in other sh-pfc drivers. The pins can not be muxed between functions other then AVB but there drive strength can be controlled. The group avb_mdc containing ADV_MDC and ADV_MDIO are on other SoCs called

Re: [PATCH v7 0/6] UHS-I SDR-104 support for sh_mobile_sdhi

2016-09-14 Thread Simon Horman
On Tue, Sep 13, 2016 at 02:58:25PM +0200, Wolfram Sang wrote: > On Tue, Sep 13, 2016 at 02:48:26PM +0200, Ulf Hansson wrote: > > On 13 September 2016 at 12:56, Simon Horman > > wrote: > > > > > > Hi, > > > > > > this series is based on work by Ai Kyuse to add UHS-I

Re: [PATCH v7 6/6] mmc: sh_mobile_sdhi: Add tuning support

2016-09-14 Thread Simon Horman
On Tue, Sep 13, 2016 at 12:56:15PM +0200, Simon Horman wrote: > Add tuning support for use with SDR104 mode > This includes adding support for the sampling clock controller (SCC). > > Based on work by Ai Kyuse. > > Cc: Ai Kyuse > Signed-off-by: Simon Horman

[git pull] pinctrl: sh-pfc: Updates for v4.9 (take three)

2016-09-14 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 374cf6992de89fc38d4d923c89b40816d341d678: pinctrl: sh-pfc: r8a7796: Add SDHI pins, groups and functions (2016-08-19 09:37:20 +0200) are available in the git repository at:

[git pull] clk: renesas: Updates for v4.9 (take three)

2016-09-14 Thread Geert Uytterhoeven
Hi Mike, Stephen, The following changes since commit 074969813350cda4c624a585489cc1b3550414bc: clk: renesas: r8a7796: Add SDIF clocks (2016-08-23 10:30:41 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git

Re: [PATCH 04/13] v4l: vsp1: Repair race between frame end and qbuf handler

2016-09-14 Thread Kieran Bingham
On 14/09/16 00:16, Laurent Pinchart wrote: > From: Kieran Bingham > > The frame-end function releases and completes the buffers on the input > and output entities of the pipe before marking the pipe->state as > 'STOPPED'. This introduces a race whereby with the