Re: [PATCH 2/4] ARM: mvebu/orion: remove NO_IRQ check from device init

2016-09-14 Thread Gregory CLEMENT
ng irq) > { > orion_sata.dev.platform_data = sata_data; > - fill_resources(_sata, orion_sata_resources, > + fill_resources_irq(_sata, orion_sata_resources, > mapbase, 0x5000 - 1, irq); > > platform_device_register(_sata); > @@ -

Re: [PATCH 4/4] ARM: orion5x: remove extraneous NO_IRQ

2016-09-14 Thread Gregory CLEMENT
t spi_board_info __initdata > rd88f6183ap_ge_spi_slave_info[] = { > { > .modalias = "m25p80", > .platform_data = _ge_spi_slave_data, > - .irq= NO_IRQ, > .max_speed_hz = 2000, > .bus_num= 0, >

Re: [PATCH 3/4] ARM: orion5x: avoid NO_IRQ in orion_ge00_switch_init

2016-09-14 Thread Gregory CLEMENT
dio.dev; > - orion_switch_device.dev.platform_data = d; > > - platform_device_register(_switch_device); > + platform_device_register_data(NULL, "dsa", 0, d, sizeof(d)); > } > > > /* > diff --git a/arch/arm/plat-orion/include/plat/common.h > b/arch/arm/plat-orion/include/plat/common.h > index 8519727faa5e..9347f3c58a6d 100644 > --- a/arch/arm/plat-orion/include/plat/common.h > +++ b/arch/arm/plat-orion/include/plat/common.h > @@ -57,8 +57,7 @@ void __init orion_ge11_init(struct > mv643xx_eth_platform_data *eth_data, > unsigned long mapbase, > unsigned long irq); > > -void __init orion_ge00_switch_init(struct dsa_platform_data *d, > -int irq); > +void __init orion_ge00_switch_init(struct dsa_platform_data *d); > > void __init orion_i2c_init(unsigned long mapbase, > unsigned long irq, > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH 09/15] net: mvneta: use IS_ENABLED() instead of checking for built-in or module

2016-09-12 Thread Gregory CLEMENT
code more readable by helping abstract away some > of the Kconfig built-in and module enable details. > > Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> Acked-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Thanks, Gregory > --- > > driv

[PATCH] clk: mvebu: armada-37xx-periph: Fix the clock provider registration

2016-09-29 Thread Gregory CLEMENT
While trying using a peripheral clock on a driver, I saw that the clock pointer returned by the provider was NULL. The problem was a missing indirection. It was the pointer stored in the hws array which needed to be updated not the value it contains. Signed-off-by: Gregory CLEMENT <gregory.c

[PATCH] clk: mvebu: armada-37xx-periph: Fix the clock gate flag

2016-09-30 Thread Gregory CLEMENT
For the gate part of the peripheral clock setting the bit disables the clock and clearing it enables the clock. This is not the default behavior of clk_gate component, so we need to use the CLK_GATE_SET_TO_DISABLE flag. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.

[PATCH 3/10] mmc: sdhci: Export sdhci_execute_tuning() in sdhci.c

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_execute_tuning() from sdhci.c. Thus vendor sdhci driver can execute its own tuning process. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Signed-off-by: Gregory CLE

[PATCH 4/10] MAINTAINERS: add entry for Marvell Xenon MMC Host Controller drivers

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Add maintainer entry for Marvell Xenon eMMC/SD/SDIO Host Controller drivers. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Signed-off-by: Gregory CLEMENT <gregory.clem.

[PATCH 10/10] arm64: configs: enable SDHCI driver for Xenon

2016-10-07 Thread Gregory CLEMENT
This patch enables the driver for the SDHCI controller found on the Marvell Armada 3700 and 7K/8K ARM64 SoCs. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/arch

[PATCH 8/10] arm64: dts: marvell: add eMMC support for Armada 37xx

2016-10-07 Thread Gregory CLEMENT
Add the eMMC support for Armada 37xx SoC and enable it in the Armada 3720 DB board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 7 +++ arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11 +++ 2

[PATCH 2/10] mmc: sdhci: Export sdhci_start_signal_voltage_switch() in sdhci.c

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_start_signal_voltage_switch() from sdhci.c. Thus vendor sdhci driver can implement its own signal voltage switch routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.

[PATCH 7/10] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Marvell Xenon eMMC/SD/SDIO Host Controller contains PHY. Three types of PHYs are supported. Add support to multiple types of PHYs init and configuration. Add register definitions of PHYs. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gre

[PATCH 0/10] mmc: Add support to Marvell Xenon SD Host Controller

2016-10-07 Thread Gregory CLEMENT
rding to the guidelines provided in the SD Host Controller Standard Specification Version 3.00. Xenon SDHC IP contains PHY. There are tree types of Xenon PHY in use. Each Xenon SDHC only contain one type of PHY." Thanks, Gregory Gregory CLEMENT (3): arm64: dts: marvell: add eMMC support for A

[PATCH 9/10] arm64: dts: marvell: add sdhci support for Armada 7K/8K

2016-10-07 Thread Gregory CLEMENT
Also enable it on the Armada 7040 DB board Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 7 +++ arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 9 + 2 files changed, 16 insertions(+), 0 deletions(-)

[PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Marvell Xenon SDHC can support eMMC/SD/SDIO. Add Xenon-specific properties. Also add properties for Xenon PHY setting. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Signed-off-b

[PATCH 1/10] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2016-10-07 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_set_ios() in sdhci.c. Thus vendor sdhci driver can implement its own set_ios() routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Signed-off-by: Gregory CLE

[PATCH 6/10] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2016-10-07 Thread Gregory CLEMENT
Xenon SDHC conforms to SD Physical Layer Specification Version 3.01 and is designed according to the guidelines provided in the SD Host Controller Standard Specification Version 3.00. Signed-off-by: Hu Ziji <huz...@marvell.com> Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.

Re: [PATCH] clk: mvebu: armada-37xx-periph: Fix the clock provider registration

2016-10-07 Thread Gregory CLEMENT
Hi Stephen and Mike On jeu., sept. 29 2016, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > While trying using a peripheral clock on a driver, I saw that the clock > pointer returned by the provider was NULL. > > The problem was a missing indirection. It was

Re: [PATCH] clk: mvebu: Add clk support for the orion5x SoC mv88f5181

2016-09-21 Thread Gregory CLEMENT
Hi Stephen, On mar., sept. 20 2016, Stephen Boyd <sb...@codeaurora.org> wrote: > On 09/20, Gregory CLEMENT wrote: >> From: Jamie Lentin <j...@lentin.co.uk> >> >> Referring to the u-boot sources for the Netgear WNR854T, add support >> for the

[PATCH] clk: mvebu: Add clk support for the orion5x SoC mv88f5181

2016-09-20 Thread Gregory CLEMENT
by: Rob Herring <r...@kernel.org> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Hi Stephen and Mike, do you agree to give your acked-by on this patch. It is part of a convertion of old orion5x Socv to the device tree. If you acked-by this one, then I will

Re: [PATCH 2/2] arm64: dts: marvell: fix clocksource for CP110 slave SPI0

2016-09-20 Thread Gregory CLEMENT
a proper value. > > Fixes: c749b8d9de32 ("arm64: dts: marvell: add description for the ...") > Signed-off-by: Marcin Wojtas <m...@semihalf.com> Acked-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Could you take this patch for 4.9? I didn't realized at f

Re: [PATCH 1/2] arm64: dts: marvell: fix clocksource for CP110 master SPI0

2016-09-20 Thread Gregory CLEMENT
clocks = <_syscon0 0 3>; > + clocks = <_syscon0 1 21>; > status = "disabled"; > }; > > -- > 1.8.3.1 > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH 4/4] arm64: dts: marvell: describe the PIC and PMU on Armada 7K/8K

2016-08-26 Thread Gregory CLEMENT
reg = <0x3f0100 0x10>; > + #interrupt-cells = <1>; > + interrupt-controller; > + interrupts = ; > + }; > + > xor@40 { > compatible

Re: [Regression?] Commit cb4f71c429 deliberately changes order of network interfaces

2016-08-26 Thread Gregory CLEMENT
the last time." >> > > If you use the ordering by address as main argument for the revert there > will be nothing to argue about. > >> To be blunt, I think our best path forward is to just hold our noses >> and let it stand as is. Some will fix their userspace to a

Re: [PATCH] ARM: dts: armada-38x: Add NAND pinctrl information

2016-08-26 Thread Gregory CLEMENT
"mpp32"; > + marvell,function = "dev"; > + }; > + > uart0_pins: uart-pins-0 { > marvell,pins = "mpp0", "mpp1"; > marvell,function = "ua0"; > -- > 2.9.2.518.ged577c6.dirty > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH] ARM: dts: mvebu: fix reference to a390 spi controller

2016-08-29 Thread Gregory CLEMENT
+ "jedec,spi-nor"; > + reg = <0>; /* Chip select 0 */ > + spi-max-frequency = <10800>; > + > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > +

Re: [PATCH] arm64: dts: marvell: add unique identifiers for Armada A8k SPI controllers

2016-11-09 Thread Gregory CLEMENT
ocksource for CP110 slave SPI0" which didn't find his way to mainline yet. Thanks, Gregory > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2016-10-18 Thread Gregory CLEMENT
gt;; [...] xenon,slotno = <0>; bus-width = <8>; xenon,pad-type = "fixed-1-8v"; }; sdhci@bb { /* slot1 is an SD Card */ compatible = "marvell,armada-3700-sdhci";

Re: Build failure with v4.9-rc1 and GCC trunk -- compiler weirdness

2016-10-19 Thread Gregory CLEMENT
rate->reg = reg + (u64)rate->reg; + rate->width = order_base_2(table_size); + rate->lock = lock; + } else { + rate_hw = NULL; + rate_ops = NULL; + } } } Gregory > } > } > > > > Arnd > > ___ > linux-arm-kernel mailing list > linux-arm-ker...@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

