Re: [PATCHv3 2/3] drivers: mtd: devices: Add quad read support.

2013-10-24 Thread Sourav Poddar
Hi Brian, On Thursday 24 October 2013 10:37 PM, Brian Norris wrote: > On Thu, Oct 24, 2013 at 02:14:59PM +0530, Sourav Poddar wrote: >> On Thursday 24 October 2013 01:04 PM, Brian Norris wrote: >>> I just submitted my cleanups which (among other things) fixes this bug. >>&g

Re: [PATCHv3 2/3] drivers: mtd: devices: Add quad read support.

2013-10-24 Thread Sourav Poddar
Hi Brian, On Thursday 24 October 2013 01:04 PM, Brian Norris wrote: > On Thu, Oct 24, 2013 at 11:14:24AM +0530, Sourav Poddar wrote: >> On Thursday 24 October 2013 06:36 AM, Brian Norris wrote: >>> On Wed, Oct 09, 2013 at 08:54:43PM +0530, Sourav Poddar wrote: >>>> --

Re: [PATCHv3 2/3] drivers: mtd: devices: Add quad read support.

2013-10-23 Thread Sourav Poddar
Hi Brian, Thanks for the review, my reply inlined. On Thursday 24 October 2013 06:36 AM, Brian Norris wrote: > + others > > On Wed, Oct 09, 2013 at 08:54:43PM +0530, Sourav Poddar wrote: >> Some flash also support quad read mode. >> Adding support for adding quad mode in m

Re: [PATCH 0/3]Add quad/memory mapped support for SPI flash.

