[PATCH v3 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/Kconfig | 9 - drivers/mtd/spi-nor/Makefile | 1 - drivers/spi/Kconfig | 9 + drivers/spi/Makefile

[PATCH v3 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/Kconfig | 9 - drivers/mtd/spi-nor/Makefile | 1 - drivers/spi/Kconfig | 9 + drivers/spi/Makefile

[PATCH v3 4/6] mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

2018-11-05 Thread Piotr Bugalski
Code used for previous interface is no longer needed. This change just removes obsolete code. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 388 1 file changed, 388 deletions(-) diff --git a/drivers

[PATCH v3 2/6] mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi

2018-11-05 Thread Piotr Bugalski
This patch adds new interface to existing driver. New code is not used yet, it will be enabled later. Changes are prepared in small steps to keep patches readable. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 211

[PATCH v3 0/6] New QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
range checkng for 4-bytes addressing - use timeout to avoid infinite waiting Piotr Bugalski (6): mtd: spi-nor: atmel-quaspi: Typo fix mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver mtd: s

[PATCH v3 6/6] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
Atmel SAMA5D2 QuadSPI driver was moved from mtd to spi subsystem, this change is just moving DT-binding documentation. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- Documentation/devicetree/bindings/{mtd => spi}/atmel-quadspi.txt | 0 1 file changed, 0 insertions(+)

[PATCH v3 2/6] mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi

2018-11-05 Thread Piotr Bugalski
This patch adds new interface to existing driver. New code is not used yet, it will be enabled later. Changes are prepared in small steps to keep patches readable. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 211

[PATCH v3 0/6] New QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
range checkng for 4-bytes addressing - use timeout to avoid infinite waiting Piotr Bugalski (6): mtd: spi-nor: atmel-quaspi: Typo fix mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver mtd: s

[PATCH v3 6/6] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

2018-11-05 Thread Piotr Bugalski
Atmel SAMA5D2 QuadSPI driver was moved from mtd to spi subsystem, this change is just moving DT-binding documentation. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- Documentation/devicetree/bindings/{mtd => spi}/atmel-quadspi.txt | 0 1 file changed, 0 insertions(+)

[PATCH v3 4/6] mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

2018-11-05 Thread Piotr Bugalski
Code used for previous interface is no longer needed. This change just removes obsolete code. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 388 1 file changed, 388 deletions(-) diff --git a/drivers

[PATCH v3 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-11-05 Thread Piotr Bugalski
Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c index 820048726b4f

[PATCH v3 3/6] mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver

2018-11-05 Thread Piotr Bugalski
Previously added spi-mem interface is now used instead of older approach. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 91 - 1 file changed, 18 insertions(+), 73 deletions(-) diff --git a/drivers/mtd

[PATCH v3 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-11-05 Thread Piotr Bugalski
Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c index 820048726b4f

[PATCH v3 3/6] mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver

2018-11-05 Thread Piotr Bugalski
Previously added spi-mem interface is now used instead of older approach. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 91 - 1 file changed, 18 insertions(+), 73 deletions(-) diff --git a/drivers/mtd

Re: [RFC PATCH v2 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-07-05 Thread Piotr Bugalski
Hi Alexandre, Thank you for you comment. On Tue, 3 Jul 2018, Alexandre Belloni wrote: Hi, On 27/06/2018 15:16:04+0200, Piotr Bugalski wrote: Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski This SoB line must match the author. It doesn't matter which

Re: [RFC PATCH v2 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-07-05 Thread Piotr Bugalski
Hi Alexandre, Thank you for you comment. On Tue, 3 Jul 2018, Alexandre Belloni wrote: Hi, On 27/06/2018 15:16:04+0200, Piotr Bugalski wrote: Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski This SoB line must match the author. It doesn't matter which

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-28 Thread Piotr Bugalski
Hi Tudor, On Thu, 28 Jun 2018, Tudor Ambarus wrote: Hi, Piotr, On 06/27/2018 10:52 AM, Piotr Bugalski wrote: General things to consider for the limitation in performance: - is the serial flash memory operating in Quad SPI? Yes, I've checked signal using logic analyzer, data

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-28 Thread Piotr Bugalski
Hi Tudor, On Thu, 28 Jun 2018, Tudor Ambarus wrote: Hi, Piotr, On 06/27/2018 10:52 AM, Piotr Bugalski wrote: General things to consider for the limitation in performance: - is the serial flash memory operating in Quad SPI? Yes, I've checked signal using logic analyzer, data

[RFC PATCH v2 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-06-27 Thread Piotr Bugalski
Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c index 6c5708bacad8

[RFC PATCH v2 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-06-27 Thread Piotr Bugalski
Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c index 6c5708bacad8

[RFC PATCH v2 3/6] mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Previously added spi-mem interface is now used instead of older approach. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 91 - 1 file changed, 18 insertions(+), 73 deletions(-) diff --git a/drivers/mtd

[RFC PATCH v2 3/6] mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Previously added spi-mem interface is now used instead of older approach. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 91 - 1 file changed, 18 insertions(+), 73 deletions(-) diff --git a/drivers/mtd

[RFC PATCH v2 6/6] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Atmel SAMA5D2 QuadSPI driver was moved from mtd to spi subsystem, this change is just moving DT-binding documentation. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- Documentation/devicetree/bindings/{mtd => spi}/atmel-quadspi.txt | 0 1 file changed, 0 insertions(+)

[RFC PATCH v2 2/6] mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi

2018-06-27 Thread Piotr Bugalski
This patch adds new interface to existing driver. New code is not used yet, it will be enabled later. Changes are prepared in small steps to keep patches readable. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 205

[RFC PATCH v2 6/6] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Atmel SAMA5D2 QuadSPI driver was moved from mtd to spi subsystem, this change is just moving DT-binding documentation. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- Documentation/devicetree/bindings/{mtd => spi}/atmel-quadspi.txt | 0 1 file changed, 0 insertions(+)

[RFC PATCH v2 2/6] mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi

2018-06-27 Thread Piotr Bugalski
This patch adds new interface to existing driver. New code is not used yet, it will be enabled later. Changes are prepared in small steps to keep patches readable. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 205

[RFC PATCH v2 4/6] mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Code used for previous interface is no longer needed. This change just removes obsolete code. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 389 1 file changed, 389 deletions(-) diff --git a/drivers

[RFC PATCH v2 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/Kconfig | 9 - drivers/mtd/spi-nor/Makefile | 1 - drivers/spi/Kconfig | 9 + drivers/spi/Makefile

[RFC PATCH v2 4/6] mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Code used for previous interface is no longer needed. This change just removes obsolete code. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 389 1 file changed, 389 deletions(-) diff --git a/drivers

[RFC PATCH v2 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/Kconfig | 9 - drivers/mtd/spi-nor/Makefile | 1 - drivers/spi/Kconfig | 9 + drivers/spi/Makefile

[RFC PATCH v2 0/6] New QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
finite waiting Piotr Bugalski (6): mtd: spi-nor: atmel-quaspi: Typo fix mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

[RFC PATCH v2 0/6] New QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
finite waiting Piotr Bugalski (6): mtd: spi-nor: atmel-quaspi: Typo fix mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Hi Tudor, Thank you very much for comments. On Tue, 26 Jun 2018, Tudor Ambarus wrote: Hi, Piotr, General things to consider for the limitation in performance: - is the serial flash memory operating in Quad SPI? Yes, I've checked signal using logic analyzer, data is transferred using all

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Hi Tudor, Thank you very much for comments. On Tue, 26 Jun 2018, Tudor Ambarus wrote: Hi, Piotr, General things to consider for the limitation in performance: - is the serial flash memory operating in Quad SPI? Yes, I've checked signal using logic analyzer, data is transferred using all

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Piotr Bugalski
Hi Boris, I'm a bit allergic to personal preferences in coding style, anyway thank you for comments and some important findings. On Thu, 21 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:23 +0200 Piotr Bugalski wrote: Kernel contains QSPI driver strongly tied

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Piotr Bugalski
Hi Boris, I'm a bit allergic to personal preferences in coding style, anyway thank you for comments and some important findings. On Thu, 21 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:23 +0200 Piotr Bugalski wrote: Kernel contains QSPI driver strongly tied

Re: [RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation

2018-06-21 Thread Piotr Bugalski
Hi Boris, On Wed, 20 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:24 +0200 Piotr Bugalski wrote: Documentation for DT-binding change. Suggested-by: Boris Brezillon I'm pretty sure I didn't make a single suggestion about the DT bindings you use here ;-). Ok

Re: [RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation

2018-06-21 Thread Piotr Bugalski
Hi Boris, On Wed, 20 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:24 +0200 Piotr Bugalski wrote: Documentation for DT-binding change. Suggested-by: Boris Brezillon I'm pretty sure I didn't make a single suggestion about the DT bindings you use here ;-). Ok

Re: [RFC PATCH 0/2] New QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Piotr Bugalski
Hi Boris, Thank you very much for quick response. On Wed, 20 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:22 +0200 Piotr Bugalski wrote: Hello, Atmel SAMA5D2 is equipped with two QSPI interfaces. These interfaces can work as in SPI-compatible mode or use two

Re: [RFC PATCH 0/2] New QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Piotr Bugalski
Hi Boris, Thank you very much for quick response. On Wed, 20 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:22 +0200 Piotr Bugalski wrote: Hello, Atmel SAMA5D2 is equipped with two QSPI interfaces. These interfaces can work as in SPI-compatible mode or use two

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-20 Thread Piotr Bugalski
Hi Mark, Thank you very much for quick answer. On Tue, 19 Jun 2018, Mark Brown wrote: On Mon, Jun 18, 2018 at 06:21:23PM +0200, Piotr Bugalski wrote: +static int atmel_qspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) +{ + return 0; +} If this can be empty should we

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-20 Thread Piotr Bugalski
Hi Mark, Thank you very much for quick answer. On Tue, 19 Jun 2018, Mark Brown wrote: On Mon, Jun 18, 2018 at 06:21:23PM +0200, Piotr Bugalski wrote: +static int atmel_qspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) +{ + return 0; +} If this can be empty should we

[RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation

2018-06-18 Thread Piotr Bugalski
Documentation for DT-binding change. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- .../devicetree/bindings/spi/spi_atmel-qspi.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt

[RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation

2018-06-18 Thread Piotr Bugalski
Documentation for DT-binding change. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- .../devicetree/bindings/spi/spi_atmel-qspi.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt

[RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-18 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-atmel-qspi.c | 480 +++ 3 files changed, 490 insertions(+) create mode

[RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-18 Thread Piotr Bugalski
using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-atmel-qspi.c | 480 +++ 3 files changed, 490 insertions(+) create mode

[RFC PATCH 0/2] New QuadSPI driver for Atmel SAMA5D2

2018-06-18 Thread Piotr Bugalski
help with performance improvement is highly welcome, especially for NAND-flash memories which offers higher capacity than NOR-flash used with previous driver. Best Regards, Piotr Piotr Bugalski (2): spi: Add QuadSPI driver for Atmel SAMA5D2 dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

[RFC PATCH 0/2] New QuadSPI driver for Atmel SAMA5D2

2018-06-18 Thread Piotr Bugalski
help with performance improvement is highly welcome, especially for NAND-flash memories which offers higher capacity than NOR-flash used with previous driver. Best Regards, Piotr Piotr Bugalski (2): spi: Add QuadSPI driver for Atmel SAMA5D2 dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2