[PATCH net-next 4/5] net: mvneta: Add network support for Armada 3700 SoC

2016-11-25 Thread Gregory CLEMENT
tation depend on the per cpu interrupts. [gregory.clem...@free-electrons.com: extract from a larger patch, replace some ifdef and port to net-next for v4.10] Signed-off-by: Marcin Wojtas <m...@semihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Docume

[PATCH net-next 2/5] net: mvneta: Convert to be 64 bits compatible

2016-11-25 Thread Gregory CLEMENT
ihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/mvneta.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c

[PATCH net-next 3/5] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-25 Thread Gregory CLEMENT
Actually only the mvneta_bm support is not 64-bits compatible. The mvneta code itself can run on 64-bits architecture. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH net-next 1/5] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-25 Thread Gregory CLEMENT
(no more need to use the DMA API). Thanks to this, it is possible to use cache contrary to the access of the rx descriptor member. The change is done in the swbm path only because the hwbm uses the cookie field, this also means that currently the hwbm is not usable in 64-bits. Signed-off-by: Gregory

[PATCH net-next 0/5] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver

2016-11-25 Thread Gregory CLEMENT
by patch 4. In patch 5 the dt support is added. Beside Armada 37xx, the series have been tested on Armada XP and Armada 38x (with Hardware Buffer Management and with Software Buffer Managment). Thanks, Gregory Gregory CLEMENT (3): net: mvneta: Use cacheable memory to store the rx buffer