2013-10-23 Thread Sourav Poddar
"PATCHv3" in Gmail...) and the inconsistent naming in your > patch series. (I see PATCH, PATCHv3, and RFC/PATCH.) I'll try to prevent > that in the future. > Sorry for this, I tried to keep the tag according to the status of the patch. I will try to be uniform in my patch subject. >

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-18 Thread Sourav Poddar
On Friday 18 October 2013 06:38 PM, Mark Brown wrote: > On Fri, Oct 18, 2013 at 05:18:15PM +0530, Sourav Poddar wrote: >> On Friday 18 October 2013 04:01 PM, Mark Brown wrote: >>> On Fri, Oct 18, 2013 at 12:57:51PM +0530, Sourav Poddar wrote: >>>> 3. For filling

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-18 Thread Sourav Poddar
On Friday 18 October 2013 04:01 PM, Mark Brown wrote: > On Fri, Oct 18, 2013 at 12:57:51PM +0530, Sourav Poddar wrote: > >> 3. For filling memory mapped register in qspi controller, we can >> pass that information >> from dt rather than hardcoding as macros. >

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-18 Thread Sourav Poddar
Hi, On Friday 18 October 2013 11:40 AM, Sourav Poddar wrote: > On Friday 18 October 2013 11:26 AM, Trent Piepho wrote: >> On Thu, Oct 17, 2013 at 9:06 PM, Sourav Poddar >> wrote: >>> On Friday 18 October 2013 05:12 AM, Mark Brown wrote: >>>>> Are you looki

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-17 Thread Sourav Poddar
On Friday 18 October 2013 11:26 AM, Trent Piepho wrote: > On Thu, Oct 17, 2013 at 9:06 PM, Sourav Poddar wrote: >> On Friday 18 October 2013 05:12 AM, Mark Brown wrote: >>>> Are you looking for comparison between read_via_dma() v/s memcpy() ? >>> No, I'm loo

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-17 Thread Sourav Poddar
On Friday 18 October 2013 05:12 AM, Mark Brown wrote: > On Thu, Oct 17, 2013 at 01:03:26PM +, Gupta, Pekon wrote: > >> mtd_read() { >> if (flash->mmap_mode) >> if (dma_available) >> read_via_dma(destination, source, length); >> else >>

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-17 Thread Sourav Poddar
Hi All, On Wednesday 16 October 2013 12:03 AM, Gupta, Pekon wrote: >> From: Trent Piepho >> Are there any numbers to show if memory mapped read support is a >> benefit in Linux? There is some question as to whether it's useful at >> all or not. >> >> If it is, I think low latency for small reads i

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-15 Thread Sourav Poddar
Hi Brian, On Tuesday 15 October 2013 11:31 PM, Brian Norris wrote: > Hi Sourav, > > On Tue, Oct 15, 2013 at 06:53:46PM +0530, Sourav Poddar wrote: >> On Tuesday 15 October 2013 06:16 PM, Mark Brown wrote: >>> On Tue, Oct 15, 2013 at 05:19:07PM +0530, Sourav Poddar wrote: &g

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-15 Thread Sourav Poddar
On Tuesday 15 October 2013 06:16 PM, Mark Brown wrote: > On Tue, Oct 15, 2013 at 05:19:07PM +0530, Sourav Poddar wrote: >> On Tuesday 15 October 2013 04:46 PM, Mark Brown wrote: >>> Can you fix this by enabling the clock is enabled when you return the >>> buffer to the M

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-15 Thread Sourav Poddar
Hi Mark, On Tuesday 15 October 2013 04:46 PM, Mark Brown wrote: > On Tue, Oct 15, 2013 at 11:36:47AM +0530, Sourav Poddar wrote: > >> But there is one problem which I faced while trying to achieve the >> above. Currently, spi >> framework takes care of the runti

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-14 Thread Sourav Poddar
Hi Mark, On Friday 11 October 2013 03:38 PM, Mark Brown wrote: > On Thu, Oct 10, 2013 at 04:38:19PM +0530, Sourav Poddar wrote: >> On Thursday 10 October 2013 03:44 PM, Mark Brown wrote: >>> Essentially what it looks like this hardware is trying to do is adapt a >>> se

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-10 Thread Sourav Poddar
Hi Mark, On Thursday 10 October 2013 03:44 PM, Mark Brown wrote: > On Thu, Oct 10, 2013 at 02:22:28PM +0530, Sourav Poddar wrote: > >> [Trent]: With mapping driver, I believe you are hinting at >> drivers/mtd/maps? I had >> a look at it and what I got is that it is us

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-10 Thread Sourav Poddar
On Thursday 10 October 2013 03:44 PM, Mark Brown wrote: > On Thu, Oct 10, 2013 at 02:22:28PM +0530, Sourav Poddar wrote: > >> [Trent]: With mapping driver, I believe you are hinting at >> drivers/mtd/maps? I had >> a look at it and what I got is that it is used/suitable for

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-10 Thread Sourav Poddar
Hi All, On Thursday 10 October 2013 07:57 AM, Trent Piepho wrote: > On Wed, Oct 9, 2013 at 12:01 PM, Peter Korsgaard wrote: >>> "Mark" == Mark Brown writes: >> Mark> I'm not convinced that this is the most useful API, it sounds like >> the >> Mark> hardware can "memory map" the entire

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-09 Thread Sourav Poddar
On Wednesday 09 October 2013 11:10 PM, Mark Brown wrote: > On Wed, Oct 09, 2013 at 10:24:33PM +0530, Sourav Poddar wrote: > >> Here is the exact feature usecase.. >> TI qspi controller supports memory mapped read. These memory >> mapped read configuration depends on th

Re: [PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-09 Thread Sourav Poddar
On Wednesday 09 October 2013 09:37 PM, Mark Brown wrote: > On Wed, Oct 09, 2013 at 08:54:42PM +0530, Sourav Poddar wrote: > >> Qspi controller also supports memory mapped read. Patch >> adds support for the same. >> In memory mapped read, controller need to be switched to

[RFC/PATCH 3/3] drivers: mtd: devices: Add memory mapped read support.

2013-10-09 Thread Sourav Poddar
Add memory mapped flash read support. In memory mapped, only the len, from and t->rx_buf is required from the flash side, while other configuration will be taken care of from the respective controller side with the help of the transfer flag(memory_map). Signed-off-by: Sourav Poddar --- driv

[PATCH 1/3] spi/qspi: Add memory mapped read support.

2013-10-09 Thread Sourav Poddar
mapped address space. Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c | 140 - 1 files changed, 125 insertions(+), 15 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 0b71270..2722840 100644 --- a/drivers

[PATCHv3 2/3] drivers: mtd: devices: Add quad read support.

2013-10-09 Thread Sourav Poddar
Some flash also support quad read mode. Adding support for adding quad mode in m25p80 for spansion and macronix flash. Signed-off-by: Sourav Poddar --- v2->v3: Add macronix flash support drivers/mtd/devices/m25p80.c | 184 -- 1 files changed,

[PATCH 0/3]Add quad/memory mapped support for SPI flash.

2013-10-09 Thread Sourav Poddar
This patch add quad/memory mapped support in flash driver(m25p80). Added support for quad memory mapped for TI qspi controller also. This patch has been tested with some internal dts data. Sourav Poddar (3): spi/qspi: Add memory mapped read support. drivers: mtd: devices: Add quad read

Re: [PATCH 4/4] spi: Simplify bit width checking code

2013-09-25 Thread Sourav Poddar
x/spi/spi.h > +++ b/include/linux/spi/spi.h > @@ -549,6 +549,8 @@ struct spi_transfer { > unsignedcs_change:1; > unsignedtx_nbits:2; > unsignedrx_nbits:2; > +/* These should be assigned sequentially, so that numeric comparisons produce >

Re: [PATCH 3/4] spi: Encode data width more efficiently

2013-09-25 Thread Sourav Poddar
t; -#define SPI_NBITS_DUAL 0x02 /* 2bits transfer */ > -#define SPI_NBITS_QUAD 0x04 /* 4bits transfer */ > + unsigned tx_nbits:2; > + unsignedrx_nbits:2; > +#define SPI_NBITS_SINGLE0x00 /* 1x wide transfer */ > +#de

Re: [PATCH 2/4] spi: Order fields in spi_device for better packing

2013-09-25 Thread Sourav Poddar
int irq; > void *controller_state; > void*controller_data; > Reviewed-by: Sourav Poddar Tested-by: Sourav Poddar -- October Webinars: Code for Performance Free Intel webina

Re: [PATCH 1/4] spi: Use of_property_read_u32

2013-09-25 Thread Sourav Poddar
/ > - prop = of_get_property(nc, "spi-max-frequency",&len); > - if (!prop || len< sizeof(*prop)) { > - dev_err(&master->dev, "%s has no 'spi-max-frequency' > property\n", > -

[PATCH] spi: conditional checking of mode and transfer bits.

2013-08-22 Thread Sourav Poddar
UAD(SPI_NBITS_QUAD) (3)if "@spi_device->mode & SPI_3WIRE", then tx/rx_nbits should be in single(SPI_NBITS_SINGLE) Checking of the tx/rx transfer bits and mode bits should be done conditionally based on type of buffer filled else EINVAL condition will always get hit e

Re: [PATCH v3 1/2]spi: DUAL and QUAD support

2013-08-22 Thread Sourav Poddar
On Thursday 22 August 2013 06:51 PM, Mark Brown wrote: > On Thu, Aug 22, 2013 at 06:05:11PM +0530, Sourav Poddar wrote: >> On Sunday 11 August 2013 03:45 PM, wangyuhang wrote: >>> + /* check transfer tx/rx_nbits: >>> +* 1. keep the value is not o

Re: [PATCH v3 1/2]spi: DUAL and QUAD support

2013-08-22 Thread Sourav Poddar
Hi Mark, Wang, On Sunday 11 August 2013 03:45 PM, wangyuhang wrote: > fix the previous patch some mistake below: > 1. DT in slave node, use "spi-tx-nbits =<1/2/4>" in place of using > "spi-tx-dual, spi-tx-quad" directly, same to rx. So correct the > previous way to get the property in @of_r

Re: [PATCHv11] drivers: spi: Add qspi flash controller

2013-08-21 Thread Sourav Poddar
Hi Mark, On Tuesday 20 August 2013 06:55 PM, Sourav Poddar wrote: > The patch add basic support for the quad spi controller. > > QSPI is a kind of spi module that allows single, > dual and quad read access to external spi devices. The module > has a memory mapped interface which

[PATCHv11] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
Signed-off-by: Sourav Poddar --- v10->v11: - Fix a typo Left 3 warnings(80 characters) for better readibilty of code. These was posted till now as a two patch series. Dropping the 2nd patch as of now, will add once the support for multiple data lines are added in SPI framework(the patch is un

Re: [PATCHv10] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
On Tuesday 20 August 2013 06:44 PM, Felipe Balbi wrote: > Hi, > > On Tue, Aug 20, 2013 at 06:35:25PM +0530, Sourav Poddar wrote: >> +static int qspi_transfer_msg(struct ti_qspi *qspi, struct spi_transfer *t) >> +{ >> +int ret; >> + >> +if (t->tx_b

[PATCHv10] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - mtd_debug read to read data back. - mtd_debug write to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- v9->v10: -

Re: [PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-19 Thread Sourav Poddar
Hi Felipe, > Hi, > > On Sun, Aug 04, 2013 at 02:28:09PM +0530, Sourav Poddar wrote: >> diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c >> new file mode 100644 >> index 000..4328ae2 >> --- /dev/null >> +++ b/drivers/spi/spi-ti-qspi.

Re: [PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-06 Thread Sourav Poddar
On Sunday 04 August 2013 02:28 PM, Sourav Poddar wrote: > The patch add basic support for the quad spi controller. > > QSPI is a kind of spi module that allows single, > dual and quad read access to external spi devices. The module > has a memory mapped interface which provide d

[PATCHv9 0/2] Add ti qspi controller

2013-08-04 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support Documentation/devicetree/bindings/spi

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-08-04 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c | 22

[PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-04 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- v8->v9 - fix return va

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-08-01 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c | 22

[PATCHv8 0/2] Add ti qspi controller

2013-08-01 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support Documentation/devicetree/bindings

[PATCHv8 1/2] drivers: spi: Add qspi flash controller

2013-08-01 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- I have kept few more than 80

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Thursday 01 August 2013 12:09 AM, Trent Piepho wrote: > On Tue, Jul 30, 2013 at 10:47 PM, Sourav Poddar wrote: >> Test details: >> - >> Tested this on dra7 board. >> Test1: Ran mtd_stesstest for 4 iterations. >> - All iterations went throu

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Wednesday 31 July 2013 03:18 PM, Felipe Balbi wrote: > Hi, > > On Wed, Jul 31, 2013 at 03:10:40PM +0530, Sourav Poddar wrote: >>>> words can be of any length (1, 2 or 4) bytes. So, I think it should be >>>> decremented by 1 only. >>> this is wrong. >

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Wednesday 31 July 2013 02:50 PM, Felipe Balbi wrote: > Hi, > > On Wed, Jul 31, 2013 at 02:40:51PM +0530, Sourav Poddar wrote: >>>> +#define QSPI_FRAME_MAX 0xfff >>> Frame max is 4096, 0x1000, right ? >> Yes, >> this macro was used

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
HI, On Wednesday 31 July 2013 01:19 PM, Felipe Balbi wrote: > Hi, > > On Wed, Jul 31, 2013 at 11:17:52AM +0530, Sourav Poddar wrote: >> diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c >> new file mode 100644 >> index 000..3d10b69 >> --- /dev

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-30 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c | 15 +-- 1

[PATCHv7 0/2] Add ti qspi controller

2013-07-30 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ And some other cleanups. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support

[PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-30 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- v6->v7: - Use "co

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-30 Thread Sourav Poddar
Hi Felipe, On Monday 29 July 2013 06:05 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 29, 2013 at 04:45:02PM +0530, Sourav Poddar wrote: >>>>>>>> + irq = platform_get_irq(pdev, 0); >>>>>>>> + if (irq< 0) { >

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 04:39 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 29, 2013 at 04:34:41PM +0530, Sourav Poddar wrote: >>>>>> +irq = platform_get_irq(pdev, 0); >>>>>> +if (irq<0) { >>>>

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:50 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 29, 2013 at 03:42:03PM +0530, Sourav Poddar wrote: >>>> + frame_length = (m->frame_length<< 3) / spi->bits_per_word; >>> there's another way to optimize this. If you assume

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:01 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 29, 2013 at 12:52:29PM +0530, Sourav Poddar wrote: >> diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c >> new file mode 100644 >> index 000..51fe95f >> --- /dev/null &

Re: [RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:02 PM, Felipe Balbi wrote: > On Mon, Jul 29, 2013 at 12:52:30PM +0530, Sourav Poddar wrote: >> Since, qspi controller uses quad read. >> >> Configuring the command register, if the transfer of data needs >> dual or quad lines. >> >>

[PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- v5->v6 - Modified r

[PATCHv6 0/2] Add ti qspi controller

2013-07-29 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ And some other cleanups. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support

[PATCHv5 1/2] drivers: spi: Add qspi flash controller

2013-07-26 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar --- - Modified the interrupt

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-26 Thread Sourav Poddar
ongoing discussion in the community. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c | 16 ++-- 1 files changed, 14

[PATCHv5 0/2] Add qspi controller

2013-07-26 Thread Sourav Poddar
This patch series add support for ti qspi controller. The previous version link is here: https://lkml.org/lkml/2013/7/18/154 patch 1 of the previous version already picked. Resending other two with comments fixed. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-19 Thread Sourav Poddar
Hi Mark, On Thursday 18 July 2013 04:12 PM, Mark Brown wrote: > On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: > >> QSPI is a kind of spi module that allows single, >> dual and quad read access to external spi devices. The module >> has a memory mapped

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-19 Thread Sourav Poddar
Hi Felipe, On Thursday 18 July 2013 04:54 PM, Felipe Balbi wrote: > On Thu, Jul 18, 2013 at 04:48:41PM +0530, Sourav Poddar wrote: >>>> +static void qspi_write_msg(struct ti_qspi *qspi, struct spi_transfer *t) >>>> +{ >>>> + const u8 *txbuf; >>>>

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Friday 19 July 2013 12:38 AM, Trent Piepho wrote: > On Thu, Jul 18, 2013 at 3:01 AM, Sourav Poddar wrote: >> +Required properties: >> +- compatible : should be "ti,dra7xxx-qspi". >> +- reg: Should contain QSPI registers location and length. >> +- #address

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
Hi Mark, On Thursday 18 July 2013 08:12 PM, Mark Brown wrote: > On Thu, Jul 18, 2013 at 04:31:58PM +0300, Felipe Balbi wrote: >> On Thu, Jul 18, 2013 at 02:18:22PM +0100, Mark Brown wrote: >>> So why do we report that we handled the interrupt then? Shouldn't we at >>> least warn if we're getting s

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:54 PM, Felipe Balbi wrote: > On Thu, Jul 18, 2013 at 04:48:41PM +0530, Sourav Poddar wrote: >>>> +static void qspi_write_msg(struct ti_qspi *qspi, struct spi_transfer *t) >>>> +{ >>>> + const u8 *txbuf; >>>>

Re: [RFC/PATCHv2 3/3] driver: spi: Add quad spi read support

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:14 PM, Mark Brown wrote: > On Thu, Jul 18, 2013 at 03:31:27PM +0530, Sourav Poddar wrote: >> Since, qspi controller uses quad read. >> >> Configuring the command register, if the transfer of data needs >> dual or quad lines. >> >>

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:12 PM, Mark Brown wrote: > On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: > >> QSPI is a kind of spi module that allows single, >> dual and quad read access to external spi devices. The module >> has a memory mapped interf

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
Hi Felipe, On Thursday 18 July 2013 03:54 PM, Felipe Balbi wrote: > Hi, > > it might be just me, but ... > > On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: >> +static inline unsigned long ti_qspi_readl_data(struct ti_qspi *qspi, >> +

[PATCH 0/3] spi changes and ti quad spi controller.

2013-07-18 Thread Sourav Poddar
Add support for calculating message length in spi framework. Add support for quad spi controller. Patch 2 of this series had been posted before. Sending along with the series along with ather propsed change. Sourav Poddar (3): driver: spi: Modify core to compute the message length drivers

[RFC/PATCHv2 3/3] driver: spi: Add quad spi read support

2013-07-18 Thread Sourav Poddar
as the parent patch goes[1] [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- v1->v2 Added support for dual also. drivers/spi/spi-ti-qspi.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/spi/

[PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar --- v3->v4 - Did miscellaneous cleanup - Added power management supp

[RFC/PATCHv2 1/3] driver: spi: Modify core to compute the message length

2013-07-18 Thread Sourav Poddar
Make spi core calculate the message length while populating the other transfer parameters. Usecase, driver can use it to populate framelength filed in their controller. Signed-off-by: Sourav Poddar --- drivers/spi/spi.c |1 + include/linux/spi/spi.h |1 + 2 files changed, 2

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-11 Thread Sourav Poddar
On Monday 08 July 2013 08:02 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 08, 2013 at 07:12:59PM +0530, Sourav Poddar wrote: >> +static inline unsigned long dra7xxx_readl(struct dra7xxx_qspi *qspi, >> +unsigned long reg) >> +{ >> +

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-09 Thread Sourav Poddar
On Monday 08 July 2013 08:02 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 08, 2013 at 07:12:59PM +0530, Sourav Poddar wrote: >> +static inline unsigned long dra7xxx_readl(struct dra7xxx_qspi *qspi, >> +unsigned long reg) >> +{ >> +

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-09 Thread Sourav Poddar
On Tuesday 09 July 2013 02:03 AM, Nishanth Menon wrote: > On 19:12-20130708, Sourav Poddar wrote: > [..] > generic comment, given our historical mistakes of making drivers > specific to a SoC family, it never is. > > Now, ti-qspi in file name is a step in the right direction,

[RFC/PATCH 3/3] driver: spi: Add quad spi read support

2013-07-08 Thread Sourav Poddar
://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar --- drivers/spi/spi-ti-qspi.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 430de9c..307cbed 100644 --- a/drivers/spi/spi-ti

[RFC/PATCH 1/3] driver: spi: Modify core to compute the message length

2013-07-08 Thread Sourav Poddar
Make spi core calculate the message length while populating the other transfer parameters. This will be useful in cases where controller driver need to configure its framelength field without iterating through the linklist again in the driver controller. Signed-off-by: Sourav Poddar

[PATCH 0/3] spi changes and ti quad spi controller.

2013-07-08 Thread Sourav Poddar
Add support for calculating message length in spi framework. Add support for quad spi controller. Patch 2 of this series had been posted before. Sending along with the series along with ather propsed change. Sourav Poddar (3): driver: spi: Modify core to compute the message length drivers

[PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-08 Thread Sourav Poddar
configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar --- v2->v3 1. Add threaded irq support 2. made the driver more generic in te

Re: SPI: DUAL/QUAD support

2013-07-05 Thread Sourav Poddar
On Friday 05 July 2013 02:47 PM, yuhang wang wrote: > 2013/7/5 Sourav Poddar: >> On Friday 05 July 2013 02:37 PM, yuhang wang wrote: >>>> if (!quad_mode) >>>> dra7xxx_writel(qs

Re: SPI: DUAL/QUAD support

2013-07-05 Thread Sourav Poddar
On Friday 05 July 2013 02:37 PM, yuhang wang wrote: >> if (!quad_mode) >> dra7xxx_writel(qspi, qspi->cmd | QSPI_RD_SNGL, >> QSPI_SPI_CMD_REG); >> else >>

Re: SPI: DUAL/QUAD support

2013-07-05 Thread Sourav Poddar
On Friday 05 July 2013 02:18 PM, yuhang wang wrote: >> To add to all the discussion going on, >> I am using a qspi controller with a spansion flash device. >> I tried using quad read mode bit, and what is required to change in >> my case is the following: >> >> 1. enable quad mode in flash configur

Re: SPI: DUAL/QUAD support

2013-07-05 Thread Sourav Poddar
On Friday 05 July 2013 01:05 PM, Johannes Stezenbach wrote: > On Fri, Jul 05, 2013 at 06:45:01AM +, Gupta, Pekon wrote: >>> Just as Johannes said. In my patch m25p80's changes is incomplete. >>> Because my inicial aim is to add the transfer width member to tell >>> controller >>> the mode flas

Re: SPI: DUAL/QUAD support

2013-07-05 Thread Sourav Poddar
On Friday 05 July 2013 11:55 AM, yuhang wang wrote: > Hi Thomas: > >>> Well, there's two bits here. One is the support in the client drivers >>> for using the extra data lines and the other is the support in the SPI >>> core for telling controllers to do this. We need that second bit in >>> place

Re: [PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
Hi Sekhar, On Tuesday 02 July 2013 04:27 PM, Sekhar Nori wrote: > On 7/2/2013 2:26 PM, Sourav Poddar wrote: >> The patch add basic support for the quad spi controller. >> >> QSPI is a kind of spi module that allows single, >> dual and quad read access to external spi d

Re: [PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
On Tuesday 02 July 2013 04:01 PM, Felipe Balbi wrote: > Hi, > > On Tue, Jul 02, 2013 at 03:53:49PM +0530, Sourav Poddar wrote: >> On Tuesday 02 July 2013 03:46 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Tue, Jul 02, 2013 at 03:30:42PM +053

Re: [PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
Hi Mark, On Tuesday 02 July 2013 03:47 PM, Mark Brown wrote: > On Tue, Jul 02, 2013 at 12:44:04PM +0300, Felipe Balbi wrote: >> On Tue, Jul 02, 2013 at 10:32:47AM +0100, Mark Brown wrote: >>> Does this hardware really support anything other than 8 bits per word? >>> There is no code in the driver w

Re: [PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
On Tuesday 02 July 2013 03:46 PM, Felipe Balbi wrote: > Hi, > > On Tue, Jul 02, 2013 at 03:30:42PM +0530, Sourav Poddar wrote: >>>> +static int dra7xxx_qspi_setup(struct spi_device *spi) >>>> +{ >>>> + struct dra7xxx_qspi *qspi = >>>&

Re: [PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
Hi Felipe, On Tuesday 02 July 2013 02:54 PM, Felipe Balbi wrote: > Hi, > > On Tue, Jul 02, 2013 at 02:26:39PM +0530, Sourav Poddar wrote: >> diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile >> index 33f9c09..ea14eff 100644 >> --- a/drivers/spi/Makefile &g

[PATCHv2] drivers: spi: Add qspi flash controller

2013-07-02 Thread Sourav Poddar
configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar --- This patch was sent as a part of a series[1]; but this can go in as a

Re: [PATCH 2/3] drivers: spi: Add qspi flash controller

2013-07-01 Thread Sourav Poddar
Hi Mark, Thanks for the review. Comments in lined. On Monday 01 July 2013 04:26 PM, Mark Brown wrote: > On Wed, Jun 26, 2013 at 01:11:11PM +0530, Sourav Poddar wrote: > >> +static int dra7xxx_qspi_prepare_xfer(struct spi_master *master) >> +{ >> +return 0; &

Re: [PATCH 2/3] drivers: spi: Add qspi flash controller

2013-06-30 Thread Sourav Poddar
+ Artem On Wednesday 26 June 2013 01:11 PM, Sourav Poddar wrote: > The patch add basic support for the quad spi controller. > > QSPI is a kind of spi module that allows single, > dual and quad read access to external spi devices. The module > has a memory mapped interface which

Re: [PATCH 3/3] drivers: mtd: spinand: Add qspi spansion flash controller

2013-06-30 Thread Sourav Poddar
+ Artem On Wednesday 26 June 2013 01:11 PM, Sourav Poddar wrote: > The patch adds support for spansion s25fl256s spi flash controller. > Currently, the patch supports only SPI based transaction. > > As, the qspi to which flash is attached supports memory mapped interface, > suppor

Re: [PATCH 0/3] spi/mtd generic framework,ti qspi controller and spansion driver

2013-06-30 Thread Sourav Poddar
+ Artem On Wednesday 26 June 2013 01:11 PM, Sourav Poddar wrote: > This patch series add support for the generic spi based flash > framework(spinand_mtd), which can be used used by any spi based flash device > to > attach itself to mtd framework. > > The first patch of this se

Re: [PATCH 1/3] drivers: mtd: spinand: Add generic spinand frameowrk and micron driver.

2013-06-30 Thread Sourav Poddar
+ Artem On Wednesday 26 June 2013 01:11 PM, Sourav Poddar wrote: > From: Mona Anonuevo > > This patch adds support for a generic spinand framework(spinand_mtd.c). > This frameowrk can be used for other spi based flash devices also. The idea > is to have a common model under drive

Re: [PATCH 1/3] drivers: mtd: spinand: Add generic spinand frameowrk and micron driver.

2013-06-26 Thread Sourav Poddar
Hi Kamlakant, On Wednesday 26 June 2013 08:52 PM, Kamlakant Patel wrote: > On Wed, Jun 26, 2013 at 01:11:10PM +0530, Sourav Poddar wrote: >> From: Mona Anonuevo >> >> This patch adds support for a generic spinand framework(spinand_mtd.c). >> This frameowrk can be use

[PATCH 0/3] spi/mtd generic framework, ti qspi controller and spansion driver

2013-06-26 Thread Sourav Poddar
: Tested the generic framework(spinand_mtd.c) along with patch(2&3) on my dra7xx board for write/erase/read using nand utils. Compile tested(spinand_lld.c). Mona Anonuevo (1): drivers: mtd: spinand: Add generic spinand frameowrk and micron driver. Sourav Poddar (2): drivers: spi: Add

[PATCH 2/3] drivers: spi: Add qspi flash controller

2013-06-26 Thread Sourav Poddar
configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar --- drivers/spi/Kconfig |6 + drivers/spi/Makefile |1 + drivers

[PATCH 1/3] drivers: mtd: spinand: Add generic spinand frameowrk and micron driver.

2013-06-26 Thread Sourav Poddar
part simply attaches itself to it.) The generic frework will be used later by me for a SPI based spansion S25FL256 device. The patch also contains a micron driver attaching itself to generic framework. Signed-off-by: Mona Anonuevo Signed-off-by: Tuan Nguyen Signed-off-by: Sourav Poddar [I

[PATCH 3/3] drivers: mtd: spinand: Add qspi spansion flash controller

2013-06-26 Thread Sourav Poddar
to the generic spinand mtd framework proposed in the first patch of the series. Signed-off-by: Sourav Poddar --- drivers/mtd/spinand/Kconfig |7 + drivers/mtd/spinand/Makefile|2 +- drivers/mtd/spinand/ti-qspi-flash.c | 373 +++ 3 files

[PATCHv12] spi: omap2-mcspi: add generic DMA request support to the DT binding

2013-06-24 Thread Sourav Poddar
From: Matt Porter The binding definition is based on the generic DMA request binding Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes Signed-off-by: Sourav Poddar --- Documentation/devicetree/bindings/spi/omap-spi.txt | 27 +++- 1 files changed, 26 insertions

  1   2   >