[PATCH] tty/serial: atmel: add fractional baud rate support

2016-08-25 Thread Ludovic Desroches
The USART device provides a fractional baud rate generator to get a more accurate baud rate. It can be used only when the USART is configured in 'normal mode' and this feature is not available on AT91RM9200 SoC. Signed-off-by: Ludovic Desroches --- drivers/tty/serial/atmel_ser

Re: [PATCH 1/2] dmaengine: at_xdmac: Fix compilation warning.

2017-08-15 Thread Ludovic Desroches
On Mon, Aug 07, 2017 at 01:15:18PM +0530, Arvind Yadav wrote: > Replace '%d' by '%zu' to fix the compilation warning:- >"format ‘%d’ expects argument of type ‘int’,but argument has type ‘size_t’ > [-Wformat=]" > > Signed-off-by: Arvin

Re: [PATCH 2/2] dmaengine: at_xdmac: Handle return value of clk_prepare_enable.

2017-08-15 Thread Ludovic Desroches
On Mon, Aug 07, 2017 at 01:15:19PM +0530, Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Acked-by: Ludovic Desroches Thanks > --- > drivers/dma/at_xdmac.c | 5 - > 1 file changed, 4 inserti

Re: [PATCH 1/2] mmc: sdhci-of-at91: factor out clks and presets setting

2017-06-19 Thread Ludovic Desroches
ff-by: Quentin Schulz Acked-by: Ludovic Desroches Thanks > --- > drivers/mmc/host/sdhci-of-at91.c | 147 > ++- > 1 file changed, 82 insertions(+), 65 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-at91.c > b/drivers/mmc/host/s

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-06-19 Thread Ludovic Desroches
ce VDD core has been shut down > when entering deepest state on the SAMA5D2. The clocks need to be > reconfigured as well. > > The other registers and init process are taken care of by the SDHCI > core. > > Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches >

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-06-20 Thread Ludovic Desroches
On Tue, Jun 20, 2017 at 10:07:06AM +0200, Quentin Schulz wrote: > Hi Adrian, > > On 20/06/2017 09:39, Adrian Hunter wrote: > > On 16/06/17 10:29, Quentin Schulz wrote: > >> This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 > >> SoC's SDHCI controller. > >> > >> When resuming

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-17 Thread Ludovic Desroches
Hi Peter, On Fri, Oct 13, 2017 at 05:01:04PM +0200, Peter Rosin wrote: > On 2017-10-13 15:29, Alan Cox wrote: > > On Thu, 12 Oct 2017 13:35:17 +0200 > > Peter Rosin wrote: > > > >> Hi! > >> > >> I have encountered an "interesting" bug. It silently corrupts data > >> and is generally nasty... > >

Re: [PATCH RFC 0/4] i2c: at91: slave mode support

2017-10-31 Thread Ludovic Desroches
Hello Juergen, On Fri, Oct 27, 2017 at 05:10:58PM +0200, Juergen Fitschen wrote: > Based on the discussion we had on the i2c-linux list [1], I wrote a patch for > AT91 hardware and tried to fulfill the Linux I2C slave interface description > [2] as good as possible. This enables aforementioned har

Re: [PATCH RFC 1/4] i2c: at91: segregate master mode specific code from probe and init func

2017-10-31 Thread Ludovic Desroches
esp. init > function instead of the master mode functions after the shared general > code has been executed. > > This concept has been influenced by the i2c-designware driver. > > Signed-off-by: Juergen Fitschen Acked-by: Ludovic Desroches > --- > d

Re: [PATCH RFC 2/4] i2c: at91: split driver into core and master file

2017-10-31 Thread Ludovic Desroches
> The code itself hasn't been touched. Shared functions only had to be made > non-static. Furthermore, includes have been cleaned up. > > Signed-off-by: Juergen Fitschen Acked-by: Ludovic Desroches > --- > MAINTAINERS |3 +- > drive

Re: [PATCH RFC 4/4] i2c: at91: take slave mode capabilities of hardware into account

2017-10-31 Thread Ludovic Desroches
On Fri, Oct 27, 2017 at 05:12:17PM +0200, Juergen Fitschen wrote: > Some AT91 hardware has no slave mode included or only limited features > (i.e. no fifos). > I am wondering if it won't be better to squash this patch into the previous one: Without it, it seems that we can set slave_detected for

Re: [PATCH RFC 3/4] i2c: at91: added slave mode support

