[PATCH 2/2] pinctrl: at91-pio4: irq argument as been removed from irq flow handlers

2015-09-28 Thread Ludovic Desroches
Irq argument as been removed from irq flow handlers so use the irq descriptor to retrieve data we need. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91-pio4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b

[PATCH 0/2] Fixes for next

2015-09-28 Thread Ludovic Desroches
Hi Stephen, Linus, Here are fixes for next. I did the at91-pio4 patches on top of next-20150916 which doesn't contain some tglx's updates about irqs. Ludovic Desroches (2): pinctrl: at91-pio4: use irq_set_handler_locked pinctrl: at91-pio4: irq argument as been removed from irq flow

[PATCH 1/2] pinctrl: at91-pio4: use irq_set_handler_locked

2015-09-28 Thread Ludovic Desroches
Use irq_set_handler_locked() as it avoids a redundant lookup of the irq descriptor. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/pinctrl/pinctrl-at91-pio4.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctr

[PATCH 2/2] pinctrl: at91-pio4: irq argument as been removed from irq flow handlers

2015-09-28 Thread Ludovic Desroches
Irq argument as been removed from irq flow handlers so use the irq descriptor to retrieve data we need. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/pinctrl/pinctrl-at91-pio4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/p

[PATCH 0/2] Fixes for next

2015-09-28 Thread Ludovic Desroches
Hi Stephen, Linus, Here are fixes for next. I did the at91-pio4 patches on top of next-20150916 which doesn't contain some tglx's updates about irqs. Ludovic Desroches (2): pinctrl: at91-pio4: use irq_set_handler_locked pinctrl: at91-pio4: irq argument as been removed from irq flow

Re: [PATCH 0/2] Fixes for next

2015-09-28 Thread Ludovic Desroches
Sorry I have forgotten: --in-reply-to=20150925133410.3c9e2...@canb.auug.org.au (linux-next: build failure after merge of the pinctrl tree) On Mon, Sep 28, 2015 at 11:41:11AM +0200, Ludovic Desroches wrote: > Hi Stephen, Linus, > > Here are fixes for next. I did the at91-pio4 patch

[PATCH] pinctrl: at91-pio4: add PM stuff

2015-09-25 Thread Ludovic Desroches
Allow GPIOs to be configured as wakeup sources. When going to suspend, disable all GPIO irqs excepting the one configured as wakeup sources. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91-pio4.c | 76 + 1 file changed, 76 insertions

[PATCH] pinctrl: at91-pio4: add PM stuff

2015-09-25 Thread Ludovic Desroches
Allow GPIOs to be configured as wakeup sources. When going to suspend, disable all GPIO irqs excepting the one configured as wakeup sources. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/pinctrl/pinctrl-at91-pio4.c | 76 +

[tip:irq/core] irqchip/atmel-aic5: Use explicit variable name for the base chip

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: 414a431ad6217a03e561fcb199048141db3fc024 Gitweb: http://git.kernel.org/tip/414a431ad6217a03e561fcb199048141db3fc024 Author: Ludovic Desroches AuthorDate: Mon, 21 Sep 2015 15:46:05 +0200 Committer: Thomas Gleixner CommitDate: Tue, 22 Sep 2015 16:04:42 +0200 irqchip/atmel

