From: Sourav Poddar <sourav.poddar@ti.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: marex@denx.de, Huang Shijie <b32955@freescale.com>,
linux-mtd@lists.infradead.org, balbi@ti.com, dedekind1@gmail.com
Subject: Re: [PATCHv3 0/2] m25p80: QUAD read support + cleanup.
Date: Fri, 8 Nov 2013 18:17:08 +0530 [thread overview]
Message-ID: <527CDD4C.6030600@ti.com> (raw)
In-Reply-To: <527C677E.1030404@ti.com>
On Friday 08 November 2013 09:54 AM, Sourav Poddar wrote:
> Hi Brian,
> On Thursday 07 November 2013 11:59 PM, Brian Norris wrote:
>> + Huang
>>
>> On Wed, Nov 06, 2013 at 08:05:33PM +0530, Sourav Poddar wrote:
>>> Patch series does the following:
>>> 1. Cleanup the m25p80 driver to convert bool check for
>>> read into an enum. This will help adding more read
>>> commands into the driver easily.
>>>
>>> 2. Add quad read support for spansion and macronix flash devices.
>> Do we have any testing results? I know that some QSPI controllers still
>> need some more work to be able to support this, but has someone tested
>> this current patch set with a "true" SPI controller on mainline?
>>
> I have tested this with a 3.12-rc6 based internal kernel(as dt
> patches are not in).
> You can check the controller at drivers/spi/spi-ti-qspi.c. From
> driver perspective, there
> is an additional patch[1] required, it was pulled in by Mark, and I
> can see it in his tree.
> Testing details:
> flash_erase the entire chip
> mtd write the flash with a particular pattern
> mtd read the flash
> diff the write and the read value.
>
Just to add more info:
I have tested this on
1. DRA7xx having Spansion S25FL256S flash
2. AM43xx having Macronix MX66L51235F
> [1]:
> Add dual/quad read mode bit flag for the master controller.
> These check will be used in the spi framework to determine
> whether the master controller can do dual/quad read respectively.
>
> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> ---
> v1->v2
> Added dual mode bit also.
> drivers/spi/spi-ti-qspi.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
> index e12d962..7a45c3e 100644
> --- a/drivers/spi/spi-ti-qspi.c
> +++ b/drivers/spi/spi-ti-qspi.c
> @@ -472,7 +472,7 @@ static int ti_qspi_probe(struct platform_device
> *pdev)
> if (!master)
> return -ENOMEM;
>
> - master->mode_bits = SPI_CPOL | SPI_CPHA;
> + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD;
>
> master->bus_num = -1;
> master->flags = SPI_MASTER_HALF_DUPLEX;
>
>> Bri
>> an
>
prev parent reply other threads:[~2013-11-08 12:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 14:35 [PATCHv3 0/2] m25p80: QUAD read support + cleanup Sourav Poddar
2013-11-06 14:35 ` [PATCH 1/2] drivers: mtd: m25p80: convert "bool" read check into an enum Sourav Poddar
2013-11-06 20:24 ` Marek Vasut
2013-11-07 8:06 ` Brian Norris
2013-11-07 8:29 ` Sourav Poddar
2013-11-07 12:53 ` Marek Vasut
2013-11-08 18:06 ` Brian Norris
2013-11-08 18:28 ` Sourav Poddar
2013-11-06 14:35 ` [PATCHv3 2/2] drivers: mtd: m25p80: Add quad read support Sourav Poddar
2013-11-06 20:26 ` Marek Vasut
2013-11-07 9:01 ` Sourav Poddar
2013-11-08 18:37 ` Brian Norris
2013-11-07 18:29 ` [PATCHv3 0/2] m25p80: QUAD read support + cleanup Brian Norris
2013-11-08 4:24 ` Sourav Poddar
2013-11-08 12:47 ` Sourav Poddar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527CDD4C.6030600@ti.com \
--to=sourav.poddar@ti.com \
--cc=b32955@freescale.com \
--cc=balbi@ti.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.