2017-10-31 Thread Ludovic Desroches
On Fri, Oct 27, 2017 at 05:12:00PM +0200, Juergen Fitschen wrote: > Slave mode driver is based on the concept of i2c-designware driver. > > Signed-off-by: Juergen Fitschen > --- > drivers/i2c/busses/Makefile | 3 + > drivers/i2c/busses/i2c-at91-core.c | 13 +++- > drivers/i2c/busses/

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-31 Thread Ludovic Desroches
Hi Peter, On Wed, Oct 25, 2017 at 11:40:50PM +0200, Peter Rosin wrote: > Hi Ludovic, > > On 2017-10-17 09:58, Ludovic Desroches wrote: > > Hi Peter, > > > > On Fri, Oct 13, 2017 at 05:01:04PM +0200, Peter Rosin wrote: > >> On 2017-10-13 15:29, Alan Cox wrote

Re: [PATCH v3 1/5] dt-bindings: input: Add Atmel PTC subsystem bindings

2017-11-02 Thread Ludovic Desroches
Hi Dmitry, On Mon, Oct 30, 2017 at 04:06:58PM -0700, Dmitry Torokhov wrote: > Hi Ludovic, > > On Fri, Oct 20, 2017 at 03:31:17PM +0200, Ludovic Desroches wrote: > > Add description of the Atmel PTC subsystem bindings. > > > > Signed-off-by: Ludovic Desroches

Re: [PATCH v3 2/5] input: misc: introduce Atmel PTC driver

2017-11-02 Thread Ludovic Desroches
Hi Dmitry, On Mon, Oct 30, 2017 at 04:30:41PM -0700, Dmitry Torokhov wrote: > Hi Ludovic, > > On Fri, Oct 20, 2017 at 03:31:18PM +0200, Ludovic Desroches wrote: > > The Atmel Peripheral Touch Controller subsystem offers built-in hardware > > for capacitive touch measur

Re: [PATCH RFC 4/4] i2c: at91: take slave mode capabilities of hardware into account

2017-11-02 Thread Ludovic Desroches
On Wed, Nov 01, 2017 at 12:16:36PM +0100, Juergen Fitschen wrote: > Hello Ludovic, > > Thank you very much for your feedback! > > On Tue, Oct 31, 2017 at 04:22:50PM +0100, Ludovic Desroches wrote: > > On Fri, Oct 27, 2017 at 05:12:17PM +0200, Juergen Fitschen wrote: > &g

Re: [PATCH RFC 3/4] i2c: at91: added slave mode support

2017-11-02 Thread Ludovic Desroches
On Wed, Nov 01, 2017 at 02:04:18PM +0100, Juergen Fitschen wrote: > Helle Ludovic, > > while going through this patch a question related to the Atmel / Microchip HW > came into mind: > > On Fri, Oct 27, 2017 at 05:12:00PM +0200, Juergen Fitschen wrote: > > diff --git a/drivers/i2c/busses/i2c-at91

Re: [PATCH RFC 4/4] i2c: at91: take slave mode capabilities of hardware into account

2017-11-03 Thread Ludovic Desroches
Hi Juergen, On Wed, Nov 01, 2017 at 12:16:36PM +0100, Juergen Fitschen wrote: > Hello Ludovic, > > Thank you very much for your feedback! > > On Tue, Oct 31, 2017 at 04:22:50PM +0100, Ludovic Desroches wrote: > > On Fri, Oct 27, 2017 at 05:12:17PM +0200, Juergen Fitschen w

Re: [PATCH RFC 4/4] i2c: at91: take slave mode capabilities of hardware into account

2017-11-03 Thread Ludovic Desroches
On Fri, Nov 03, 2017 at 03:07:32PM +0100, Juergen Fitschen wrote: > Hello Ludovic, > > On Fri, Nov 03, 2017 at 09:46:02AM +0100, Ludovic Desroches wrote: > > > > > diff --git a/drivers/i2c/busses/i2c-at91.h > > > > > b/drivers/i2c/busses/i2c-at91.h

Re: Regression: at24 eeprom writing

2015-10-05 Thread Ludovic Desroches
Hi Peter On Mon, Oct 05, 2015 at 10:45:29AM +0200, Peter Rosin wrote: > On 2015-10-03 01:05, Peter Rosin wrote: [...] > Ok, I found the culprit, and I double and triple checked it this time... > > If I move to the very latest on the linux-3.18-at91 branch, the bug is > there too. Which made it

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

2015-10-13 Thread Ludovic Desroches
On Thu, Oct 08, 2015 at 08:01:23PM +0200, Ulf Hansson wrote: > +Russell > > On 17 September 2015 at 10:16, Ludovic Desroches > wrote: > > The Atmel sdhci device needs a new quirk. sdhci_set_clock set the Clock > > Control Register to 0 before computing the new valu

[PATCH] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-13 Thread Ludovic Desroches
eter Rosin Signed-off-by: Ludovic Desroches Cc: sta...@vger.kernel.org #4.1 --- drivers/i2c/busses/i2c-at91.c | 58 +-- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 1c758c