[PATCH net-next 5/5] ARM64: dts: marvell: Add network support for Armada 3700

2016-11-25 Thread Gregory CLEMENT
Add neta nodes for network support both in device tree for the SoC and the board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 23 +++- arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Re: [PATCH 0/10] mmc: Add support to Marvell Xenon SD Host Controller

2016-11-23 Thread Gregory CLEMENT
Hi Ulf, On lun., oct. 31 2016, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > Hello, > > This the second version of the series adding support for the SDHCI > Xenon controller. It can be currently found on the Armada 37xx and the > Armada 7K/8K but will

Re: [PATCH net-next 1/4] net: mvneta: Convert to be 64 bits compatible

2016-11-23 Thread Gregory CLEMENT
vember 22, 2016 5:48:41 PM CET Gregory CLEMENT wrote: >> > > +#ifdef CONFIG_64BIT >> > > + void *data_tmp; >> > > + >> > > + /* In Neta HW only 32 bits data is supported, so in order to >> > > +* obtain whole 64 bits addre

Re: [PATCH net-next] marvell: mark mvneta and mvpp2 32-bit only

2016-11-22 Thread Gregory CLEMENT
---help--- > @@ -81,6 +82,7 @@ config MVPP2 > tristate "Marvell Armada 375 network interface support" > depends on MACH_ARMADA_375 || COMPILE_TEST > depends on HAS_DMA > + depends on !64BIT > select MVMDIO > ---help--- > T

