[PATCH] mtd: spi-nor: cadence-quadspi: write upto 8-bytes data in STIG mode

2019-01-27 Thread Purna Chandra Mandal
-off-by: Purna Chandra Mandal --- drivers/mtd/spi-nor/cadence-quadspi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c index 04cedd3a2bf6..7f78f9409ddd 100644 --- a/drivers/mtd/spi

[PATCH] mtd: spi-nor: cadence-quadspi: write upto 8-bytes data in STIG mode

2018-12-13 Thread Purna Chandra Mandal
. Signed-off-by: Purna Chandra Mandal --- drivers/mtd/spi-nor/cadence-quadspi.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c index 04cedd3a2bf6..990934387fea 100644 --- a/drivers/mtd/spi-nor

[PATCH v2] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-02 Thread Purna Chandra Mandal
y.h...@imgtec.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: linux-m...@linux-mips.org Cc: Joshua Henderson <digitalp...@digitalpeer.com> Reported-by: Harvey Hunt <harvey.h...@imgtec.com> Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Reviewed-by: Harve

[PATCH v2] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-02 Thread Purna Chandra Mandal
Baechle Cc: linux-m...@linux-mips.org Cc: Joshua Henderson Reported-by: Harvey Hunt Signed-off-by: Purna Chandra Mandal Reviewed-by: Harvey Hunt --- Changes in v2: - update commit message arch/mips/pic32/pic32mzda/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

Re: [PATCH] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-02 Thread Purna Chandra Mandal
On 06/02/2016 02:45 PM, Harvey Hunt wrote: > Hi Purna, > > On 02/06/16 06:20, Purna Chandra Mandal wrote: >> Early clock API pic32_get_pbclk() is defined in early_clk.c and >> used by time.c and early_console.c. When CONFIG_EARLY_PRINTK isn't >> set, early_clk.c isn

Re: [PATCH] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-02 Thread Purna Chandra Mandal
On 06/02/2016 02:45 PM, Harvey Hunt wrote: > Hi Purna, > > On 02/06/16 06:20, Purna Chandra Mandal wrote: >> Early clock API pic32_get_pbclk() is defined in early_clk.c and >> used by time.c and early_console.c. When CONFIG_EARLY_PRINTK isn't >> set, early_clk.c isn

[PATCH] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-01 Thread Purna Chandra Mandal
in alphabetical order. Cc: Harvey Hunt <harvey.h...@imgtec.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: linux-m...@linux-mips.org Cc: Joshua Henderson <digitalp...@digitalpeer.com> Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- arch/mips/pic32/pic32mz

[PATCH] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-01 Thread Purna Chandra Mandal
in alphabetical order. Cc: Harvey Hunt Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Cc: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- arch/mips/pic32/pic32mzda/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/pic32/pic32mzda/Makefile b/arch

Re: [PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-06-01 Thread Purna Chandra Mandal
On 05/25/2016 09:32 PM, Harvey Hunt wrote: > Hi Purna, > > On 17/05/16 06:05, Purna Chandra Mandal wrote: >> PIC32 clock driver is now implemented as platform driver instead of >> as part of of_clk_init(). It meants all the clock modules are available >> quite late in th

Re: [PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-06-01 Thread Purna Chandra Mandal
On 05/25/2016 09:32 PM, Harvey Hunt wrote: > Hi Purna, > > On 17/05/16 06:05, Purna Chandra Mandal wrote: >> PIC32 clock driver is now implemented as platform driver instead of >> as part of of_clk_init(). It meants all the clock modules are available >> quite late in th

Re: [PATCH] clk: microchip: Remove CLK_IS_ROOT

2016-06-01 Thread Purna Chandra Mandal
On 06/02/2016 03:25 AM, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Purna Chandra Mandal <purna.man...@microchip.com> > Cc: Ralf Baechle <r...@linux-mips.org> >

Re: [PATCH] clk: microchip: Remove CLK_IS_ROOT

2016-06-01 Thread Purna Chandra Mandal
On 06/02/2016 03:25 AM, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Purna Chandra Mandal > Cc: Ralf Baechle > Cc: > Signed-off-by: Stephen Boyd > --- > >

[PATCH 08/11] dt/bindings: Correct clk binding example for PIC32 serial.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt | 2 +- 1 file changed, 1 ins

[PATCH 09/11] dt/bindings: Correct clk binding example for PIC32 DMT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt | 4 ++-- 1 file chan

[PATCH 08/11] dt/bindings: Correct clk binding example for PIC32 serial.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 09/11] dt/bindings: Correct clk binding example for PIC32 DMT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 11/11] dt/bindings: Correct clk binding example for PIC32 gpio.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/gpio/microchip,pic32-gpio.txt | 2 +- 1 file changed, 1 ins