Re: [PATCH] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-13 Thread Ludovic Desroches
On Tue, Oct 13, 2015 at 08:01:34PM +0200, Peter Rosin wrote: > On 2015-10-13 18:47, Cyrille Pitchen wrote: > > Le 13/10/2015 17:19, Peter Rosin a écrit : > >> On 2015-10-13 16:21, Ludovic Desroches wrote: > >>> From: Cyrille Pitchen > >>> > >>>

[PATCH] ARM: at91: debug: update prompt for DEBUG_AT91_UART

2015-10-14 Thread Ludovic Desroches
Add (read help!) to DEBUG_AT91_UART prompt. It is not obvious there are such useful information to set DEBUG_UART_PHYS. Signed-off-by: Ludovic Desroches --- arch/arm/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug

[PATCH 2/3] ARM: at91/dt: sama5d2 Xplained: add several devices

2015-10-14 Thread Ludovic Desroches
Add sdmmc and flexcom devices Signed-off-by: Ludovic Desroches Signed-off-by: Cyrille Pitchen --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 106 1 file changed, 106 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts

[PATCH 1/3] ARM: at91/dt: sama5d2: add missing devices

2015-10-14 Thread Ludovic Desroches
Big update of the sama5d2.dtsi file since many patches have reached te mainline: - add generated clocks - enable crypto devices - add flexcom devices - add tdes device - add sdmmc devices Signed-off-by: Ludovic Desroches Signed-off-by: Nicolas Ferre Signed-off-by: Cyrille Pitchen --- arch/arm

[PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-14 Thread Ludovic Desroches
Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. Signed-off-by: Ludovic Desroches --- arch/arm/configs/sama5_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 31eb951..6e806f5

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

2015-09-07 Thread Ludovic Desroches
:00AM +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 dri

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: > Hi, > > On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrote : > > Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. > > > > Signed-off-by: Ludovic Desroches > > --- > >

Re: [PATCH] ARM: at91: debug: update prompt for DEBUG_AT91_UART

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 04:04:45PM +0200, Alexandre Belloni wrote: > On 14/10/2015 at 09:24:42 +0200, Ludovic Desroches wrote : > > Add (read help!) to DEBUG_AT91_UART prompt. It is not obvious there are > > such useful information to set DEBUG_UART_PHYS. > > > > Signe

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 05:42:53PM +0200, Nicolas Ferre wrote: > Le 15/10/2015 17:31, Ludovic Desroches a écrit : > > On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: > >> Hi, > >> > >> On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrot

[PATCH v2 0/8] Enable several devices for Atmel SAMA5D2

2015-10-16 Thread Ludovic Desroches
Hi, This set of patches enables several devices for the freshly introduced SAMA5D2 SoC. dts and defconfig files are updated to enable SAMA5D2 and its new devices such as Flexcom and AT91 SDHCI. Changes: - v2: - update whole Atmel defconfigs - update multi_v7_defconfig Ludovic Desroches (8

[PATCH v2 2/8] ARM: at91/dt: sama5d2 Xplained: add several devices

2015-10-16 Thread Ludovic Desroches
Add sdmmc and flexcom devices Signed-off-by: Ludovic Desroches Signed-off-by: Cyrille Pitchen --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 106 1 file changed, 106 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts

[PATCH v2 1/8] ARM: at91/dt: sama5d2: add missing devices

2015-10-16 Thread Ludovic Desroches
Big update of the sama5d2.dtsi file since many patches have reached te mainline: - add generated clocks - enable crypto devices - add flexcom devices - add tdes device - add sdmmc devices Signed-off-by: Ludovic Desroches Signed-off-by: Nicolas Ferre Signed-off-by: Cyrille Pitchen --- arch/arm

[PATCH v2 4/8] ARM: at91/defconfig: update at91_dt defconfig

2015-10-16 Thread Ludovic Desroches
Trivial savedefconfig update. Signed-off-by: Ludovic Desroches --- arch/arm/configs/at91_dt_defconfig | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 090c5b2..1b1e5ac 100644 --- a/arch/arm/configs

[PATCH v2 3/8] ARM: at91/defconfig: update sama5 defconfig

2015-10-16 Thread Ludovic Desroches
Trivial savedefconfig update. Signed-off-by: Ludovic Desroches --- arch/arm/configs/sama5_defconfig | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 31eb951..3b2f686 100644 --- a/arch/arm

[PATCH v2 5/8] ARM: at91/defconfig: add sama5d2 and its new devices to sama5 defconfig

2015-10-16 Thread Ludovic Desroches
Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. Signed-off-by: Ludovic Desroches --- arch/arm/configs/sama5_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 3b2f686..a0c57ac 100644 --- a/arch

[PATCH v2 7/8] ARM: multi_v7_defconfig: Add Atmel Flexcom device

2015-10-16 Thread Ludovic Desroches
The Flexcom device has been introduced with Atmel SAMA5D2 SoC. Signed-off-by: Ludovic Desroches --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 63703fa..6dcc048 100644

[PATCH v2 6/8] ARM: multi_v7_defconfig: Add Atmel SAMA5D2 SoC

2015-10-16 Thread Ludovic Desroches
Add Atmel SAMA5D2 SoC family to multi_v7 image. Signed-off-by: Ludovic Desroches --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index bf099b7..63703fa 100644 --- a/arch/arm

[PATCH v2 8/8] ARM: multi_v7_defconfig: Add Atmel SDHCI device

2015-10-16 Thread Ludovic Desroches
The AT91 SDHCI device has been introduced with Atmel SAMA5D2 SoC. Signed-off-by: Ludovic Desroches --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6dcc048..844e921 100644

[PATCH] mmc: sdhci at91: add suspend/resume

2015-10-16 Thread Ludovic Desroches
Add suspend and resume PM ops. Signed-off-by: Ludovic Desroches --- drivers/mmc/host/sdhci-of-at91.c | 55 +++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c index 06d0b50

Re: [PATCH] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-21 Thread Ludovic Desroches
On Wed, Oct 21, 2015 at 09:42:40AM +0200, Peter Rosin wrote: > On 2015-10-21 09:21, Peter Rosin wrote: > > On 2015-10-20 15:27, Ludovic Desroches wrote: > >> On Mon, Oct 19, 2015 at 12:49:03PM +0200, Peter Rosin wrote: > >>> On 2015-10-19 10:51, Ludovic De

[PATCH v2 1/2] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-21 Thread Ludovic Desroches
eter Rosin Signed-off-by: Ludovic Desroches Tested-by: Peter Rosin Cc: sta...@vger.kernel.org #4.1 --- drivers/i2c/busses/i2c-at91.c | 58 +-- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/

[PATCH v2 2/2] i2c: at91: manage unexpected RXRDY flag when starting a transfer

2015-10-21 Thread Ludovic Desroches
-off-by: Ludovic Desroches Fixes: 93563a6a71bb ("i2c: at91: fix a race condition when using the DMA controller") Reported-by: Peter Rosin Tested-by: Peter Rosin Cc: sta...@vger.kernel.org #4.1 --- drivers/i2c/busses/i2c-at91.c | 33 + 1 file changed, 25

Re: [PATCH] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-19 Thread Ludovic Desroches
Hi Peter, On Fri, Oct 16, 2015 at 11:08:42AM +0200, Peter Rosin wrote: > On 2015-10-16 01:47, Peter Rosin wrote: > > On 2015-10-14 07:43, Ludovic Desroches wrote: > >> On Tue, Oct 13, 2015 at 08:01:34PM +0200, Peter Rosin wrote: > >>> On 2015-10-13 18:47, Cyrille

Re: [PATCH] mmc: sdhci at91: add suspend/resume

2015-10-19 Thread Ludovic Desroches
On Fri, Oct 16, 2015 at 06:33:44PM +0200, Ulf Hansson wrote: > On 16 October 2015 at 17:01, Ludovic Desroches > wrote: > > Add suspend and resume PM ops. > > > > Signed-off-by: Ludovic Desroches > > I have no problem with this patch, nice and easy. > > Alt

Re: [PATCH] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-20 Thread Ludovic Desroches
On Mon, Oct 19, 2015 at 12:49:03PM +0200, Peter Rosin wrote: > On 2015-10-19 10:51, Ludovic Desroches wrote: > > Hi Peter, > > > > On Fri, Oct 16, 2015 at 11:08:42AM +0200, Peter Rosin wrote: > >> On 2015-10-16 01:47, Peter Rosin wrote: > >>> On

[PATCH v3] i2c: at91: manage unexpected RXRDY flag when starting a transfer

2015-10-26 Thread Ludovic Desroches
-off-by: Ludovic Desroches Fixes: 93563a6a71bb ("i2c: at91: fix a race condition when using the DMA controller") Reported-by: Peter Rosin Tested-by: Peter Rosin Cc: sta...@vger.kernel.org #4.1 --- Changes from v2: - fix smatch warning: variable 'sr' set but not used drivers

Re: [PATCH 9/9] pinctrl: at91: add missing of_node_put

2015-10-26 Thread Ludovic Desroches
eturn ...; > ) >... > } > // > > Signed-off-by: Julia Lawall Acked-by: Ludovic Desroches > > --- > drivers/pinctrl/pinctrl-at91.c |5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/pinctrl-at91.c b/drive

Re: [PATCH 08/16] clk: at91: only enable available IRQs

2015-10-01 Thread Ludovic Desroches
On Wed, Sep 30, 2015 at 06:11:01PM +0200, Alexandre Belloni wrote: > From: Boris Brezillon > > Only enable available IRQs in case writing to a reserved bit has an armful > effect. You probably mean disable instead of enable and s/armful/harmful. > > Signed-off-by: Boris Brezillon > Signed-off