[PATCH] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-22 Thread Gregory CLEMENT
Actually only the mvneta_bm support is not 64-bits compatible. The mvneta code itself can run on 64-bits architecture. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-22 Thread Gregory CLEMENT
Hi, On mar., nov. 22 2016, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > Actually only the mvneta_bm support is not 64-bits compatible. > The mvneta code itself can run on 64-bits architecture. I have just realized that my topic prefix was wrong (net-next was mi

[PATCH net-next] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-22 Thread Gregory CLEMENT
Actually only the mvneta_bm support is not 64-bits compatible. The mvneta code itself can run on 64-bits architecture. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH net-next] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-22 Thread Gregory CLEMENT
Hi David, On mar., nov. 22 2016, David Miller <da...@davemloft.net> wrote: > From: Gregory CLEMENT <gregory.clem...@free-electrons.com> > Date: Tue, 22 Nov 2016 17:00:37 +0100 > >> Actually only the mvneta_bm support is not 64-bits compatible. >> The mvne

Re: [PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2016-11-22 Thread Gregory CLEMENT
ke the implementation which put multiple slots behind PCIe EP > interface. sdhci-pci.c will handle each slot init one by one. > If Xenon SDHC slots are represented as child nodes, there should also > be a main entry in Xenon driver to init each child node one by one. > In my very own opinion, it is inconvenient and unnecessary. Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

[PATCH net-next 0/4] Extend mvneta to support Armada 3700 (ARM 64)

2016-11-22 Thread Gregory CLEMENT
related to the Armada 3700 SoC. The main one being the used of shared interrupt instead of the private ones. It has been addressed in the 3rd patch. Not all the feature supported on the older Soc have been ported yet for this new SoC. Gregory CLEMENT (2): net: mvneta: Only disable mvneta_bm for 64

[PATCH net-next 3/4] net: mvneta: Add network support for Armada 3700 SoC

2016-11-22 Thread Gregory CLEMENT
tation depend on precpu interrupt. [gregory.clem...@free-electrons.com: extract from a larger patch, replace some ifdef and port to net-next for v4.10] Signed-off-by: Marcin Wojtas <m...@semihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- .../bindings/net/

[PATCH net-next 2/4] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-22 Thread Gregory CLEMENT
Actually only the mvneta_bm support is not 64-bits compatible. The mvneta code itself can run on 64-bits architecture. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH net-next 4/4] ARM64: dts: marvell: Add network support for Armada 3700

2016-11-22 Thread Gregory CLEMENT
Add neta nodes for network support both in device tree for the SoC and the board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 23 +++ arch/arm64/boot/dts/marvell/armada-37xx.dtsi

[PATCH net-next 1/4] net: mvneta: Convert to be 64 bits compatible

2016-11-22 Thread Gregory CLEMENT
ihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/mvneta.c | 77 --- 1 file changed, 71 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/etherne