Re: [PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-22 Thread Ludovic Desroches
On Tue, Sep 22, 2015 at 03:50:30PM +0200, Thomas Gleixner wrote: > On Tue, 22 Sep 2015, Boris Brezillon wrote: > > On Tue, 22 Sep 2015 12:27:08 +0200 (CEST) > > Thomas Gleixner wrote: > > > Why is this locking dgc->gc[0] and fiddling with some other generic > > > chip? > > > > Actually, we

[tip:irq/core] irqchip/atmel-aic5: Simplify base chip selection

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: b55a3bb8650ddb096624175c55176d7fdbcad4ae Gitweb: http://git.kernel.org/tip/b55a3bb8650ddb096624175c55176d7fdbcad4ae Author: Ludovic Desroches AuthorDate: Mon, 21 Sep 2015 15:46:06 +0200 Committer: Thomas Gleixner CommitDate: Tue, 22 Sep 2015 16:04:43 +0200 irqchip/atmel

[tip:irq/urgent] irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: d32dc9aa10c739363c775baf4499416b2e0dc11f Gitweb: http://git.kernel.org/tip/d32dc9aa10c739363c775baf4499416b2e0dc11f Author: Ludovic Desroches AuthorDate: Mon, 21 Sep 2015 15:46:04 +0200 Committer: Thomas Gleixner CommitDate: Tue, 22 Sep 2015 15:55:51 +0200 irqchip/atmel

[tip:irq/urgent] irqchip/atmel-aic5: Use proper mask cache in mask/unmask()

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: 478cc7b33413a4ad50852239d931d55e622f1cde Gitweb: http://git.kernel.org/tip/478cc7b33413a4ad50852239d931d55e622f1cde Author: Ludovic Desroches AuthorDate: Mon, 21 Sep 2015 15:46:04 +0200 Committer: Thomas Gleixner CommitDate: Tue, 22 Sep 2015 12:25:12 +0200 irqchip/atmel

[tip:irq/urgent] irqchip/atmel-aic5: Use proper mask cache in mask/unmask()

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: 478cc7b33413a4ad50852239d931d55e622f1cde Gitweb: http://git.kernel.org/tip/478cc7b33413a4ad50852239d931d55e622f1cde Author: Ludovic Desroches <ludovic.desroc...@atmel.com> AuthorDate: Mon, 21 Sep 2015 15:46:04 +0200 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:irq/urgent] irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: d32dc9aa10c739363c775baf4499416b2e0dc11f Gitweb: http://git.kernel.org/tip/d32dc9aa10c739363c775baf4499416b2e0dc11f Author: Ludovic Desroches <ludovic.desroc...@atmel.com> AuthorDate: Mon, 21 Sep 2015 15:46:04 +0200 Committer: Thomas Gleixner <t...@linutronix.de>

Re: [PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-22 Thread Ludovic Desroches
On Tue, Sep 22, 2015 at 03:50:30PM +0200, Thomas Gleixner wrote: > On Tue, 22 Sep 2015, Boris Brezillon wrote: > > On Tue, 22 Sep 2015 12:27:08 +0200 (CEST) > > Thomas Gleixner wrote: > > > Why is this locking dgc->gc[0] and fiddling with some other generic > > > chip? > > >

[tip:irq/core] irqchip/atmel-aic5: Use explicit variable name for the base chip

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: 414a431ad6217a03e561fcb199048141db3fc024 Gitweb: http://git.kernel.org/tip/414a431ad6217a03e561fcb199048141db3fc024 Author: Ludovic Desroches <ludovic.desroc...@atmel.com> AuthorDate: Mon, 21 Sep 2015 15:46:05 +0200 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:irq/core] irqchip/atmel-aic5: Simplify base chip selection

2015-09-22 Thread tip-bot for Ludovic Desroches
Commit-ID: b55a3bb8650ddb096624175c55176d7fdbcad4ae Gitweb: http://git.kernel.org/tip/b55a3bb8650ddb096624175c55176d7fdbcad4ae Author: Ludovic Desroches <ludovic.desroc...@atmel.com> AuthorDate: Mon, 21 Sep 2015 15:46:06 +0200 Committer: Thomas Gleixner <t...@linutronix.de>

[PATCH 2/3] irqchip: atmel-aic5: fix variable naming

2015-09-21 Thread Ludovic Desroches
To avoid errors, use an explicit variable name when accessing the 'base' generic chip. Signed-off-by: Ludovic Desroches --- drivers/irqchip/irq-atmel-aic5.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/irqchip/irq-atmel

[PATCH 3/3] irqchip: atmel-aic5: simplify base chip selection

2015-09-21 Thread Ludovic Desroches
Use irq_get_domain_generic_chip() to select the base chip. Signed-off-by: Ludovic Desroches --- drivers/irqchip/irq-atmel-aic5.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c

[PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-21 Thread Ludovic Desroches
-by: Ludovic Desroches Fixes: b1479ebb7720 ("irqchip: atmel-aic: Add atmel AIC/AIC5 drivers") Cc: sta...@vger.kernel.org #3.18 --- Sasha, This fix won't apply without conflicts because of irq_reg_writel changes. I can provide you a fix for 3.18 if you need. Regards Ludovic drivers/irqchip

[PATCH 2/3] irqchip: atmel-aic5: fix variable naming

2015-09-21 Thread Ludovic Desroches
To avoid errors, use an explicit variable name when accessing the 'base' generic chip. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/irqchip/irq-atmel-aic5.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff

[PATCH 3/3] irqchip: atmel-aic5: simplify base chip selection

2015-09-21 Thread Ludovic Desroches
Use irq_get_domain_generic_chip() to select the base chip. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/irqchip/irq-atmel-aic5.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/irqchip/irq-atmel-ai

[PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-21 Thread Ludovic Desroches
-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Fixes: b1479ebb7720 ("irqchip: atmel-aic: Add atmel AIC/AIC5 drivers") Cc: sta...@vger.kernel.org #3.18 --- Sasha, This fix won't apply without conflicts because of irq_reg_writel changes. I can provide you a fix for 3.18 if you need.

[PATCH 2/2] mmc: sdhci-of-at91: use SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST quirk

2015-09-17 Thread Ludovic Desroches
The Atmel sdhci device needs the SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST quirk. Without it, the internal clock could never stabilised when changing the sd clock frequency. Signed-off-by: Ludovic Desroches --- drivers/mmc/host/sdhci-of-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] mmc: sdhci: add quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST

2015-09-17 Thread Ludovic Desroches
of the internal clock, so a delay is needed. This delay is about 2-3 cycles of the base clock. To be safe, a 1 ms delay is used. Signed-off-by: Ludovic Desroches --- Hi Ulf, Can you take these patches as fixes? I thought it was better to introduce a quirk instead of duplicating a part

[PATCH 2/2] mmc: sdhci-of-at91: use SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST quirk

2015-09-17 Thread Ludovic Desroches
The Atmel sdhci device needs the SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST quirk. Without it, the internal clock could never stabilised when changing the sd clock frequency. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/mmc/host/sdhci-of-at91.c | 1 + 1 file c

[PATCH 1/2] mmc: sdhci: add quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST

2015-09-17 Thread Ludovic Desroches
of the internal clock, so a delay is needed. This delay is about 2-3 cycles of the base clock. To be safe, a 1 ms delay is used. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- Hi Ulf, Can you take these patches as fixes? I thought it was better to introduce a quirk i

[PATCH v2 7/7] ARM: at91/dt: sama5d2 Xplained: add device pin muxing

2015-09-16 Thread Ludovic Desroches
Add device pin muxing for the sama5d2 Xplained board. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91

[PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux

2015-09-16 Thread Ludovic Desroches
Add sama5d2 pin descriptions. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2-pinfunc.h | 880 1 file changed, 880 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/arm/boot/dts/sama5d2-pinfunc.h b/arch

[PATCH v2 5/7] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-09-16 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm

[PATCH v2 3/7] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-09-16 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 169ad39..ec41bfe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8166,6 +8166,13 @@ L: linux-arm

[PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

2015-09-16 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 034cd48..cc05cde 100644 --- a/arch

[PATCH v2 2/7] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-09-16 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches Acked-by: Sascha Hauer --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1 file changed, 90 insertions(+) create mode 100644 Documentation

[PATCH v2 1/7] pinctrl: introduce driver for Atmel PIO4 controller

2015-09-16 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c | 1017

[PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver

2015-09-16 Thread Ludovic Desroches
, gpio_disable_free and gpio_set_direction). - code styling fixes. - add sama5d2 pin description and device pin muxing. Ludovic Desroches (7): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4 MAINTAINERS: Add an entry for pinctrl-at91-pio4

[PATCH v2 1/7] pinctrl: introduce driver for Atmel PIO4 controller

2015-09-16 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c

[PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver

2015-09-16 Thread Ludovic Desroches
, gpio_disable_free and gpio_set_direction). - code styling fixes. - add sama5d2 pin description and device pin muxing. Ludovic Desroches (7): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4 MAINTAINERS: Add an entry for pinctrl-at91-pio4

[PATCH v2 5/7] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-09-16 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/ar

[PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux

2015-09-16 Thread Ludovic Desroches
Add sama5d2 pin descriptions. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2-pinfunc.h | 880 1 file changed, 880 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/ar

[PATCH v2 7/7] ARM: at91/dt: sama5d2 Xplained: add device pin muxing

2015-09-16 Thread Ludovic Desroches
Add device pin muxing for the sama5d2 Xplained board. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.

[PATCH v2 2/7] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-09-16 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Acked-by: Sascha Hauer <s.ha...@pengutronix.de> --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1

[PATCH v2 3/7] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-09-16 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 169ad39..ec41bfe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

2015-09-16 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 0

[PATCH 4/4] dmaengine: at_xdmac: clean used descriptor

2015-09-15 Thread Ludovic Desroches
When putting back a descriptor to the free descs list, some fields are not set to 0, it can cause bugs if someone uses it without having this in mind. Descriptor are not put back one by one so it is easier to clean descriptors when we request them. Signed-off-by: Ludovic Desroches Cc: sta

[PATCH 3/4] dmaengine: at_xdmac: fix memory leak in interleaved mode

2015-09-15 Thread Ludovic Desroches
In interleaved mode, when numf > 1, we have only one descriptor for the transfer but this descriptor has to be added to the descs_list. If not, when doing remove_xfer, the descriptor won't be put back in the free_descs_list. Signed-off-by: Ludovic Desroches --- drivers/dma/at_xdmac.c

[PATCH 2/4] dmaengine: at_xdmac: change block increment addressing mode

2015-09-15 Thread Ludovic Desroches
to get back to an acceptable performance level. Signed-off-by: Maxime Ripard Signed-off-by: Ludovic Desroches Fixes: 6007ccb57744 ("dmaengine: xdmac: Add interleaved transfer support") Cc: sta...@vger.kernel.org #4.2 --- drivers/dma/at_xdmac.c | 4 ++-- 1 file changed, 2 insert

[PATCH 1/4] dmaengine: at_xdmac: handle numf > 1

2015-09-15 Thread Ludovic Desroches
From: Maxime Ripard Handle 'numf > 1' case for interleaved mode. Signed-off-by: Maxime Ripard Signed-off-by: Ludovic Desroches --- drivers/dma/at_xdmac.c | 104 - 1 file changed, 50 insertions(+), 54 deletions(-) diff --git a/drivers/

[PATCH 0/4] at_xdmac: improvment and fixes for the interleaved mode

2015-09-15 Thread Ludovic Desroches
> 1' patch. Can you check if I have not done a mistake. Thanks. Regards Ludovic Desroches (2): dmaengine: at_xdmac: fix memory leak in interleaved mode dmaengine: at_xdmac: clean used descriptor Maxime Ripard (2): dmaengine: at_xdmac: handle numf > 1 dmaengine: at_xdmac: change block

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-15 Thread Ludovic Desroches
Hi Sascha, On Tue, Sep 15, 2015 at 10:57:03AM +0200, Sascha Hauer wrote: > Hi Ludovic, > > On Mon, Sep 07, 2015 at 03:12:10PM +0200, Ludovic Desroches wrote: > > Hi Sascha, > > > > Any comments about this version? Maybe you missed it since you answered > > me o

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-15 Thread Ludovic Desroches
Hi Sascha, On Tue, Sep 15, 2015 at 10:57:03AM +0200, Sascha Hauer wrote: > Hi Ludovic, > > On Mon, Sep 07, 2015 at 03:12:10PM +0200, Ludovic Desroches wrote: > > Hi Sascha, > > > > Any comments about this version? Maybe you missed it since you answered > > me o

[PATCH 0/4] at_xdmac: improvment and fixes for the interleaved mode

2015-09-15 Thread Ludovic Desroches
> 1' patch. Can you check if I have not done a mistake. Thanks. Regards Ludovic Desroches (2): dmaengine: at_xdmac: fix memory leak in interleaved mode dmaengine: at_xdmac: clean used descriptor Maxime Ripard (2): dmaengine: at_xdmac: handle numf > 1 dmaengine: at_xdmac: change block

[PATCH 1/4] dmaengine: at_xdmac: handle numf > 1

2015-09-15 Thread Ludovic Desroches
From: Maxime Ripard <maxime.rip...@free-electrons.com> Handle 'numf > 1' case for interleaved mode. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers

[PATCH 2/4] dmaengine: at_xdmac: change block increment addressing mode

2015-09-15 Thread Ludovic Desroches
Switch to the micro block increment only in order to get back to an acceptable performance level. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Fixes: 6007ccb57744 ("dmaengine: xdmac: Add interleaved tra

[PATCH 3/4] dmaengine: at_xdmac: fix memory leak in interleaved mode

2015-09-15 Thread Ludovic Desroches
In interleaved mode, when numf > 1, we have only one descriptor for the transfer but this descriptor has to be added to the descs_list. If not, when doing remove_xfer, the descriptor won't be put back in the free_descs_list. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atm

[PATCH 4/4] dmaengine: at_xdmac: clean used descriptor

2015-09-15 Thread Ludovic Desroches
When putting back a descriptor to the free descs list, some fields are not set to 0, it can cause bugs if someone uses it without having this in mind. Descriptor are not put back one by one so it is easier to clean descriptors when we request them. Signed-off-by: Ludovic Desroches <ludovic.des

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-07 Thread Ludovic Desroches
+0200, Ludovic Desroches wrote: > Hi, > > The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This > drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek > pinctrl driver. > > Ludovic Desroches (5): > pinctrl: introduce driver f

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-07 Thread Ludovic Desroches
+0200, Ludovic Desroches wrote: > Hi, > > The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This > drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek > pinctrl driver. > > Ludovic Desroches (5): > pinctrl: introduce driver f

Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-08-20 Thread Ludovic Desroches
On Thu, Aug 20, 2015 at 09:05:07AM +0200, Sascha Hauer wrote: > On Mon, Aug 10, 2015 at 08:53:34AM +0200, Ludovic Desroches wrote: > > Hi Sascha, > > > > On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: > > > On Fri, Jul 31, 2015 at 05:08:07PM

Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-08-20 Thread Ludovic Desroches
On Thu, Aug 20, 2015 at 09:05:07AM +0200, Sascha Hauer wrote: On Mon, Aug 10, 2015 at 08:53:34AM +0200, Ludovic Desroches wrote: Hi Sascha, On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: On Fri, Jul 31, 2015 at 05:08:07PM +0200, Ludovic Desroches wrote: Hi

Re: [PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-08-18 Thread Ludovic Desroches
Hi, On Wed, Jul 29, 2015 at 04:22:45PM +0200, Ludovic Desroches wrote: > Hi, > > This set of patches introduce a driver for the new Atmel SDMMC device avaible > on SAMA5D2 SoC. > > There is also a resend of an old patch which has not been taken. Ulf asked > for some r

Re: [PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-08-18 Thread Ludovic Desroches
Hi, On Wed, Jul 29, 2015 at 04:22:45PM +0200, Ludovic Desroches wrote: Hi, This set of patches introduce a driver for the new Atmel SDMMC device avaible on SAMA5D2 SoC. There is also a resend of an old patch which has not been taken. Ulf asked for some reviews since it could impact all

Re: [PATCH] mmc: atmel-mci: remove useless include

2015-08-13 Thread Ludovic Desroches
On Mon, Aug 10, 2015 at 04:26:48PM +0200, Alexandre Belloni wrote: > Definitions from linux/platform_data/atmel.h are not used, remove the > include. > > Signed-off-by: Alexandre Belloni Acked-by: Ludovic Desroches > --- > drivers/mmc/host/atmel-mci.c | 1 - > 1 fil

Re: [PATCH] mmc: atmel-mci: remove useless include

2015-08-13 Thread Ludovic Desroches
On Mon, Aug 10, 2015 at 04:26:48PM +0200, Alexandre Belloni wrote: Definitions from linux/platform_data/atmel.h are not used, remove the include. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc

[PATCH 5/5] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-08-11 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm

[PATCH 4/5] ARM: at91/dt: sama5d2: add pio controller node

2015-08-11 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index f39258f..55df0ae 100644 --- a/arch

[PATCH 3/5] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-08-11 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8b37fdf..62c243a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8041,6 +8041,13 @@ L: linux-arm

[PATCH 2/5] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-08-11 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 1/5] pinctrl: introduce driver for Atmel PIO4 controller

2015-08-11 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c | 1063

[PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-08-11 Thread Ludovic Desroches
Hi, The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek pinctrl driver. Ludovic Desroches (5): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding

[PATCH 2/5] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-08-11 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1 file changed, 90 insertions(+) create mode 100644

[PATCH 1/5] pinctrl: introduce driver for Atmel PIO4 controller

2015-08-11 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c | 1063

[PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-08-11 Thread Ludovic Desroches
Hi, The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek pinctrl driver. Ludovic Desroches (5): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding

[PATCH 3/5] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-08-11 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8b37fdf..62c243a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8041,6

[PATCH 4/5] ARM: at91/dt: sama5d2: add pio controller node

2015-08-11 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index f39258f

[PATCH 5/5] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-08-11 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/arch/arm/mach

Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-08-10 Thread Ludovic Desroches
Hi Sascha, On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: > On Fri, Jul 31, 2015 at 05:08:07PM +0200, Ludovic Desroches wrote: > > Hi, > > > > Following our discussion, I send an RFC version of my driver. RFC because > > it is > > not totally a

Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-08-10 Thread Ludovic Desroches
Hi Sascha, On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: On Fri, Jul 31, 2015 at 05:08:07PM +0200, Ludovic Desroches wrote: Hi, Following our discussion, I send an RFC version of my driver. RFC because it is not totally achieved, some cleanup and feature addition

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-03 Thread Ludovic Desroches
Hi Josh, On Mon, Aug 03, 2015 at 02:40:18PM +0800, Josh Wu wrote: > Hi, Ludovic > > On 7/31/2015 11:08 PM, Ludovic Desroches wrote: > >Signed-off-by: Ludovic Desroches > >--- > > arch/arm/boot/dts/sama5d2-pinfunc.h | 760 > >

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-03 Thread Ludovic Desroches
Hi Josh, On Mon, Aug 03, 2015 at 02:40:18PM +0800, Josh Wu wrote: Hi, Ludovic On 7/31/2015 11:08 PM, Ludovic Desroches wrote: Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/sama5d2-pinfunc.h | 760 1 file

[RFC PATCH 3/3] ARM: at91/dt: add pinctrl

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 386 ++ arch/arm/boot/dts/sama5d2.dtsi | 1076 +++ 2 files changed, 1462 insertions(+) create mode 100644 arch/arm/boot/dts/at91-sama5d2_xplained.dts create mode

[RFC PATCH 1/3] pinctrl: introduce driver for Atmel PIO4 controller

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91-pio4.c | 959 1 file changed, 959 insertions(+) create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c

[RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2-pinfunc.h | 760 1 file changed, 760 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/arm/boot/dts/sama5d2-pinfunc.h b/arch/arm/boot/dts/sama5d2-pinfunc.h

[RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-07-31 Thread Ludovic Desroches
are using. Thanks for your reviews. Ludovic Desroches (3): pinctrl: introduce driver for Atmel PIO4 controller ARM: at91/dt: add sama5d2 pinmux ARM: at91/dt: add pinctrl arch/arm/boot/dts/at91-sama5d2_xplained.dts | 386 ++ arch/arm/boot/dts/sama5d2-pinfunc.h | 760

[RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-07-31 Thread Ludovic Desroches
are using. Thanks for your reviews. Ludovic Desroches (3): pinctrl: introduce driver for Atmel PIO4 controller ARM: at91/dt: add sama5d2 pinmux ARM: at91/dt: add pinctrl arch/arm/boot/dts/at91-sama5d2_xplained.dts | 386 ++ arch/arm/boot/dts/sama5d2-pinfunc.h | 760

[RFC PATCH 1/3] pinctrl: introduce driver for Atmel PIO4 controller

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/pinctrl/pinctrl-at91-pio4.c | 959 1 file changed, 959 insertions(+) create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers

[RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/sama5d2-pinfunc.h | 760 1 file changed, 760 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/arm/boot/dts/sama5d2-pinfunc.h b/arch/arm

[RFC PATCH 3/3] ARM: at91/dt: add pinctrl

2015-07-31 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 386 ++ arch/arm/boot/dts/sama5d2.dtsi | 1076 +++ 2 files changed, 1462 insertions(+) create mode 100644 arch/arm/boot/dts/at91

Re: [RESEND PATCH] pinctrl: at91: fix null pointer dereference

2015-07-30 Thread Ludovic Desroches
On Thu, Jul 30, 2015 at 10:33:43AM +0200, Sylvain Rochet wrote: > Hello Ludovic, > > On Tue, Jul 28, 2015 at 03:12:53PM +0200, Ludovic Desroches wrote: > > On Tue, Jul 28, 2015 at 02:48:09PM +0200, Linus Walleij wrote: > > > On Tue, Jul 28, 2015 at 9:

Re: [RESEND PATCH] pinctrl: at91: fix null pointer dereference

2015-07-30 Thread Ludovic Desroches
On Thu, Jul 30, 2015 at 10:33:43AM +0200, Sylvain Rochet wrote: Hello Ludovic, On Tue, Jul 28, 2015 at 03:12:53PM +0200, Ludovic Desroches wrote: On Tue, Jul 28, 2015 at 02:48:09PM +0200, Linus Walleij wrote: On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches

[PATCH v2 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
Introduce driver for he Atmel SDMMC available on sama5d2. It is a sdhci compliant controller. Signed-off-by: Ludovic Desroches --- .../devicetree/bindings/mmc/sdhci-atmel.txt| 21 +++ drivers/mmc/host/Kconfig | 8 + drivers/mmc/host/Makefile

[PATCH v2 1/3] mmc: sdhci: switch from programmable clock mode to divided one if needed

2015-07-29 Thread Ludovic Desroches
In programmable mode, if the clock frequency is too high, the divider can be too small to meet the clock frequency requirement especially to init the SD card. In this case, switch to the divided clock mode. Signed-off-by: Ludovic Desroches --- drivers/mmc/host/sdhci.c | 29

[PATCH v2 3/3] MAINTAINERS: add entry for Atmel sdhci-of-at91 driver

2015-07-29 Thread Ludovic Desroches
Add an entry for Atmel SDMMC device. Signed-off-by: Ludovic Desroches --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e7bdbac..6480ce9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1880,6 +1880,12 @@ L: linux

[PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
. It only fixes a special use case. If there are objections about it, drop it, I don't want to delay the Atmel SDMMC driver inclusion only for this patch. Changes: - from v1: - update license Ludovic Desroches (3): mmc: sdhci: switch from programmable clock mode to divided one if needed mmc

[PATCH v2 3/3] MAINTAINERS: add entry for Atmel sdhci-of-at91 driver

2015-07-29 Thread Ludovic Desroches
Add an entry for Atmel SDMMC device. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e7bdbac..6480ce9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1880,6 +1880,12 @@ L

[PATCH v2 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
Introduce driver for he Atmel SDMMC available on sama5d2. It is a sdhci compliant controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../devicetree/bindings/mmc/sdhci-atmel.txt| 21 +++ drivers/mmc/host/Kconfig | 8 + drivers/mmc

[PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
. It only fixes a special use case. If there are objections about it, drop it, I don't want to delay the Atmel SDMMC driver inclusion only for this patch. Changes: - from v1: - update license Ludovic Desroches (3): mmc: sdhci: switch from programmable clock mode to divided one if needed mmc

[PATCH v2 1/3] mmc: sdhci: switch from programmable clock mode to divided one if needed

2015-07-29 Thread Ludovic Desroches
In programmable mode, if the clock frequency is too high, the divider can be too small to meet the clock frequency requirement especially to init the SD card. In this case, switch to the divided clock mode. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/sdhci.c

Re: [RESEND PATCH] pinctrl: at91: fix null pointer dereference

2015-07-28 Thread Ludovic Desroches
On Tue, Jul 28, 2015 at 02:48:09PM +0200, Linus Walleij wrote: > On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches > wrote: > > > From: David Dueck > > > > Not all gpio banks are necessarily enabled, in the current code this can > > lead to null pointer de

[RESEND PATCH] pinctrl: at91: fix null pointer dereference

2015-07-28 Thread Ludovic Desroches
) from [] (ret_fast_syscall+0x0/0x3c) [ 51.14] Code: eb010ec2 e30a0d08 e34c005a eb0ae5a7 (e5993000) [ 51.15] ---[ end trace fb3c370da3ea4794 ]--- Signed-off-by: David Dueck Acked-by: Ludovic Desroches Acked-by: Alexandre Belloni CC: Nicolas Ferre CC: Boris Brezillon CC: linux-arm-ker

<    5   6   7   8   9   10   11   12   13   >