Re: [PATCH 1/2] pinctrl: at91-pio4: Use irq_set_handler_locked()

2015-10-05 Thread Ludovic Desroches
Hi Nicolas, On Fri, Oct 02, 2015 at 03:57:32PM +0200, Nicolas Ferre wrote: > Hi all, > > Well it seems my cover letter is missing. So, here it is: > > ---8< > pinctrl: at91-pio4: fixes for current linux-next (irq) > > While testing the sama5d2 on today's linux-next I discovered that some >

Re: [PATCH v2 2/2] tty/serial: atmel: add ISO7816 support

2018-08-03 Thread Ludovic Desroches
Hi Richard, On Fri, Jul 27, 2018 at 04:39:17PM +0200, Richard Genoud wrote: > Hi Ludovic, > > On 19/07/2018 10:47, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > > for comi

[PATCH v3 0/2] add ISO7816 support

2018-08-07 Thread Ludovic Desroches
Hi, This patchset adds support for the ISO7816 standard. The USART devices in Microchip SoCs have an ISO7816 mode. It allows to let the USART managing the CLK and I/O signals of a smart card. Changes: - v3 - add IOCTLs to parisc arch. - rework atmel_config_iso7816 according to the comments by

[PATCH v3 2/2] tty/serial: atmel: add ISO7816 support

2018-08-07 Thread Ludovic Desroches
, add check on fidi ratio, checkpatch fixes] Signed-off-by: Ludovic Desroches --- drivers/tty/serial/atmel_serial.c | 211 +++--- drivers/tty/serial/atmel_serial.h | 6 +- 2 files changed, 201 insertions(+), 16 deletions(-) diff --git a/drivers/tty/serial

[PATCH v3 1/2] tty/serial_core: add ISO7816 infrastructure

2018-08-07 Thread Ludovic Desroches
: Ludovic Desroches --- arch/alpha/include/uapi/asm/ioctls.h | 2 ++ arch/mips/include/uapi/asm/ioctls.h| 2 ++ arch/parisc/include/uapi/asm/ioctls.h | 2 ++ arch/powerpc/include/uapi/asm/ioctls.h | 2 ++ arch/sh/include/uapi/asm/ioctls.h | 2 ++ arch/sparc/include/uapi/asm/ioctls.h

Re: [PATCH v3 2/2] tty/serial: atmel: add ISO7816 support

2018-08-09 Thread Ludovic Desroches
Hi Richard, On Thu, Aug 09, 2018 at 10:47:17AM +0200, Richard Genoud wrote: > Hi ! > > On 07/08/2018 15:00, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > > for coming back to

Re: [PATCH v3 0/3] i2c: at91: slave mode support

2018-07-30 Thread Ludovic Desroches
On Sat, Jul 21, 2018 at 12:41:41AM +0200, Wolfram Sang wrote: > > [Ludovic Desroches] > > Changes in v3: > > - rebase (cherry-pick was enough) > > Thanks for the rebase. I wonder, though, I recall to had more > complicated issues. However... > > >

[PATCH v2 2/2] tty/serial: atmel: add ISO7816 support

2018-07-19 Thread Ludovic Desroches
Ferre Signed-off-by: Ludovic Desroches --- drivers/tty/serial/atmel_serial.c | 170 +++--- drivers/tty/serial/atmel_serial.h | 3 +- 2 files changed, 162 insertions(+), 11 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial

[PATCH v2 1/2] tty/serial_core: add ISO7816 infrastructure

2018-07-19 Thread Ludovic Desroches
From: Nicolas Ferre Add the ISO7816 ioctl and associated accessors and data structure. Drivers can then use this common implementation to handle ISO7816. Signed-off-by: Nicolas Ferre Signed-off-by: Ludovic Desroches --- arch/alpha/include/uapi/asm/ioctls.h | 2 ++ arch/mips/include/uapi

[PATCH v2 0/2] add ISO7816 support

2018-07-19 Thread Ludovic Desroches
Hi, This patchset adds support for the ISO7816 standard. The USART devices in Microchip SoCs have an ISO7816 mode. It allows to let the USART managing the CLK and I/O signals of a smart card. Changes: - v2 - uart_get_iso7816_config: check there is an iso7816_config function - use IOCTL macros

Re: [PATCH v2 0/2] add ISO7816 support

2018-07-19 Thread Ludovic Desroches
Hi Neil, On Thu, Jul 19, 2018 at 10:59:47AM +0200, Neil Armstrong wrote: > Hi Ludovic, > > On 19/07/2018 10:47, Ludovic Desroches wrote: > > Hi, > > > > This patchset adds support for the ISO7816 standard. The USART devices in > > Microchip SoCs have an ISO7816