Re: [PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2016-11-24 Thread Gregory CLEMENT
ns to encapsulate multiple MMC host controllers, and possibly > provides some shared registers to them. I don't have an option for mmc in general, but using child node do not fit at all the xenon controller. For this controller each slot has its own set of register, so there is no common resso

Re: [PATCH net-next 1/5] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-28 Thread Gregory CLEMENT
Hi Jisheng, On lun., nov. 28 2016, Jisheng Zhang <jszh...@marvell.com> wrote: > Hi Gregory, > > On Fri, 25 Nov 2016 16:30:14 +0100 Gregory CLEMENT wrote: > >> Until now the virtual address of the received buffer were stored in the >> cookie field of the rx descrip

Re: [PATCH net-next 1/4] net: mvneta: Convert to be 64 bits compatible

2016-11-24 Thread Gregory CLEMENT
ecommend using READ_ONCE()/WRITE_ONCE() > to access the descriptor fields, to ensure the compiler doesn't > add extra references as well as to annotate the expensive > operations. > > Arnd -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH] bus: mvebu-mbus: fix iounmap() in error path

2016-11-18 Thread Gregory CLEMENT
1113 > > Although all mvebu_mbus_common_init() callers seem to actually use > _state in the 1st argument, this is still a bug that could be > triggered by future changes. > > Signed-off-by: Luis Henriques <hen...@camandro.org> Acked-by: Gregory CLEMENT <gregory.clem...@free

[PATCH 3/10] mmc: sdhci: Export sdhci_execute_tuning() in sdhci.c

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_execute_tuning() from sdhci.c. Thus vendor sdhci driver can execute its own tuning process. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mm

[PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Marvell Xenon SDHC can support eMMC/SD/SDIO. Add Xenon-specific properties. Also add properties for Xenon PHY setting. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Docume

[PATCH 7/10] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Marvell Xenon eMMC/SD/SDIO Host Controller contains PHY. Three types of PHYs are supported. Add support to multiple types of PHYs init and configuration. Add register definitions of PHYs. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off

[PATCH 8/10] arm64: dts: marvell: add eMMC support for Armada 37xx

2016-10-31 Thread Gregory CLEMENT
Add the eMMC support for Armada 37xx SoC and enable it in the Armada 3720 DB board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 8 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11 +++ 2

[PATCH 0/10] mmc: Add support to Marvell Xenon SD Host Controller

2016-10-31 Thread Gregory CLEMENT
uirks SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 in Xenon platform data Add support to HS400 retuning." I think the main open point which remains is about issuing commands from the ->set_ios() callback (in patch 7). Ulf, could you comment about it? Thanks, Gregory Gregory CLEMENT (3): arm64: dts: marvell: add

[PATCH 2/10] mmc: sdhci: Export sdhci_start_signal_voltage_switch() in sdhci.c

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_start_signal_voltage_switch() from sdhci.c. Thus vendor sdhci driver can implement its own signal voltage switch routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.co

[PATCH 10/10] arm64: configs: enable SDHCI driver for Xenon

2016-10-31 Thread Gregory CLEMENT
This patch enables the driver for the SDHCI controller found on the Marvell Armada 3700 and 7K/8K ARM64 SoCs. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/arch

[PATCH 6/10] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2016-10-31 Thread Gregory CLEMENT
Xenon SDHC conforms to SD Physical Layer Specification Version 3.01 and is designed according to the guidelines provided in the SD Host Controller Standard Specification Version 3.00. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@fre

[PATCH 1/10] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Export sdhci_set_ios() in sdhci.c. Thus vendor sdhci driver can implement its own set_ios() routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mmc/host/sdhci.

[PATCH 9/10] arm64: dts: marvell: add sdhci support for Armada 7K/8K

2016-10-31 Thread Gregory CLEMENT
Also enable it on the Armada 7040 DB board Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 8 arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 9 + 2 files changed, 17 insertions(+), 0 deletions(-)

[PATCH 4/10] MAINTAINERS: add entry for Marvell Xenon MMC Host Controller drivers

2016-10-31 Thread Gregory CLEMENT
From: Ziji Hu <huz...@marvell.com> Add maintainer entry for Marvell Xenon eMMC/SD/SDIO Host Controller drivers. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- MAINTAINERS | 5 + 1 file changed, 5 insertio

Re: [PATCH] ARM: mvebu: Update comment for main PLL frequency

2016-11-04 Thread Gregory CLEMENT
rch/arm/boot/dts/armada-39x.dtsi > index 34cba87f9200..de171baffcf6 100644 > --- a/arch/arm/boot/dts/armada-39x.dtsi > +++ b/arch/arm/boot/dts/armada-39x.dtsi > @@ -573,7 +573,7 @@ > }; > > clocks { > - /* 2 GHz fixed main PLL */ > + /* 1 GHz fixed

Re: [PATCH 0/10] mmc: Add support to Marvell Xenon SD Host Controller

2016-11-04 Thread Gregory CLEMENT
Hi, On lun., oct. 31 2016, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > Hello, > > This the second version of the series adding support for the SDHCI > Xenon controller. It can be currently found on the Armada 37xx and the > Armada 7K/8K but will be also

Re: [PATCH] ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show()

2016-10-17 Thread Gregory CLEMENT
s, " edge "); > + seq_puts(s, " edge "); > if (lvl_msk & msk) > - seq_printf(s, " level"); > + seq_puts(s, " level"); > seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear "); > } > } > -- > 2.10.1 > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

[PATCH v3 net-next 0/6] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver

2016-11-29 Thread Gregory CLEMENT
by patch 4. In patch 5 the dt support is added. Beside Armada 37xx, the series have been tested on Armada XP and Armada 38x (with Hardware Buffer Management and with Software Buffer Managment). Thanks, Gregory Gregory CLEMENT (4): net: mvneta: Optimize rx path for small frame net: mvneta

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas <m...@semihalf.com> wrote: > Gregory, > > 2016-11-29 11:19 GMT+01:00 Gregory CLEMENT > <gregory.clem...@free-electrons.com>: >> Hi Marcin, >> >> On mar., nov. 29 2016, Marcin Wojtas <m...@semihalf.c

[PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
(no more need to use the DMA API). Thanks to this, it is possible to use cache contrary to the access of the rx descriptor member. The change is done in the swbm path only because the hwbm uses the cookie field, this also means that currently the hwbm is not usable in 64-bits. Signed-off-by: Gregory

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas <m...@semihalf.com> wrote: > Hi Gregory, > > Another remark below, sorry for noise. > > 2016-11-29 10:37 GMT+01:00 Gregory CLEMENT > <gregory.clem...@free-electrons.com>: >> Until now the virtual addres

[PATCH v3 net-next 6/6] ARM64: dts: marvell: Add network support for Armada 3700

2016-11-29 Thread Gregory CLEMENT
Add neta nodes for network support both in device tree for the SoC and the board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 23 +++- arch/arm64/boot/dts/marvell/armada-37xx.dtsi

[PATCH v3 net-next 5/6] net: mvneta: Add network support for Armada 3700 SoC

2016-11-29 Thread Gregory CLEMENT
tation depend on the per cpu interrupts. [gregory.clem...@free-electrons.com: extract from a larger patch, replace some ifdef and port to net-next for v4.10] Signed-off-by: Marcin Wojtas <m...@semihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Docume

[PATCH v3 net-next 3/6] net: mvneta: Convert to be 64 bits compatible

2016-11-29 Thread Gregory CLEMENT
ihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/mvneta.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c

[PATCH v3 net-next 1/6] net: mvneta: Optimize rx path for small frame

2016-11-29 Thread Gregory CLEMENT
For small frame reuse the phys_addr variable instead of accessing the uncacheable value in the rx descriptor. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH v3 net-next 4/6] net: mvneta: Only disable mvneta_bm for 64-bits

2016-11-29 Thread Gregory CLEMENT
Actually only the mvneta_bm support is not 64-bits compatible. The mvneta code itself can run on 64-bits architecture. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/ethernet/marvell/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH v3 net-next 0/6] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver

2016-11-29 Thread Gregory CLEMENT
Hi, On mar., nov. 29 2016, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > Hi, > > The Armada 37xx is a new ARMv8 SoC from Marvell using same network > controller as the older Armada 370/38x/XP SoCs. This series adapts the > driver in order to be able to u

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas <m...@semihalf.com> wrote: > Hi Gregory, > > Apparently HWBM had a mistake in implementation, please see below. > > 2016-11-29 10:37 GMT+01:00 Gregory CLEMENT > <gregory.clem...@free-electrons.com>: &g

Re: [PATCH 0/4] ARM64: dts: marvell: fix license text

2016-12-15 Thread Gregory CLEMENT
++- > 4 files changed, 20 insertions(+), 20 deletions(-) > > -- > 2.10.2 > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH] soc: dove: constify reset_control_ops structures

2017-01-13 Thread Gregory CLEMENT
Hi Russell King, On ven., janv. 13 2017, Russell King - ARM Linux <li...@armlinux.org.uk> wrote: > On Fri, Jan 13, 2017 at 05:36:42PM +0100, Gregory CLEMENT wrote: >> Hi Sebastian, >> >> On lun., janv. 09 2017, Bhumika Goyal <bhumi...@gmail.com> wrote: &

Re: [PATCH] soc: dove: constify reset_control_ops structures

2017-01-13 Thread Gregory CLEMENT
tic struct reset_control_ops pmu_reset_ops = { > +static const struct reset_control_ops pmu_reset_ops = { > .reset = pmu_reset_reset, > .assert = pmu_reset_assert, > .deassert = pmu_reset_deassert, > -- > 1.9.1 > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH] ARM: mv78xx0: fix possible PCI buffer overflow

2017-01-13 Thread Gregory CLEMENT
+ b/arch/arm/mach-mv78xx0/pcie.c > @@ -29,7 +29,7 @@ struct pcie_port { > u8 root_bus_nr; > void __iomem*base; > spinlock_t conf_lock; > - charmem_space_name[16]; > + charmem_spac

[PATCH v5 06/12] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2017-01-11 Thread Gregory CLEMENT
Xenon SDHC conforms to SD Physical Layer Specification Version 3.01 and is designed according to the guidelines provided in the SD Host Controller Standard Specification Version 3.00. Signed-off-by: Hu Ziji <huz...@marvell.com> Tested-by: Russell King <rmk+ker...@armlinux.org.uk> Sign

[PATCH v5 09/12] MAINTAINERS: add entry for Marvell Xenon MMC Host Controller drivers

2017-01-11 Thread Gregory CLEMENT
From: Hu Ziji <huz...@marvell.com> Add maintainer entry for Marvell Xenon eMMC/SD/SDIO Host Controller drivers. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 i

[PATCH v5 04/12] mmc: sdhci: Export sdhci_enable_sdio_irq() from sdhci.c

2017-01-11 Thread Gregory CLEMENT
From: Hu Ziji <huz...@marvell.com> Export sdhci_enable_sdio_irq() from sdhci.c. Thus vendor SDHC driver can implement its specific SDIO irq control. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mm

[PATCH v5 03/12] mmc: sdhci: Export sdhci_start_signal_voltage_switch() in sdhci.c

2017-01-11 Thread Gregory CLEMENT
From: Hu Ziji <huz...@marvell.com> Export sdhci_start_signal_voltage_switch() from sdhci.c. Thus vendor sdhci driver can implement its own signal voltage switch routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.co

[PATCH v5 02/12] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2017-01-11 Thread Gregory CLEMENT
From: Hu Ziji <huz...@marvell.com> Export sdhci_set_ios() in sdhci.c. Thus vendor sdhci driver can implement its own set_ios() routine. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mmc/host/sdhci.

[PATCH v5 00/12] mmc: Add support to Marvell Xenon SD Host Controller

2017-01-11 Thread Gregory CLEMENT
ot; Changes in V2: rebase on v4.9-rc2. Re-write Xenon bindings. Ajust Xenon DT property naming. Add a new DT property to indicate eMMC card type, instead of using variable card_candidate. Clear quirks SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 in Xenon platform data Add support to HS400 retuni

[PATCH v5 07/12] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC.

2017-01-11 Thread Gregory CLEMENT
lement Xenon PHY in MMC host directory. Signed-off-by: Hu Ziji <huz...@marvell.com> Tested-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mmc/host/Makefile | 2 +- drivers/mmc/host

[PATCH v5 08/12] mmc: sdhci-xenon: Add SoC PHY PAD voltage control

2017-01-11 Thread Gregory CLEMENT
m> Tested-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mmc/host/sdhci-xenon-phy.c | 116 +- drivers/mmc/host/sdhci-xenon.c | 2 +- drivers/mmc/host/sdhci-xenon.h | 2

[PATCH v5 10/12] arm64: dts: marvell: add eMMC support for Armada 37xx

2017-01-11 Thread Gregory CLEMENT
Add the eMMC support for Armada 37xx SoC and enable it in the Armada 3720 DB board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 16 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11

[PATCH v5 01/12] clk: apn806: Add eMMC clock to system controller driver

2017-01-11 Thread Gregory CLEMENT
lt;han...@marvell.com> [fixed up conflicts, added error handling --rmk] Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 3 ++- drivers/clk/mv

[PATCH v5 12/12] arm64: configs: enable SDHCI driver for Xenon

2017-01-11 Thread Gregory CLEMENT
This patch enables the driver for the SDHCI controller found on the Marvell Armada 3700 and 7K/8K ARM64 SoCs. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defco

[PATCH v5 11/12] arm64: dts: marvell: add sdhci support for Armada 7K/8K

2017-01-11 Thread Gregory CLEMENT
Also enable it on the Armada 7040 DB board Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 14 +- arch/arm64/boot/dts/marvell/armada-ap806.dtsi| 10 +- arch/arm64/boot/dts/marvell/

[PATCH v5 05/12] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2017-01-11 Thread Gregory CLEMENT
From: Hu Ziji <huz...@marvell.com> Marvell Xenon SDHC can support eMMC/SD/SDIO. Add Xenon-specific properties. Also add properties for Xenon PHY setting. Signed-off-by: Hu Ziji <huz...@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Docume

Re: [PATCH v5 net-next 0/7] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver

2016-12-01 Thread Gregory CLEMENT
anks, I am going to send a new version with tour tested-by and the dts fix for the second port. Gregory > > Best regards, > Marcin > > 2016-11-30 22:42 GMT+01:00 Gregory CLEMENT > <gregory.clem...@free-electrons.com>: >> Hi, >> >> The Armada 37xx is a new ARM

[PATCH v6 net-next 0/7] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver

2016-12-01 Thread Gregory CLEMENT
is introduced. - Move the memory allocation of the buf_virt_addr of the rxq to be called by the probe function in order to avoid a memory leak. Thanks, Gregory Gregory CLEMENT (5): net: mvneta: Optimize rx path for small frame net: mvneta: Do not allocate buffer in rxq init with HWBM net: mvneta: Use ca

[PATCH v6 net-next 2/7] net: mvneta: Do not allocate buffer in rxq init with HWBM

2016-12-01 Thread Gregory CLEMENT
For HWBM all buffers are allocated in mvneta_bm_construct() and in runtime they are put into descriptors by hardware. There is no need to fill them at this point. Suggested-by: Marcin Wojtas <m...@semihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Teste

[PATCH v6 net-next 7/7] ARM64: dts: marvell: Add network support for Armada 3700

2016-12-01 Thread Gregory CLEMENT
Add neta nodes for network support both in device tree for the SoC and the board. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 23 +++- arch/arm64/boot/dts/marvell/armada-37xx.dtsi

[PATCH v6 net-next 1/7] net: mvneta: Optimize rx path for small frame

2016-12-01 Thread Gregory CLEMENT
For small frame reuse the phys_addr variable instead of accessing the uncacheable value in the rx descriptor. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Tested-by: Marcin Wojtas <m...@semihalf.com> --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 fil

[PATCH v6 net-next 4/7] net: mvneta: Convert to be 64 bits compatible

2016-12-01 Thread Gregory CLEMENT
ihalf.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Tested-by: Marcin Wojtas <m...@semihalf.com> --- drivers/net/ethernet/marvell/mvneta.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell

<    6   7   8   9   10   11   12   13   14   15   >