[PATCH 10/11] dt/bindings: Correct clk binding example for PIC32 WDT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/watchdog/microchip,pic32-wdt.txt | 4 ++-- 1 file chan

[PATCH 11/11] dt/bindings: Correct clk binding example for PIC32 gpio.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/gpio/microchip,pic32-gpio.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 10/11] dt/bindings: Correct clk binding example for PIC32 WDT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 06/11] dt/bindings: Correct clk binding example for PIC32 SDHCI

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding documentation. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt | 2 +- 1 file chan

[PATCH 07/11] dt/bindings: Correct clk binding example for PIC32 pinctrl

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Documentation/devicetree/bindings/pinctrl/microchip,pic32-pinctrl.txt | 2 +- 1 file chan

[PATCH 06/11] dt/bindings: Correct clk binding example for PIC32 SDHCI

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding documentation. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 07/11] dt/bindings: Correct clk binding example for PIC32 pinctrl

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/pinctrl/microchip,pic32-pinctrl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-05-16 Thread Purna Chandra Mandal
early clock functions implemented for early console support. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Note: Please pull this complete series through the MIPS tree. --- arch/mips/pic32/pic32mzda/time.c | 13 - 1 file changed, 4 insertions(+), 9 del

[PATCH 04/11] irqchip: irq-pic32-evic: Fix bug with external interrupts.

2016-05-16 Thread Purna Chandra Mandal
From: Joshua Henderson <digitalp...@digitalpeer.com> The wrong external interrupt bits are being set, offset by 1. Signed-off-by: Joshua Henderson <digitalp...@digitalpeer.com> Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- drivers/irqchip/irq-pic32-evi

[PATCH 05/11] serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.

2016-05-16 Thread Purna Chandra Mandal
Allocated memory for 'sport->irq_fault_name' is freed twice, first in error check of 'if(!sport->irq_rx_name)' and other in fallback handler. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- drivers/tty/serial/pic32_uart.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-05-16 Thread Purna Chandra Mandal
early clock functions implemented for early console support. Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- arch/mips/pic32/pic32mzda/time.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/mips/pic32

[PATCH 04/11] irqchip: irq-pic32-evic: Fix bug with external interrupts.

2016-05-16 Thread Purna Chandra Mandal
From: Joshua Henderson The wrong external interrupt bits are being set, offset by 1. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- drivers/irqchip/irq-pic32-evic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-pic32-evic.c

[PATCH 05/11] serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.

2016-05-16 Thread Purna Chandra Mandal
Allocated memory for 'sport->irq_fault_name' is freed twice, first in error check of 'if(!sport->irq_rx_name)' and other in fallback handler. Signed-off-by: Purna Chandra Mandal --- drivers/tty/serial/pic32_uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/

[PATCH 02/11] clk: microchip: Initialize SOSC clock rate for PIC32MZDA.

2016-05-16 Thread Purna Chandra Mandal
Optional SOSC is an external fixed clock running at 32768HZ. So Initialize SOSC rate as per PIC32MZDA datasheet. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-pic32mzda