Re: [PATCH] ARM: dts: at91: fix typo for PIN_PB22

2018-07-11 Thread Ludovic Desroches
Hi Claudiu, On Wed, Jul 11, 2018 at 07:25:37PM +0300, Claudiu Beznea wrote: > Fix typo for PIN_PB22 on TD function. In fact, this typo is present in several places in this file. It could be worth fixing all those occurences in a single patch. Regards Ludovic > > Signed-off-by: Claudiu Beznea

Re: [PATCH 3/3] tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

2018-07-12 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 04:58:27PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:26:23PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions. > > Prevent the rx restart that

Re: [v2,3/3] i2c: at91: added slave mode support

2018-07-12 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 11:56:24PM +0200, Wolfram Sang wrote: > > > Yes sure, you can add my Ack. I would be pleased to see the slave > > support taken. > > Sadly, I can't get it to apply cleanly. Could you rebase and retest? > Ok I'll handle it and add my Acked-by. Ludovic

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-13 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 05:02:29PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > Add the ISO7816 ioctl and associated accessors and data structure. > > Drivers can then use this common imple

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-13 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 04:58:08PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > Add the ISO7816 ioctl and associated accessors and data structure. > > Drivers can then use this common imple

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-24 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > > wrote: > > > > > It can be useful for the pinmuxing layer to know which dev

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-25 Thread Ludovic Desroches
On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > wrote: > > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > >> On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > >

[PATCH 1/2] usb: gadget: udc: atmel: remove code related to platform stuff

2018-02-01 Thread Ludovic Desroches
With the removal of AVR platforms, code related to platform stuff is useless. Signed-off-by: Ludovic Desroches --- drivers/usb/gadget/udc/atmel_usba_udc.c | 73 + 1 file changed, 2 insertions(+), 71 deletions(-) diff --git a/drivers/usb/gadget/udc

[PATCH 2/2] usb: gadget: udc: atmel: convert to use GPIO descriptors

2018-02-01 Thread Ludovic Desroches
Use GPIO descriptors instead of relying on the old method. Include irq.h header since it is needed and was indirectly included through of_gpio.h. Signed-off-by: Ludovic Desroches --- drivers/usb/gadget/udc/atmel_usba_udc.c | 51 ++--- drivers/usb/gadget/udc

Re: [PATCH] pinctrl: at91-pio4: add support for drive-strength property

2018-02-01 Thread Ludovic Desroches
On Mon, Jan 29, 2018 at 01:01:30PM -0600, Rob Herring wrote: > On Mon, Jan 22, 2018 at 09:37:38AM +0100, Linus Walleij wrote: > > On Thu, Jan 18, 2018 at 5:02 PM, Ludovic Desroches > > wrote: > > > > > Add support for the drive-strength property. Usually its value i

Re: [RESEND RFC PATCH 0/2] fixing the gpio ownership

2018-01-18 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 11:16:44AM +0100, Linus Walleij wrote: > Hi Ludovic, thanks for your patches! > > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > wrote: > > > A few weeks ago, I have sent an RFC about adding bias support for GPIOs [1]. > > I was confused

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > wrote: > > > It can be useful for the pinmuxing layer to know which device is > > requesting a GPIO. Add a consumer variant for gpiod_request to > > re

[PATCH] pinctrl: at91-pio4: add support for drive-strength property

2018-01-18 Thread Ludovic Desroches
x27;t care about the drive strength, there is no need to change it, so 0 is considered as the default value. The low-drive value won't be advertised through pinconf-pins file excepted if it has been set explicitly in the device tree ie if its value is different from 0. Signed-off-by: Ludovic

Re: [PATCH] pinctrl: at91-pio4: add support for drive-strength property

2018-01-22 Thread Ludovic Desroches
On Mon, Jan 22, 2018 at 09:37:38AM +0100, Linus Walleij wrote: > On Thu, Jan 18, 2018 at 5:02 PM, Ludovic Desroches > wrote: > > > Add support for the drive-strength property. Usually its value is > > expressed in mA. Since the numeric value depends on VDDIOP voltage, > &

Re: [PATCH 12/14] iio: adc: at91-sama5d2_adc: support for position and pressure channels

2018-01-08 Thread Ludovic Desroches
Hi Jonathan, Eugen, On Sat, Jan 06, 2018 at 03:05:37PM +, Jonathan Cameron wrote: > On Thu, 4 Jan 2018 17:17:54 +0200 > Eugen Hristev wrote: > > > On 29.12.2017 19:02, Jonathan Cameron wrote: > > > On Fri, 22 Dec 2017 17:07:19 +0200 > > > Eugen Hristev wrote: > > > > > >> The ADC IP supp

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-29 Thread Ludovic Desroches
On Fri, Jan 26, 2018 at 07:13:32PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 9:32 AM, Ludovic Desroches > wrote: > > On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > >> On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > >> wrote:

Re: [RFC PATCH 1/2] pinctrl: add consumer variant for gpio request

2018-01-17 Thread Ludovic Desroches
On Tue, Jan 16, 2018 at 04:33:29PM +0200, Andy Shevchenko wrote: > On Tue, Jan 16, 2018 at 11:01 AM, Ludovic Desroches > wrote: > > On Mon, Jan 15, 2018 at 10:19:39PM +0200, Andy Shevchenko wrote: > >> On Mon, Jan 15, 2018 at 6:22 PM, Ludovic Desroches > >> wro

Re: [RFC PATCH 1/2] pinctrl: add consumer variant for gpio request

2018-01-17 Thread Ludovic Desroches
On Wed, Jan 17, 2018 at 06:07:02PM +0200, Andy Shevchenko wrote: > On Wed, Jan 17, 2018 at 4:54 PM, Ludovic Desroches > wrote: > > On Tue, Jan 16, 2018 at 04:33:29PM +0200, Andy Shevchenko wrote: > > >> First of all, the main architectural issue with current pin control

[PATCH] ARM: dts: at91: sama5d4: fix pinctrl compatible string

2018-01-18 Thread Ludovic Desroches
From: Santiago Esteban The compatible string is incorrect. Add atmel,sama5d3-pinctrl since it's the appropriate compatible string. Remove the atmel,at91rm9200-pinctrl compatible string, this fallback is useless, there are too many changes. Signed-off-by: Santiago Esteban Signed-off-by: Lu

Re: [PATCH 1/2] MAINTAINERS: linux-media: update Microchip ISI and ISC entries

2018-01-09 Thread Ludovic Desroches
> MICROCHIP / ATMEL location. > > Signed-off-by: Nicolas Ferre Acked-by: Ludovic Desroches > --- > Hi, > > Patch against next-20180109. > Note that I didn't find it useful to have several patches for these changes. > Tell me if you feel differently. > > I

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
gpiochip_generic_request. Signed-off-by: Ludovic Desroches --- drivers/gpio/gpiolib.c | 40 +--- include/linux/gpio/driver.h | 5 + 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index

[RFC PATCH 1/2] pinctrl: add consumer variant for gpio request

2018-01-15 Thread Ludovic Desroches
the name of the device which requests the GPIO to not return an error if it's also the owner of the pinmuxing. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/core.c | 13 ++--- drivers/pinctrl/pinmux.c | 16 ++-- drivers/pinctrl/pinmux.h | 1

[RFC PATCH 0/2] fixing the gpio ownership

2018-01-15 Thread Ludovic Desroches
pinics.net/lists/arm-kernel/msg623149.html Ludovic Desroches (2): pinctrl: add consumer variant for gpio request gpio: provide a consumer when requesting a gpio drivers/gpio/gpiolib.c | 40 +--- drivers/pinctrl/core.c | 13 ++--

[RFC PATCH 1/2] pinctrl: add consumer variant for gpio request

2018-01-15 Thread Ludovic Desroches
the name of the device which requests the GPIO to not return an error if it's also the owner of the pinmuxing. Signed-off-by: Ludovic Desroches --- drivers/pinctrl/core.c | 13 ++--- drivers/pinctrl/pinmux.c | 16 ++-- drivers/pinctrl/pinmux.h | 1

[RESEND RFC PATCH 0/2] fixing the gpio ownership

2018-01-15 Thread Ludovic Desroches
. Regards Ludovic [1] https://www.spinics.net/lists/arm-kernel/msg623149.html Ludovic Desroches (2): pinctrl: add consumer variant for gpio request gpio: provide a consumer when requesting a gpio drivers/gpio/gpiolib.c | 40 +--- drivers/pinc

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
gpiochip_generic_request. Signed-off-by: Ludovic Desroches --- drivers/gpio/gpiolib.c | 40 +--- include/linux/gpio/driver.h | 5 + 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index

Re: [RFC PATCH 1/2] pinctrl: add consumer variant for gpio request

2018-01-16 Thread Ludovic Desroches
Hi, On Mon, Jan 15, 2018 at 10:19:39PM +0200, Andy Shevchenko wrote: > On Mon, Jan 15, 2018 at 6:22 PM, Ludovic Desroches > wrote: > > Did I miss cover letter for this? > It seems: https://lkml.org/lkml/2018/1/15/841 > > Add a consumer variant to GPIO request relativ

Re: [PATCH v4 2/2] tty/serial: atmel: add ISO7816 support

2018-09-26 Thread Ludovic Desroches
On Tue, Sep 18, 2018 at 03:28:56PM +0200, Greg KH wrote: > On Thu, Sep 06, 2018 at 03:42:14PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > > for coming back to this mode if requ