[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
pbclk_set_rate() is using readl_poll_timeout_atomic() even though spinlock is released. Fix it by replacing with readl_poll_timeout(). Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/mic

[PATCH 02/11] clk: microchip: Initialize SOSC clock rate for PIC32MZDA.

2016-05-16 Thread Purna Chandra Mandal
Optional SOSC is an external fixed clock running at 32768HZ. So Initialize SOSC rate as per PIC32MZDA datasheet. Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-pic32mzda.c | 1 + 1 file changed, 1 insertion

[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
pbclk_set_rate() is using readl_poll_timeout_atomic() even though spinlock is released. Fix it by replacing with readl_poll_timeout(). Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-core.c | 6 +++--- 1 file

[PATCH] spi: pic32-sqi: Fix linker error, undefined reference to `bad_dma_ops'.

2016-05-13 Thread Purna Chandra Mandal
by adding 'depends on HAS_DMA' in Kconfig. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 281ed5d..0f50755 100644 --- a/drivers/spi/Kconfig +++ b/drive

[PATCH] spi: pic32-sqi: Fix linker error, undefined reference to `bad_dma_ops'.

2016-05-13 Thread Purna Chandra Mandal
by adding 'depends on HAS_DMA' in Kconfig. Signed-off-by: Purna Chandra Mandal --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 281ed5d..0f50755 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -445,6 +445,7

[PATCH v11 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-05-13 Thread Purna Chandra Mandal
- now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Signed-off-by: Joshua Henderson <joshua.hender...@microchip.com> Cc:

[PATCH v11 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-05-13 Thread Purna Chandra Mandal
- now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note: Please

[PATCH v11 2/3] clk: microchip: Add Microchip PIC32 clock driver.

2016-05-13 Thread Purna Chandra Mandal
This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Note: Please pull this complete series through the MIPS tree. Changes in v11: - split

[PATCH v11 2/3] clk: microchip: Add Microchip PIC32 clock driver.

2016-05-13 Thread Purna Chandra Mandal
This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. Changes in v11: - split clock-init-data from clock-driver

[PATCH v11 1/3] dt/bindings/clk: Add PIC32 clock binding documentation.

2016-05-13 Thread Purna Chandra Mandal
Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Michael Turquette <mturque...@baylibre.com> Cc: Stephen Boyd <sb...@

[PATCH v11 0/3] PIC32MZDA Clock Driver

2016-05-13 Thread Purna Chandra Mandal
: Please pull this complete series through the MIPS tree. Purna Chandra Mandal (3): dt/bindings/clk: Add PIC32 clock binding documentation. clk: microchip: Add Microchip PIC32 clock driver. MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding .../devicetree/bindings/clock

[PATCH v11 1/3] dt/bindings/clk: Add PIC32 clock binding documentation.

2016-05-13 Thread Purna Chandra Mandal
Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd Acked-by: Rob Herring Acked-by: Michael Turquette --- Note: Please pull this complete series through

[PATCH v11 0/3] PIC32MZDA Clock Driver

2016-05-13 Thread Purna Chandra Mandal
: Please pull this complete series through the MIPS tree. Purna Chandra Mandal (3): dt/bindings/clk: Add PIC32 clock binding documentation. clk: microchip: Add Microchip PIC32 clock driver. MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding .../devicetree/bindings/clock

Re: [PATCH v10 2/3] clk: microchip: Add PIC32 clock driver

2016-05-09 Thread Purna Chandra Mandal
On 05/07/2016 05:40 AM, Stephen Boyd wrote: > Mostly nitpicks, although I'm worried about the iomem casting and > addition stuff. I suppose if those are fixed up at some later > time then I'm fine with this going through MIPS tree. > > On 03/23, Purna Chandra Mandal wrote:

Re: [PATCH v10 2/3] clk: microchip: Add PIC32 clock driver

2016-05-09 Thread Purna Chandra Mandal
On 05/07/2016 05:40 AM, Stephen Boyd wrote: > Mostly nitpicks, although I'm worried about the iomem casting and > addition stuff. I suppose if those are fixed up at some later > time then I'm fine with this going through MIPS tree. > > On 03/23, Purna Chandra Mandal wrote:

Re: [patch] spi: pic32-sqi: silence array overflow warning

2016-04-22 Thread Purna Chandra Mandal
xtp = rdesc[i + 1].bd_dma; > bd[PESQI_BD_COUNT - 1].bd_nextp = 0; > Reviewed-by: Purna Chandra Mandal <purna.man...@microchip.com>

Re: [patch] spi: pic32-sqi: silence array overflow warning

2016-04-22 Thread Purna Chandra Mandal
_sqi *sqi) > } > > /* Prepare BD: chain to next BD(s) */ > - for (i = 0, rdesc = sqi->ring; i < PESQI_BD_COUNT; i++) > + for (i = 0, rdesc = sqi->ring; i < PESQI_BD_COUNT - 1; i++) > bd[i].bd_nextp = rdesc[i + 1].bd_dma; > bd[PESQI_BD_COUNT - 1].bd_nextp = 0; > Reviewed-by: Purna Chandra Mandal

[PATCH v3 1/2] spi: pic32-sqi: add binding document for PIC32 Quad-SPI driver.

2016-04-15 Thread Purna Chandra Mandal
Document Device tree bindings for the quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Acked-by: Rob Herring <r...@kernel.org> Cc: Kumar Gala <ga...@codeaurora.org> Cc: Ian Campbell <ijc+devicet.

[PATCH v3 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-15 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA transfer mode and supports half-duplex communication for single, dual and quad SPI transactions. Signed-off-by: Purna Chandra Mandal <purna.

[PATCH v3 1/2] spi: pic32-sqi: add binding document for PIC32 Quad-SPI driver.

2016-04-15 Thread Purna Chandra Mandal
Document Device tree bindings for the quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring Cc: Kumar Gala Cc: Ian Campbell Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Mark Brown --- Changes in v3: - update exmaple

[PATCH v3 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-15 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA transfer mode and supports half-duplex communication for single, dual and quad SPI transactions. Signed-off-by: Purna Chandra Mandal Cc: Mark Brown

Re: [PATCH v2 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-15 Thread Purna Chandra Mandal
On 04/14/2016 11:25 AM, Mark Brown wrote: > On Wed, Apr 13, 2016 at 06:52:58PM +0530, Purna Chandra Mandal wrote: > >> +enable = readl(sqi->regs + PESQI_INT_ENABLE_REG); >> +status = readl(sqi->regs + PESQI_INT_STAT_REG); >> +if (!status) &

Re: [PATCH v2 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-15 Thread Purna Chandra Mandal
On 04/14/2016 11:25 AM, Mark Brown wrote: > On Wed, Apr 13, 2016 at 06:52:58PM +0530, Purna Chandra Mandal wrote: > >> +enable = readl(sqi->regs + PESQI_INT_ENABLE_REG); >> +status = readl(sqi->regs + PESQI_INT_STAT_REG); >> +if (!status) &

[PATCH v2 1/2] spi: pic32-sqi: add binding document for PIC32 Quad-SPI driver.

2016-04-13 Thread Purna Chandra Mandal
Document Device tree bindings for the quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Cc: Kumar Gala <ga...@codeaurora.org> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> Cc: Rob Herring <robh...@

[PATCH v2 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-13 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA transfer mode and supports half-duplex communication for single, dual and quad SPI transactions. Signed-off-by: Purna Chandra Mandal <purna.

[PATCH v2 1/2] spi: pic32-sqi: add binding document for PIC32 Quad-SPI driver.

2016-04-13 Thread Purna Chandra Mandal
Document Device tree bindings for the quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Cc: Kumar Gala Cc: Ian Campbell Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Mark Brown --- Changes in v2: None Documentation/devicetree/bindings

[PATCH v2 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-13 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA transfer mode and supports half-duplex communication for single, dual and quad SPI transactions. Signed-off-by: Purna Chandra Mandal Cc: Mark Brown

[PATCH 1/2] dt/bindings/spi: Add bindings for PIC32 Quad-SPI driver.

2016-04-13 Thread Purna Chandra Mandal
Document Device tree bindings for quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Cc: Rob Herring <robh...@kernel.org> Cc: Mark Brown <broo...@kernel.org> --- Documentation/devicetree/bindings/spi/

[PATCH 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-13 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA to perform half-duplex communication on SPI bus for single, dual and quad-lane SPI transactions. Signed-off-by: Purna Chandra Mandal <purna.

[PATCH 1/2] dt/bindings/spi: Add bindings for PIC32 Quad-SPI driver.

2016-04-13 Thread Purna Chandra Mandal
Document Device tree bindings for quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Cc: Rob Herring Cc: Mark Brown --- Documentation/devicetree/bindings/spi/sqi-pic32.txt | 18 ++ 1 file changed, 18 insertions(+) create mode

[PATCH 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-13 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA to perform half-duplex communication on SPI bus for single, dual and quad-lane SPI transactions. Signed-off-by: Purna Chandra Mandal Cc: Mark Brown

Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-12 Thread Purna Chandra Mandal
On 04/11/2016 08:40 PM, Rob Herring wrote: > On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote: >> Document devicetree binding for the USB controller >> and USB Phy found on Microchip PIC32 class devices. >> >> Signed-off-by: Purna Chandra Mandal

Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-12 Thread Purna Chandra Mandal
On 04/11/2016 08:40 PM, Rob Herring wrote: > On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote: >> Document devicetree binding for the USB controller >> and USB Phy found on Microchip PIC32 class devices. >> >> Signed-off-by: Purna Chandra Mandal &g

Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 07:04 PM, Sergei Shtylyov wrote: > On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote: > >> Document devicetree binding for the USB controller >> and USB Phy found on Microchip PIC32 class devices. >> >> Signed-off-by: Purna Chandra Mand

Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 07:04 PM, Sergei Shtylyov wrote: > On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote: > >> Document devicetree binding for the USB controller >> and USB Phy found on Microchip PIC32 class devices. >> >> Signed-off-by: Purna Chandra Mandal >&

Re: [PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:42 PM, Sergei Shtylyov wrote: > On 4/7/2016 4:02 PM, Purna Chandra Mandal wrote: > >>>> Document devicetree binding for the USB controller >>> >>> Device tree. >>> >> ack. >> >>>> and USB Phy found on Micro

Re: [PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:42 PM, Sergei Shtylyov wrote: > On 4/7/2016 4:02 PM, Purna Chandra Mandal wrote: > >>>> Document devicetree binding for the USB controller >>> >>> Device tree. >>> >> ack. >> >>>> and USB Phy found on Micro

Re: [PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:23 PM, Sergei Shtylyov wrote: > Hello. > > On 4/7/2016 2:16 PM, Purna Chandra Mandal wrote: > >> Document devicetree binding for the USB controller > >Device tree. > ack. >> and USB Phy found on Microchip PIC32 class devices. > >

Re: [PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:23 PM, Sergei Shtylyov wrote: > Hello. > > On 4/7/2016 2:16 PM, Purna Chandra Mandal wrote: > >> Document devicetree binding for the USB controller > >Device tree. > ack. >> and USB Phy found on Microchip PIC32 class devices. > >

Re: [PATCH v2 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:09 PM, Felipe Balbi wrote: > Purna Chandra Mandal <purna.man...@microchip.com> writes: >> From: Cristian Birsan <cristian.bir...@microchip.com> >> >> This driver adds support of PIC32 MUSB OTG controller as >> dual role device. It implem

Re: [PATCH v2 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 06:09 PM, Felipe Balbi wrote: > Purna Chandra Mandal writes: >> From: Cristian Birsan >> >> This driver adds support of PIC32 MUSB OTG controller as >> dual role device. It implements platform specific glue to >> reuse musb core. >> >>

[PATCH v2 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
From: Cristian Birsan <cristian.bir...@microchip.com> This driver adds support of PIC32 MUSB OTG controller as dual role device. It implements platform specific glue to reuse musb core. Signed-off-by: Cristian Birsan <cristian.bir...@microchip.com> Signed-off-by: Purna Chandra Manda

[PATCH v2 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
From: Cristian Birsan This driver adds support of PIC32 MUSB OTG controller as dual role device. It implements platform specific glue to reuse musb core. Signed-off-by: Cristian Birsan Signed-off-by: Purna Chandra Mandal In-reply-to: 460027775-20729-2-git-send-email-purna.man

[PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
Document devicetree binding for the USB controller and USB Phy found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Changes in v2: None .../bindings/usb/microchip,pic32-musb.txt | 67 ++ 1 file chang

[PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
Document devicetree binding for the USB controller and USB Phy found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal --- Changes in v2: None .../bindings/usb/microchip,pic32-musb.txt | 67 ++ 1 file changed, 67 insertions(+) create mode

[PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
Document devicetree binding for the USB controller and USB Phy found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- .../bindings/usb/microchip,pic32-musb.txt | 67 ++ 1 file changed, 67 insertions(+)

[PATCH v1 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
Document devicetree binding for the USB controller and USB Phy found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal --- .../bindings/usb/microchip,pic32-musb.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation

[PATCH v1 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
From: Cristian Birsan <cristian.bir...@microchip.com> This driver adds support of PIC32 MUSB OTG controller as dual role device. It implements platform specific glue to reuse musb core. Signed-off-by: Cristian Birsan <cristian.bir...@microchip.com> Signed-off-by: Purna Chandra Manda

[PATCH v1 2/2] usb: musb: pic32: Add USB DRC driver for PIC32 OTG controller.

2016-04-07 Thread Purna Chandra Mandal
From: Cristian Birsan This driver adds support of PIC32 MUSB OTG controller as dual role device. It implements platform specific glue to reuse musb core. Signed-off-by: Cristian Birsan Signed-off-by: Purna Chandra Mandal --- drivers/usb/musb/Kconfig | 9 +- drivers/usb/musb/Makefile

Re: [PATCH v5 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-04-04 Thread Purna Chandra Mandal
On 04/02/2016 10:05 PM, Mark Brown wrote: > On Fri, Apr 01, 2016 at 04:48:49PM +0530, Purna Chandra Mandal wrote: >> Document the devicetree bindings for the SPI peripheral found >> on Microchip PIC32 class devices. > Please use subject lines reflecting the style for the subsystem. ack. Will do.

Re: [PATCH v5 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-04-04 Thread Purna Chandra Mandal
On 04/02/2016 10:05 PM, Mark Brown wrote: > On Fri, Apr 01, 2016 at 04:48:49PM +0530, Purna Chandra Mandal wrote: >> Document the devicetree bindings for the SPI peripheral found >> on Microchip PIC32 class devices. > Please use subject lines reflecting the style for the subsystem. ack. Will do.

[PATCH v5 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-04-01 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes i

[PATCH v5 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-04-01 Thread Purna Chandra Mandal
Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Changes in v5: - report error for unsupported bits_per_word. - drop custom debugging messages in favor of core provided one. - use if-else instead of 'goto' - moved enable/disable of controller to prepare/unprepare_hardware()

[PATCH v5 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-04-01 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - fix indentation - add space after comma - moved 'cs

[PATCH v5 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-04-01 Thread Purna Chandra Mandal
Signed-off-by: Purna Chandra Mandal --- Changes in v5: - report error for unsupported bits_per_word. - drop custom debugging messages in favor of core provided one. - use if-else instead of 'goto' - moved enable/disable of controller to prepare/unprepare_hardware() - refactor setup(), just retain cs-dese

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-31 Thread Purna Chandra Mandal
On 03/30/2016 09:18 PM, Mark Brown wrote: > On Wed, Mar 30, 2016 at 04:19:16PM +0530, Purna Chandra Mandal wrote: >> On 03/29/2016 09:55 PM, Mark Brown wrote: >>> On Tue, Mar 29, 2016 at 05:32:41PM +0530, Purna Chandra Mandal wrote: >>>> MMC_SPI will have to termi

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-31 Thread Purna Chandra Mandal
On 03/30/2016 09:18 PM, Mark Brown wrote: > On Wed, Mar 30, 2016 at 04:19:16PM +0530, Purna Chandra Mandal wrote: >> On 03/29/2016 09:55 PM, Mark Brown wrote: >>> On Tue, Mar 29, 2016 at 05:32:41PM +0530, Purna Chandra Mandal wrote: >>>> MMC_SPI will have to termi

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-30 Thread Purna Chandra Mandal
On 03/29/2016 09:55 PM, Mark Brown wrote: > On Tue, Mar 29, 2016 at 05:32:41PM +0530, Purna Chandra Mandal wrote: > >> It is required for MMC-over-SPI support. Linux MMC_SPI driver sometimes >> (depending on some logic) want chip-select to be kept enabled (using >>

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-30 Thread Purna Chandra Mandal
On 03/29/2016 09:55 PM, Mark Brown wrote: > On Tue, Mar 29, 2016 at 05:32:41PM +0530, Purna Chandra Mandal wrote: > >> It is required for MMC-over-SPI support. Linux MMC_SPI driver sometimes >> (depending on some logic) want chip-select to be kept enabled (using >>

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-29 Thread Purna Chandra Mandal
On 03/29/2016 12:56 AM, Mark Brown wrote: > On Wed, Mar 23, 2016 at 07:12:56PM +0530, Purna Chandra Mandal wrote: > >> +switch (bits_per_word) { >> +default: >> +case 8: > Are you sure that all bits per word settings other than those explicitly > supporte

Re: [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-29 Thread Purna Chandra Mandal
On 03/29/2016 12:56 AM, Mark Brown wrote: > On Wed, Mar 23, 2016 at 07:12:56PM +0530, Purna Chandra Mandal wrote: > >> +switch (bits_per_word) { >> +default: >> +case 8: > Are you sure that all bits per word settings other than those explicitly > supporte

[PATCH v4 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-03-23 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v4: None Changes in v3: None Changes in v2: - fix indentation

[PATCH v4 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-03-23 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring --- Changes in v4: None Changes in v3: None Changes in v2: - fix indentation - add space after comma - moved 'cs-gpios' section under

[PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-23 Thread Purna Chandra Mandal
Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> --- Changes in v4: - report error and bailout in case of missing irq(s). - remove fallback to PIO mode in case of failure in DMA transfer. - remove polling based PIO completely. - drop spinlock - update error message and comments

[PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-23 Thread Purna Chandra Mandal
Signed-off-by: Purna Chandra Mandal --- Changes in v4: - report error and bailout in case of missing irq(s). - remove fallback to PIO mode in case of failure in DMA transfer. - remove polling based PIO completely. - drop spinlock - update error message and comments. Changes in v3: - drop 'owner' field

[PATCH v10 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-03-23 Thread Purna Chandra Mandal
- now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Note: Please pull this complete series through the MIPS tree. --- C

[PATCH v10 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-03-23 Thread Purna Chandra Mandal
- now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Note: Please pull this complete series through the MIPS tree. --- Changes in v10: None Changes in v9: None

[PATCH v10 2/3] clk: microchip: Add PIC32 clock driver

2016-03-23 Thread Purna Chandra Mandal
This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal <purna.man...@microchip.com> Note: Please pull this complete series through the MIPS tree. --- Changes in v10:

[PATCH v10 0/3] PIC32MZDA Clock Driver

2016-03-23 Thread Purna Chandra Mandal
. Purna Chandra Mandal (3): dt/bindings: Add PIC32 clock binding documentation clk: microchip: Add PIC32 clock driver MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding .../devicetree/bindings/clock/microchip,pic32.txt | 39 + arch/mips/boot/dts/pic32/pic32mzda-clk.dtsi

  1   2   >