[PATCH v5 2/2] tty/serial: atmel: add ISO7816 support

2018-09-26 Thread Ludovic Desroches
, add check on fidi ratio, checkpatch fixes] Signed-off-by: Ludovic Desroches Acked-by: Richard Genoud --- drivers/tty/serial/atmel_serial.c | 190 +++--- drivers/tty/serial/atmel_serial.h | 3 +- 2 files changed, 181 insertions(+), 12 deletions(-) diff --git a

[PATCH v5 1/2] tty/serial_core: add ISO7816 infrastructure

2018-09-26 Thread Ludovic Desroches
-off-by: Ludovic Desroches --- Documentation/serial/serial-iso7816.txt | 83 + arch/alpha/include/uapi/asm/ioctls.h| 2 + arch/mips/include/uapi/asm/ioctls.h | 2 + arch/parisc/include/uapi/asm/ioctls.h | 2 + arch/powerpc/include/uapi/asm/ioctls.h | 2

[PATCH v5 0/2] add ISO7816 support

2018-09-26 Thread Ludovic Desroches
Hi, This patchset adds support for the ISO7816 standard. The USART devices in Microchip SoCs have an ISO7816 mode. It allows to let the USART managing the CLK and I/O signals of a smart card. Changes: - v5 - rebase on tty-next. - add documentation for the new ioctls (mimic rs485 one). - fix

Re: [PATCH] dmaengine: at_hdmac: fix memory leak in at_dma_xlate()

2018-11-29 Thread Ludovic Desroches
; Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding") > Reported-by: Mario Forner > Suggested-by: Alexandre Belloni > Acked-by: Alexandre Belloni > Signed-off-by: Richard Genoud Acked-by: Ludovic Desroches Thanks for handling this issue. Ludovic > --- > driv

Re: [PATCH] dmaengine: at_hdmac: fix module unloading

2018-11-29 Thread Ludovic Desroches
dmac] > when of_dma_request_slave_channel() tried to call ofdma->of_dma_xlate(). > > Cc: sta...@vger.kernel.org > Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding") > Signed-off-by: Richard Genoud Acked-by: Ludovic Desroches Thanks Ludovic > --- > d

Re: [PATCH v3 2/7] ARM: dts: at91: sama5d2: switch to new binding

2018-11-13 Thread Ludovic Desroches
clock is missing in the title of this patch. Regards Ludovic On Mon, Nov 12, 2018 at 02:31:03PM +0100, Alexandre Belloni wrote: > Switch sama5d2 boards to the new PMC clock bindings. > > Signed-off-by: Alexandre Belloni > --- > arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 12 +- > arch/arm/

Re: [v2,3/3] i2c: at91: added slave mode support

2018-07-09 Thread Ludovic Desroches
Sorry for the delay to answer. I changed my email filters. Unfortunately there was a bug and I missed message from this mailing list... On Sat, Jun 02, 2018 at 11:35:13PM +0200, Wolfram Sang wrote: > On Thu, Nov 09, 2017 at 06:22:29PM +0100, Juergen Fitschen wrote: > > Slave mode driver is based o

Re: [v2,3/3] i2c: at91: added slave mode support

2018-07-10 Thread Ludovic Desroches
On Mon, Jul 09, 2018 at 05:51:36PM +0200, Wolfram Sang wrote: > > > Sorry for having not catched it. If I remember well, it was the only > > issue I had while testing the slave support. > > > > > > > > BTW maybe I asked already and forgot: is this IP core capable of being > > > master and slave

[PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-11 Thread Ludovic Desroches
: Ludovic Desroches --- drivers/tty/serial/serial_core.c | 49 +++ include/linux/serial_core.h | 3 +++ include/uapi/asm-generic/ioctls.h | 2 ++ include/uapi/linux/serial.h | 17 ++ 4 files changed, 71 insertions(+) diff --git a/drivers/tty

[PATCH 0/3] add ISO7816 support

2018-07-11 Thread Ludovic Desroches
Hi, This set of patches adds support for the ISO7816 standard. The USART devices in Microchip SoCs have an ISO7816 mode. It allows to let the USART managing the CLK and I/O signals of a smart card. Nicolas Ferre (3): tty/serial_core: add ISO7816 infrastructure tty/serial: atmel: add ISO7816 s

[PATCH 2/3] tty/serial: atmel: add ISO7816 support

2018-07-11 Thread Ludovic Desroches
Ferre [ludovic.desroc...@microchip.com: rebase, add check on fidi ratio, checkpatch fixes] Signed-off-by: Ludovic Desroches --- drivers/tty/serial/atmel_serial.c | 175 +++--- drivers/tty/serial/atmel_serial.h | 3 +- 2 files changed, 167 insertions(+), 11

  1   2   3   4   5   6   7   >